Revert "fix: purchase receipt tests"
This reverts commit fcfdb9b5667755b2846e834d70d3f9b444743d2b.
This commit is contained in:
parent
93ff84bf56
commit
b40d3b0a05
@ -832,7 +832,6 @@ class StockController(AccountsController):
|
||||
credit,
|
||||
remarks,
|
||||
against_account,
|
||||
against_type="Account",
|
||||
debit_in_account_currency=None,
|
||||
credit_in_account_currency=None,
|
||||
account_currency=None,
|
||||
|
@ -832,17 +832,16 @@ class PurchaseReceipt(BuyingController):
|
||||
)
|
||||
amount_including_divisional_loss -= applicable_amount
|
||||
|
||||
for against in against_accounts:
|
||||
self.add_gl_entry(
|
||||
gl_entries=gl_entries,
|
||||
account=account,
|
||||
cost_center=tax.cost_center,
|
||||
debit=0.0,
|
||||
credit=flt(applicable_amount) / len(against_accounts),
|
||||
remarks=self.remarks or _("Accounting Entry for Stock"),
|
||||
against_account=against,
|
||||
item=tax,
|
||||
)
|
||||
self.add_gl_entry(
|
||||
gl_entries=gl_entries,
|
||||
account=account,
|
||||
cost_center=tax.cost_center,
|
||||
debit=0.0,
|
||||
credit=applicable_amount,
|
||||
remarks=self.remarks or _("Accounting Entry for Stock"),
|
||||
against_account=against_accounts,
|
||||
item=tax,
|
||||
)
|
||||
|
||||
i += 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user