Skip to content

Commit

Permalink
fix: create job card with wip warehouse set to source warehouse if ma…
Browse files Browse the repository at this point in the history
…terial transfer to wip warehouse is skipped in work order

(cherry picked from commit 723e902)

# Conflicts:
#	erpnext/manufacturing/doctype/work_order/work_order.py
  • Loading branch information
mihir-kandoi authored and mergify[bot] committed Feb 5, 2025
1 parent e422ae1 commit 9d6f318
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions erpnext/manufacturing/doctype/work_order/work_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1623,6 +1623,20 @@ def create_job_card(work_order, row, enable_capacity_planning=False, auto_create
"wip_warehouse": work_order.wip_warehouse,
"hour_rate": row.get("hour_rate"),
"serial_no": row.get("serial_no"),
<<<<<<< HEAD
=======
"time_required": row.get("time_in_mins"),
"source_warehouse": row.get("source_warehouse"),
"target_warehouse": row.get("fg_warehouse"),
"wip_warehouse": work_order.wip_warehouse or row.get("wip_warehouse")
if not work_order.skip_transfer or work_order.from_wip_warehouse
else work_order.source_warehouse or row.get("source_warehouse"),
"skip_material_transfer": row.get("skip_material_transfer"),
"backflush_from_wip_warehouse": row.get("backflush_from_wip_warehouse"),
"finished_good": row.get("finished_good"),
"semi_fg_bom": row.get("bom_no"),
"is_subcontracted": row.get("is_subcontracted"),
>>>>>>> 723e902470 (fix: create job card with wip warehouse set to source warehouse if material transfer to wip warehouse is skipped in work order)
}
)

Expand Down

0 comments on commit 9d6f318

Please sign in to comment.