[Fix] Debit and credit not equal for purchase invoice, if update stock is yes and taxes is defined
This commit is contained in:
parent
7909a30008
commit
315a5e1b4d
@ -497,6 +497,18 @@ class PurchaseInvoice(BuyingController):
|
|||||||
|
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
if self.update_stock and valuation_tax:
|
||||||
|
for cost_center, amount in valuation_tax.items():
|
||||||
|
gl_entries.append(
|
||||||
|
self.get_gl_dict({
|
||||||
|
"account": self.expenses_included_in_valuation,
|
||||||
|
"cost_center": cost_center,
|
||||||
|
"against": self.supplier,
|
||||||
|
"credit": amount,
|
||||||
|
"remarks": self.remarks or "Accounting Entry for Stock"
|
||||||
|
})
|
||||||
|
)
|
||||||
|
|
||||||
def make_payment_gl_entries(self, gl_entries):
|
def make_payment_gl_entries(self, gl_entries):
|
||||||
# Make Cash GL Entries
|
# Make Cash GL Entries
|
||||||
if cint(self.is_paid) and self.cash_bank_account and self.paid_amount:
|
if cint(self.is_paid) and self.cash_bank_account and self.paid_amount:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user