mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
[minor] currency trigger should not be called in refresh
This commit is contained in:
@@ -396,7 +396,7 @@ class AccountsController(TransactionBase):
|
|||||||
self.precision(based_on, item))
|
self.precision(based_on, item))
|
||||||
webnotes.errprint([max_allowed_amt, total_billed_amt])
|
webnotes.errprint([max_allowed_amt, total_billed_amt])
|
||||||
|
|
||||||
if max_allowed_amt and total_billed_amt > max_allowed_amt:
|
if max_allowed_amt and total_billed_amt - max_allowed_amt > 0.02:
|
||||||
webnotes.msgprint(_("Row ")+ cstr(item.idx) + ": " + cstr(item.item_code) +
|
webnotes.msgprint(_("Row ")+ cstr(item.idx) + ": " + cstr(item.item_code) +
|
||||||
_(" will be over-billed against mentioned ") + cstr(ref_dt) +
|
_(" will be over-billed against mentioned ") + cstr(ref_dt) +
|
||||||
_(". Max allowed " + cstr(based_on) + ": " + cstr(max_allowed_amt)),
|
_(". Max allowed " + cstr(based_on) + ": " + cstr(max_allowed_amt)),
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ erpnext.TransactionController = wn.ui.form.Controller.extend({
|
|||||||
erpnext.hide_naming_series();
|
erpnext.hide_naming_series();
|
||||||
erpnext.hide_company();
|
erpnext.hide_company();
|
||||||
this.show_item_wise_taxes();
|
this.show_item_wise_taxes();
|
||||||
this.frm.fields_dict.currency ? this.currency() : this.set_dynamic_labels();
|
this.set_dynamic_labels();
|
||||||
},
|
},
|
||||||
|
|
||||||
onload_post_render: function() {
|
onload_post_render: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user