Merge pull request #38766 from ruthra-kumar/7101_only_treat_none
fix: validation error on reconciling PE to Journals as Invoice
This commit is contained in:
commit
0cf9ff0a04
@ -662,8 +662,10 @@ def update_reference_in_payment_entry(
|
|||||||
"total_amount": d.grand_total,
|
"total_amount": d.grand_total,
|
||||||
"outstanding_amount": d.outstanding_amount,
|
"outstanding_amount": d.outstanding_amount,
|
||||||
"allocated_amount": d.allocated_amount,
|
"allocated_amount": d.allocated_amount,
|
||||||
"exchange_rate": d.exchange_rate if d.exchange_gain_loss else payment_entry.get_exchange_rate(),
|
"exchange_rate": d.exchange_rate
|
||||||
"exchange_gain_loss": d.exchange_gain_loss,
|
if d.difference_amount is not None
|
||||||
|
else payment_entry.get_exchange_rate(),
|
||||||
|
"exchange_gain_loss": d.difference_amount,
|
||||||
"account": d.account,
|
"account": d.account,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user