feat: serial and batch bundle for Packing Items

This commit is contained in:
Rohit Waghchaure
2023-03-17 16:42:59 +05:30
parent 9c097e85f8
commit 674bd3e2e5
8 changed files with 40 additions and 12 deletions

View File

@@ -431,6 +431,7 @@ erpnext.selling.SellingController = class SellingController extends erpnext.Tran
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 ? "Outward":"Inward";
item.outward = item.qty > 0 ? 1 : 0;
item.title = item.has_serial_no ?
__("Select Serial No") : __("Select Batch No");
@@ -446,6 +447,8 @@ erpnext.selling.SellingController = class SellingController extends erpnext.Tran
me.frm.refresh_fields();
frappe.model.set_value(cdt, cdn,
"serial_and_batch_bundle", r.name);
me.frm.save();
}
}
);