minor fixes
This commit is contained in:
parent
6dfbc2465b
commit
7b19b9ed02
@ -356,8 +356,8 @@ class calculate_taxes_and_totals(object):
|
|||||||
return flt(self.doc.grand_total - sum(actual_taxes_dict.values()), self.doc.precision("grand_total"))
|
return flt(self.doc.grand_total - sum(actual_taxes_dict.values()), self.doc.precision("grand_total"))
|
||||||
|
|
||||||
|
|
||||||
def calculate_total_advance(self, parenttype, advance_parentfield):
|
def calculate_total_advance(self):
|
||||||
if self.docstatus < 2:
|
if self.doc.docstatus < 2:
|
||||||
total_allocated_amount = sum([flt(adv.allocated_amount, adv.precision("allocated_amount"))
|
total_allocated_amount = sum([flt(adv.allocated_amount, adv.precision("allocated_amount"))
|
||||||
for adv in self.doc.get("advances")])
|
for adv in self.doc.get("advances")])
|
||||||
|
|
||||||
|
@ -17,10 +17,6 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
|
|||||||
this.toggle_editable_price_list_rate();
|
this.toggle_editable_price_list_rate();
|
||||||
},
|
},
|
||||||
|
|
||||||
onload_post_render: function() {
|
|
||||||
cur_frm.get_field("items").grid.set_multiple_add("item_code", "qty");
|
|
||||||
},
|
|
||||||
|
|
||||||
setup_queries: function() {
|
setup_queries: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
|
@ -330,7 +330,7 @@ class PurchaseReceipt(BuyingController):
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
# divisional loss adjustment
|
# divisional loss adjustment
|
||||||
if not self.get("other_charges"):
|
if not self.get("taxes"):
|
||||||
sle_valuation_amount = flt(flt(d.valuation_rate, val_rate_db_precision) * flt(d.qty) * flt(d.conversion_factor),
|
sle_valuation_amount = flt(flt(d.valuation_rate, val_rate_db_precision) * flt(d.qty) * flt(d.conversion_factor),
|
||||||
self.precision("base_net_amount", d))
|
self.precision("base_net_amount", d))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user