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

@@ -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(