fix: code cleanup and convert public method to private for subcontracting class

This commit is contained in:
Rohit Waghchaure
2021-06-08 10:36:39 +05:30
parent d755b29943
commit 6bbc8ec3e8
7 changed files with 76 additions and 70 deletions

View File

@@ -743,6 +743,10 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
var me = this;
var item = frappe.get_doc(cdt, cdn);
if (item && item.doctype === 'Purchase Receipt Item Supplied') {
return;
}
if (item && item.serial_no) {
if (!item.item_code) {
this.frm.trigger("item_code", cdt, cdn);