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 2fb5291785
commit ddb0ec261a
7 changed files with 76 additions and 70 deletions

View File

@@ -723,6 +723,10 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
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);