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:
Rohit Waghchaure
2024-03-30 10:46:56 +05:30
committed by Mergify
parent 33b6244ae6
commit d2a6509950
6 changed files with 138 additions and 3 deletions

View File

@@ -386,7 +386,7 @@ erpnext.buying = {
if (r.message && (r.message.has_batch_no || r.message.has_serial_no)) {
item.has_serial_no = r.message.has_serial_no;
item.has_batch_no = r.message.has_batch_no;
item.type_of_transaction = item.qty > 0 ? "Inward" : "Outward";
item.type_of_transaction = item.rejected_qty > 0 ? "Inward" : "Outward";
item.is_rejected = true;
new erpnext.SerialBatchPackageSelector(