[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6911] trunk
- Subject: SF.net SVN: ledger-smb:[6911] trunk
- From: ..hidden..
- Date: Fri, 28 Feb 2014 09:41:08 +0000
Revision: 6911
http://sourceforge.net/p/ledger-smb/code/6911
Author: einhverfr
Date: 2014-02-28 09:41:08 +0000 (Fri, 28 Feb 2014)
Log Message:
-----------
Fixing bug 1045, unable tp partially pay/receive a reversed invoice
Modified Paths:
--------------
trunk/Changelog
trunk/LedgerSMB/Scripts/payment.pm
Modified: trunk/Changelog
===================================================================
--- trunk/Changelog 2014-02-27 07:48:45 UTC (rev 6910)
+++ trunk/Changelog 2014-02-28 09:41:08 UTC (rev 6911)
@@ -115,6 +115,7 @@
* Fixed pricelist pdf column widths all equal (Chris T, 1037)
* Added support for zero-downtime upgrades (Chris T)
* Fixed clicking through COA does not show future transactions (Chris T, 1044)
+* Fixed unable to partially pay or receive when negative due (Chris T, 1045)
Changelog for 1.3.38
* Fixed AR/AP transactions resetting currency/exchange rate (Chris T)
Modified: trunk/LedgerSMB/Scripts/payment.pm
===================================================================
--- trunk/LedgerSMB/Scripts/payment.pm 2014-02-27 07:48:45 UTC (rev 6910)
+++ trunk/LedgerSMB/Scripts/payment.pm 2014-02-28 09:41:08 UTC (rev 6911)
@@ -1148,7 +1148,11 @@
# The prefix cash is to set the movements of the cash accounts,
# same names are used for ap/ar accounts w/o the cash prefix.
#
- if ( "$array_options[$ref]->{due_fx}" < $request_topay_fx_bigfloat ) {
+ my $sign = "$array_options[$ref]->{due_fx}" <=> 0;
+ if ( ($sign * "$array_options[$ref]->{due_fx}")
+ <
+ ($sign * $request_topay_fx_bigfloat )
+ ){
# We need to store all the overpayments so we can use it on a new payment2 screen
$unhandled_overpayment = $request->round_amount($unhandled_overpayment + $request_topay_fx_bigfloat + $temporary_discount - $array_options[$ref]->{amount}) ;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits