Copy source project into Purchase Order Item (#13321)

This commit is contained in:
Mark Walker 2018-03-20 17:36:04 +11:00 committed by Nabin Hait
parent 417dfed214
commit f572522f25

1
erpnext/selling/doctype/sales_order/sales_order.py Normal file → Executable file
View File

@ -708,6 +708,7 @@ def make_purchase_order_for_drop_shipment(source_name, for_supplier, target_doc=
target.schedule_date = source.delivery_date
target.qty = flt(source.qty) - flt(source.ordered_qty)
target.stock_qty = (flt(source.qty) - flt(source.ordered_qty)) * flt(source.conversion_factor)
target.project = source_parent.project
doclist = get_mapped_doc("Sales Order", source_name, {
"Sales Order": {