fix: Do not force eligibilgity of itc for reverse charge

This commit is contained in:
Deepesh Garg
2022-11-01 16:03:32 +05:30
parent ada3ce21c0
commit 9dc0edfb8a
2 changed files with 6 additions and 2 deletions

View File

@@ -47,6 +47,12 @@ erpnext.setup_auto_gst_taxation = (doctype) => {
}
}
});
},
reverse_charge: function(frm) {
if (frm.doc.reverse_charge == "Y") {
frm.set_value('eligibility_for_itc', 'ITC on Reverse Charge');
}
}
});
}

View File

@@ -983,8 +983,6 @@ def validate_reverse_charge_transaction(doc, method):
frappe.throw(msg)
doc.eligibility_for_itc = "ITC on Reverse Charge"
def update_itc_availed_fields(doc, method):
country = frappe.get_cached_value("Company", doc.company, "country")