mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 23:53:21 +00:00
fix: use serial batch fields not enabled for new stock entry
(cherry picked from commit dc9115a586)
This commit is contained in:
committed by
Mergify
parent
bb77f85d89
commit
40d4e3261e
@@ -234,7 +234,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
||||
}
|
||||
|
||||
set_fields_onload_for_line_item() {
|
||||
if (this.frm.is_new && this.frm.doc?.items) {
|
||||
if (this.frm.is_new() && this.frm.doc?.items) {
|
||||
this.frm.doc.items.forEach(item => {
|
||||
if (item.docstatus === 0
|
||||
&& frappe.meta.has_field(item.doctype, "use_serial_batch_fields")
|
||||
|
||||
Reference in New Issue
Block a user