fix: incorrect quality inspection linked in purchase receipt (#44985)

This commit is contained in:
rohitwaghchaure
2025-01-01 08:30:00 +05:30
committed by GitHub
parent 7db9bcaeac
commit b84c8ff960
3 changed files with 101 additions and 23 deletions

View File

@@ -2343,6 +2343,12 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
fieldname: "batch_no",
label: __("Batch No"),
hidden: true
},
{
fieldtype: "Data",
fieldname: "child_row_reference",
label: __("Child Row Reference"),
hidden: true
}
]
}
@@ -2389,14 +2395,14 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
if (this.has_inspection_required(item)) {
let dialog_items = dialog.fields_dict.items;
dialog_items.df.data.push({
"docname": item.name,
"item_code": item.item_code,
"item_name": item.item_name,
"qty": item.qty,
"description": item.description,
"serial_no": item.serial_no,
"batch_no": item.batch_no,
"sample_size": item.sample_quantity
"sample_size": item.sample_quantity,
"child_row_reference": item.name,
});
dialog_items.grid.refresh();
}