Delete company and company transactions are separate functions

This commit is contained in:
Nabin Hait
2015-05-04 11:51:04 +05:30
parent e991c9e075
commit c91a9e5231
5 changed files with 43 additions and 25 deletions

View File

@@ -40,7 +40,7 @@ frappe.ui.form.on(cur_frm.doctype, {
frm.get_docfield("taxes", "rate").reqd = 0;
frm.get_docfield("taxes", "tax_amount").reqd = 0;
$.each(frm.doc.taxes, function(i, d) {
$.each(frm.doc.taxes || [], function(i, d) {
if(d.charge_type==="Actual") {
d.rate = 0;
if(!d.tax_amount) {