fix: sider fixes
This commit is contained in:
parent
3bcbc86291
commit
f2ee1155c0
@ -3,7 +3,7 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from erpnext.regional.south_africa.setup import make_custom_fields
|
||||
from erpnext.regional.south_africa.setup import make_custom_fields
|
||||
|
||||
def execute():
|
||||
company = frappe.get_all('Company', filters = {'country': 'South Africa'})
|
||||
|
@ -78,9 +78,9 @@ class VATAuditReport(object):
|
||||
for d in items:
|
||||
if d.item_code not in self.invoice_items.get(d.parent, {}):
|
||||
self.invoice_items.setdefault(d.parent, {}).setdefault(d.item_code, {}) \
|
||||
.setdefault("net_amount", sum((i.get("taxable_value", 0) \
|
||||
or i.get("base_net_amount", 0)) for i in items \
|
||||
if (i.item_code == d.item_code and i.parent == d.parent)))
|
||||
.setdefault("net_amount", sum((i.get("taxable_value", 0)
|
||||
or i.get("base_net_amount", 0)) for i in items
|
||||
if(i.item_code == d.item_code and i.parent == d.parent)))
|
||||
|
||||
self.invoice_items.setdefault(d.parent, {}).setdefault(d.item_code, {}) \
|
||||
.setdefault("is_zero_rated", d.is_zero_rated)
|
||||
|
Loading…
x
Reference in New Issue
Block a user