Skip to content

Commit

Permalink
fix: Do not force eligibilgity of itc for reverse charge
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Nov 1, 2022
1 parent ada3ce2 commit 9dc0edf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions erpnext/regional/india/taxes.js
Expand Up @@ -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');
}
}
});
}
2 changes: 0 additions & 2 deletions erpnext/regional/india/utils.py
Expand Up @@ -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")
Expand Down

0 comments on commit 9dc0edf

Please sign in to comment.