mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
fix: incorrect quality inspection linked in purchase receipt (#44985)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user