mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 22:12:12 +00:00
fix: use serial and batch fields (#43421)
(cherry picked from commit ca16089d9d)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -573,6 +573,15 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if(!r.exc) {
|
if(!r.exc) {
|
||||||
frappe.run_serially([
|
frappe.run_serially([
|
||||||
|
() => {
|
||||||
|
if (item.docstatus === 0
|
||||||
|
&& frappe.meta.has_field(item.doctype, "use_serial_batch_fields")
|
||||||
|
&& !item.use_serial_batch_fields
|
||||||
|
&& cint(frappe.user_defaults?.use_serial_batch_fields) === 1
|
||||||
|
) {
|
||||||
|
item["use_serial_batch_fields"] = 1;
|
||||||
|
}
|
||||||
|
},
|
||||||
() => {
|
() => {
|
||||||
var d = locals[cdt][cdn];
|
var d = locals[cdt][cdn];
|
||||||
me.add_taxes_from_item_tax_template(d.item_tax_rate);
|
me.add_taxes_from_item_tax_template(d.item_tax_rate);
|
||||||
|
|||||||
Reference in New Issue
Block a user