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,
|
credit,
|
||||||
remarks,
|
remarks,
|
||||||
against_account,
|
against_account,
|
||||||
against_type="Account",
|
|
||||||
debit_in_account_currency=None,
|
debit_in_account_currency=None,
|
||||||
credit_in_account_currency=None,
|
credit_in_account_currency=None,
|
||||||
account_currency=None,
|
account_currency=None,
|
||||||
|
|||||||
@ -832,17 +832,16 @@ class PurchaseReceipt(BuyingController):
|
|||||||
)
|
)
|
||||||
amount_including_divisional_loss -= applicable_amount
|
amount_including_divisional_loss -= applicable_amount
|
||||||
|
|
||||||
for against in against_accounts:
|
self.add_gl_entry(
|
||||||
self.add_gl_entry(
|
gl_entries=gl_entries,
|
||||||
gl_entries=gl_entries,
|
account=account,
|
||||||
account=account,
|
cost_center=tax.cost_center,
|
||||||
cost_center=tax.cost_center,
|
debit=0.0,
|
||||||
debit=0.0,
|
credit=applicable_amount,
|
||||||
credit=flt(applicable_amount) / len(against_accounts),
|
remarks=self.remarks or _("Accounting Entry for Stock"),
|
||||||
remarks=self.remarks or _("Accounting Entry for Stock"),
|
against_account=against_accounts,
|
||||||
against_account=against,
|
item=tax,
|
||||||
item=tax,
|
)
|
||||||
)
|
|
||||||
|
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user