diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index 34806832041..4eef7cf4f0f 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -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, diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py index 326ef9be881..a0cf7e74f04 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py @@ -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