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 24, 2021
1 parent 5d2e681 commit ecda507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LedgerSMB/Scripts/payment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,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 ecda507

Please sign in to comment.