fix: button to select serial / batch bundle in the subcontracting receipt
(cherry picked from commit d73b1f3e6a)
# Conflicts:
# erpnext/subcontracting/doctype/subcontracting_receipt_item/subcontracting_receipt_item.json
# erpnext/subcontracting/doctype/subcontracting_receipt_supplied_item/subcontracting_receipt_supplied_item.json
This commit is contained in:
committed by
Mergify
parent
33b6244ae6
commit
d2a6509950
@@ -750,12 +750,12 @@ def get_serial_and_batch_bundle(child, parent):
|
||||
"item_code": child.item_code,
|
||||
"warehouse": child.warehouse,
|
||||
"voucher_type": parent.doctype,
|
||||
"voucher_no": parent.name,
|
||||
"voucher_no": parent.name if parent.docstatus < 2 else None,
|
||||
"voucher_detail_no": child.name,
|
||||
"posting_date": parent.posting_date,
|
||||
"posting_time": parent.posting_time,
|
||||
"qty": child.qty,
|
||||
"type_of_transaction": "Outward" if child.qty > 0 else "Inward",
|
||||
"type_of_transaction": "Outward" if child.qty > 0 and parent.docstatus < 2 else "Inward",
|
||||
"company": parent.company,
|
||||
"do_not_submit": "True",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user