Skip to content

Commit

Permalink
Fix 5614, original to pay amount should always take due amount and ne…
Browse files Browse the repository at this point in the history
…ver replace by user typed amount.
  • Loading branch information
Aung Zaw Win committed Jun 23, 2021
1 parent d08fe8c commit 4b3f7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LedgerSMB/Scripts/payment.pm
Expand Up @@ -1095,7 +1095,7 @@ sub payment2 {
name => "memo_invoice_$invoice_id",
value => $request->{"memo_invoice_$invoice_id"}
},#END HASH
orig_topay_fx => ($request->{"topay_fx_$invoice->{invoice_id}"} // LedgerSMB::PGNumber->new($due_fx)->to_output(money => 1)),
orig_topay_fx => LedgerSMB::PGNumber->new($due_fx)->to_output(money => 1),
topay_fx => {
name => "topay_fx_$invoice_id",
value => ($request->{"topay_fx_$invoice_id"}
Expand Down

0 comments on commit 4b3f7b4

Please sign in to comment.