mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 09:54:47 +00:00
Coded column deleted, column added from UI
This commit is contained in:
@@ -2,18 +2,7 @@
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
erpnext.taxes_and_totals = erpnext.payments.extend({
|
||||
setup: function() {
|
||||
if(this.frm.get_field('taxes')) {
|
||||
this.frm.get_field('taxes').grid.editable_fields = [
|
||||
{fieldname: 'charge_type', columns: 2},
|
||||
{fieldname: 'account_head', columns: 2},
|
||||
{fieldname: 'rate', columns: 2},
|
||||
{fieldname: 'tax_amount', columns: 2},
|
||||
{fieldname: 'total', columns: 2}
|
||||
];
|
||||
}
|
||||
|
||||
},
|
||||
setup: function() {},
|
||||
apply_pricing_rule_on_item: function(item){
|
||||
if(!item.margin_type){
|
||||
item.margin_rate_or_amount = 0.0;
|
||||
|
||||
@@ -4,16 +4,6 @@
|
||||
erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
||||
setup: function() {
|
||||
this._super();
|
||||
|
||||
if(in_list(["Sales Invoice", "Purchase Invoice"], this.frm.doc.doctype)) {
|
||||
this.frm.get_field('advances').grid.editable_fields = [
|
||||
{fieldname: 'reference_name', columns: 3},
|
||||
{fieldname: 'remarks', columns: 3},
|
||||
{fieldname: 'advance_amount', columns: 2},
|
||||
{fieldname: 'allocated_amount', columns: 2}
|
||||
];
|
||||
}
|
||||
|
||||
frappe.ui.form.on(this.frm.doctype + " Item", "rate", function(frm, cdt, cdn) {
|
||||
var item = frappe.get_doc(cdt, cdn);
|
||||
frappe.model.round_floats_in(item, ["rate", "price_list_rate"]);
|
||||
|
||||
Reference in New Issue
Block a user