mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 17:55:40 +00:00
transaction.js: calculate only if one entry in table
This commit is contained in:
@@ -38,7 +38,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
|
||||
|
||||
onload_post_render: function() {
|
||||
var me = this;
|
||||
if(this.frm.doc.__islocal && this.frm.doc.company && !this.frm.doc.is_pos) {
|
||||
if(this.frm.doc.__islocal && this.frm.doc.company && this.frm.doc[this.fname] && !this.frm.doc.is_pos) {
|
||||
this.calculate_taxes_and_totals();
|
||||
}
|
||||
if(frappe.meta.get_docfield(this.tname, "item_code")) {
|
||||
|
||||
Reference in New Issue
Block a user