mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
* fix: fetching of item tax from hsn code
(cherry picked from commit 3a50490c04)
Co-authored-by: Saqib <nextchamp.saqib@gmail.com>
This commit is contained in:
@@ -851,4 +851,15 @@ def get_depreciation_amount(asset, depreciable_value, row):
|
||||
|
||||
depreciation_amount = flt(depreciable_value * (flt(rate_of_depreciation) / 100))
|
||||
|
||||
return depreciation_amount
|
||||
return depreciation_amount
|
||||
|
||||
def set_item_tax_from_hsn_code(item):
|
||||
if not item.taxes and item.gst_hsn_code:
|
||||
hsn_doc = frappe.get_doc("GST HSN Code", item.gst_hsn_code)
|
||||
|
||||
for tax in hsn_doc.taxes:
|
||||
item.append('taxes', {
|
||||
'item_tax_template': tax.item_tax_template,
|
||||
'tax_category': tax.tax_category,
|
||||
'valid_from': tax.valid_from
|
||||
})
|
||||
Reference in New Issue
Block a user