fix: Sider issues

This commit is contained in:
GangaManoj 2021-08-13 17:40:51 +05:30
parent f977c65e80
commit f9356ee642
2 changed files with 3 additions and 2 deletions

View File

@ -868,8 +868,8 @@ class PurchaseInvoice(BuyingController):
"account": tax.account_head,
"against": self.supplier,
dr_or_cr: base_amount,
dr_or_cr + "_in_account_currency": base_amount \
if account_currency==self.company_currency \
dr_or_cr + "_in_account_currency": base_amount
if account_currency==self.company_currency
else amount,
"cost_center": tax.cost_center
}, account_currency, item=tax)

View File

@ -1057,6 +1057,7 @@ class SalesInvoice(SellingController):
if orginal_schedule_date == posting_date_of_original_invoice:
return True
return False
@property
def enable_discount_accounting(self):
if not hasattr(self, "_enable_discount_accounting"):