fix: button to select serial / batch bundle in the subcontracting receipt

This commit is contained in:
Rohit Waghchaure
2024-03-30 10:46:56 +05:30
parent 8e522183bc
commit d73b1f3e6a
6 changed files with 134 additions and 7 deletions

View File

@@ -748,12 +748,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",
}