In Sales Invoice “NET TOTAL” is one column which holding sum of all item Amount (Sales Item Invoice),
So i want to know where is this JS file (Or Code) . i have checked in Sales Invoice but didn’t found any NET TOTAL column. Please help me about it
Thanks in advance
rmehta
April 27, 2015, 5:57am
#2
Please check Setup > Customize > Customize Form view for column names.
But sir i want JavaScript file name where “NET_TOTAL” is getting calculated
rmehta
April 28, 2015, 10:37am
#5
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
erpnext.taxes_and_totals = erpnext.payments.extend({
setup: function() {},
apply_pricing_rule_on_item: function(item){
let effective_item_rate = item.price_list_rate;
if (item.parenttype === "Sales Order" && item.blanket_order_rate) {
effective_item_rate = item.blanket_order_rate;
}
if(item.margin_type == "Percentage"){
item.rate_with_margin = flt(effective_item_rate)
+ flt(effective_item_rate) * ( flt(item.margin_rate_or_amount) / 100);
} else {
item.rate_with_margin = flt(effective_item_rate) + flt(item.margin_rate_or_amount);
item.base_rate_with_margin = flt(item.rate_with_margin) * flt(this.frm.doc.conversion_rate);
}
item.rate = flt(item.rate_with_margin , precision("rate", item));
This file has been truncated. show original
You can always do a code search.
Thanks for the link but I am looking for the file for V4. I guess this is for V5.
rmehta
April 30, 2015, 8:55am
#7
You can always do code search for “net_total”