Merge pull request #25867 from deepeshgarg007/itc_reversal_address_pre
fix(India): Show only company addresses for ITC reversal entry
This commit is contained in:
commit
d4dc76c3ee
17
erpnext/accounts/doctype/journal_entry/regional/india.js
Normal file
17
erpnext/accounts/doctype/journal_entry/regional/india.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
frappe.ui.form.on("Journal Entry", {
|
||||||
|
refresh: function(frm) {
|
||||||
|
frm.set_query('company_address', function(doc) {
|
||||||
|
if(!doc.company) {
|
||||||
|
frappe.throw(__('Please set Company'));
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
query: 'frappe.contacts.doctype.address.address.address_query',
|
||||||
|
filters: {
|
||||||
|
link_doctype: 'Company',
|
||||||
|
link_name: doc.company
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
@ -310,7 +310,7 @@ class GSTR3BReport(Document):
|
|||||||
self.report_dict['sup_details']['osup_det']['txval'] += taxable_value
|
self.report_dict['sup_details']['osup_det']['txval'] += taxable_value
|
||||||
|
|
||||||
gst_category = self.invoice_detail_map.get(inv, {}).get('gst_category')
|
gst_category = self.invoice_detail_map.get(inv, {}).get('gst_category')
|
||||||
place_of_supply = self.invoice_detail_map.get(inv, {}).get('place_of_supply', '00-Other Territory')
|
place_of_supply = self.invoice_detail_map.get(inv, {}).get('place_of_supply') or '00-Other Territory'
|
||||||
|
|
||||||
if gst_category in ['Unregistered', 'Registered Composition', 'UIN Holders'] and \
|
if gst_category in ['Unregistered', 'Registered Composition', 'UIN Holders'] and \
|
||||||
self.gst_details.get("gst_state") != place_of_supply.split("-")[1]:
|
self.gst_details.get("gst_state") != place_of_supply.split("-")[1]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user