Revert "fix: remove join for against in purchase receipt"

This reverts commit 758ec720deb78507f4972b8b71cb3731f6ee43c4.
This commit is contained in:
Deepesh Garg 2024-01-14 11:14:14 +05:30
parent 2249b7c793
commit 8cf6ff69c0

View File

@ -525,7 +525,7 @@ class PurchaseReceipt(BuyingController):
account_currency=account_currency,
item=item,
)
self.add_gl_entry(
gl_entries=gl_entries,
account=self.get_company_default("exchange_gain_loss_account"),
@ -800,7 +800,7 @@ class PurchaseReceipt(BuyingController):
# Backward compatibility:
# and charges added via Landed Cost Voucher,
# post valuation related charges on "Stock Received But Not Billed"
against_accounts = [d.account for d in gl_entries if flt(d.debit) > 0]
against_account = ", ".join([d.account for d in gl_entries if flt(d.debit) > 0])
total_valuation_amount = sum(valuation_tax.values())
amount_including_divisional_loss = negative_expense_to_be_booked
stock_rbnb = (