fix: function batch_no should only be declared once (#35115)
fix: function `batch_no` should only be declared once (#35115)
fix: remove twice event call of `batch_no` to update batch qty
(cherry picked from commit 19cd687784)
Co-authored-by: Daizy Modi <modidaizy5217@gmail.com>
This commit is contained in:
@@ -299,7 +299,8 @@ erpnext.selling.SellingController = class SellingController extends erpnext.Tran
|
|||||||
}
|
}
|
||||||
|
|
||||||
batch_no(doc, cdt, cdn) {
|
batch_no(doc, cdt, cdn) {
|
||||||
var me = this;
|
super.batch_no(doc, cdt, cdn);
|
||||||
|
|
||||||
var item = frappe.get_doc(cdt, cdn);
|
var item = frappe.get_doc(cdt, cdn);
|
||||||
|
|
||||||
if (item.serial_no) {
|
if (item.serial_no) {
|
||||||
@@ -378,10 +379,6 @@ erpnext.selling.SellingController = class SellingController extends erpnext.Tran
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
batch_no(doc, cdt, cdn) {
|
|
||||||
super.batch_no(doc, cdt, cdn);
|
|
||||||
}
|
|
||||||
|
|
||||||
qty(doc, cdt, cdn) {
|
qty(doc, cdt, cdn) {
|
||||||
super.qty(doc, cdt, cdn);
|
super.qty(doc, cdt, cdn);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user