mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
fix: not able to complete the job card
(cherry picked from commit 696ea68f86)
This commit is contained in:
committed by
Mergify
parent
b541fbbd60
commit
f486071cf6
@@ -1547,6 +1547,9 @@ def add_operating_cost_component_wise(
|
||||
if job_card and job_card.operation_id != row.name:
|
||||
continue
|
||||
|
||||
if not row.actual_operation_time:
|
||||
continue
|
||||
|
||||
workstation_cost = frappe.get_all(
|
||||
"Workstation Cost",
|
||||
fields=["operating_component", "operating_cost"],
|
||||
@@ -1609,7 +1612,7 @@ def add_operations_cost(stock_entry, work_order=None, expense_account=None, job_
|
||||
job_card=job_card,
|
||||
)
|
||||
|
||||
if not cost_added:
|
||||
if not cost_added and not job_card:
|
||||
stock_entry.append(
|
||||
"additional_costs",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user