Merge pull request #34206 from rohitwaghchaure/fixed-trivial-error-for-stock-reposting

fix: not able to repost gl entries
This commit is contained in:
rohitwaghchaure 2023-02-24 21:10:27 +05:30 committed by GitHub
commit 6d6e3cb015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,7 +473,7 @@ class PurchaseReceipt(BuyingController):
)
divisional_loss = flt(
valuation_amount_as_per_doc - stock_value_diff, d.precision("base_net_amount")
valuation_amount_as_per_doc - flt(stock_value_diff), d.precision("base_net_amount")
)
if divisional_loss: