mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
* fix: incorrect quality inspection linked in purchase receipt (#44985)
(cherry picked from commit b84c8ff960)
# Conflicts:
# erpnext/stock/doctype/quality_inspection/quality_inspection.json
* chore: fix conflicts
---------
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -2309,6 +2309,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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2352,14 +2358,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