[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5587] trunk



Revision: 5587
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5587&view=rev
Author:   einhverfr
Date:     2013-01-16 07:49:22 +0000 (Wed, 16 Jan 2013)
Log Message:
-----------
Correcting incorrect default amount to pay when unchecking apply discount and blanking out the to pay box

Modified Paths:
--------------
    trunk/Changelog
    trunk/LedgerSMB/Scripts/payment.pm

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2013-01-16 07:02:37 UTC (rev 5586)
+++ trunk/Changelog	2013-01-16 07:49:22 UTC (rev 5587)
@@ -93,6 +93,8 @@
 * Added wrapper div around pricegroup field in contact screen to allow cssp,
 Chris T.
 * Fixed inverted tax numbers in vendor taxable sales report (Chris T, 3600002)
+* Fixed cash/receipt and payment screen calculating to pay wrong (Chris T,
+3599995)
 
 Changelog for 1.3.28
 * Added db list to setup.pl when no db is entered and credentials allow login

Modified: trunk/LedgerSMB/Scripts/payment.pm
===================================================================
--- trunk/LedgerSMB/Scripts/payment.pm	2013-01-16 07:02:37 UTC (rev 5586)
+++ trunk/LedgerSMB/Scripts/payment.pm	2013-01-16 07:49:22 UTC (rev 5587)
@@ -824,7 +824,7 @@
       $request->{"optional_discount_$array_options[$ref]->{invoice_id}"} = $request->{first_load}? "on":  $request->{"optional_discount_$array_options[$ref]->{invoice_id}"};
 
 # LETS SET THE EXCHANGERATE VALUES
-   my $due_fx = $request->{"optional_discount_$array_options[$ref]->{invoice_id}"} ? $request->round_amount($array_options[$ref]->{due_fx}) : $request->round_amount($array_options[$ref]->{due_fx}) +  $array_options[$ref]->{discount_fx} ;
+   my $due_fx = $request->{"optional_discount_$array_options[$ref]->{invoice_id}"} ? $request->round_amount($array_options[$ref]->{due_fx}) : $request->round_amount($array_options[$ref]->{due_fx});
    my $topay_fx_value;
    if ("$exchangerate") {
        $topay_fx_value =   $due_fx;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.