[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6675] trunk/LedgerSMB/Scripts/payment.pm
- Subject: SF.net SVN: ledger-smb:[6675] trunk/LedgerSMB/Scripts/payment.pm
- From: ..hidden..
- Date: Tue, 28 Jan 2014 04:29:06 +0000
Revision: 6675
http://sourceforge.net/p/ledger-smb/code/6675
Author: einhverfr
Date: 2014-01-28 04:29:05 +0000 (Tue, 28 Jan 2014)
Log Message:
-----------
Fixing bug 989, errors printing checks. They now print, but we have a less important bug in the process, invoice data not printing on the stub.
Modified Paths:
--------------
trunk/LedgerSMB/Scripts/payment.pm
Modified: trunk/LedgerSMB/Scripts/payment.pm
===================================================================
--- trunk/LedgerSMB/Scripts/payment.pm 2014-01-28 04:16:16 UTC (rev 6674)
+++ trunk/LedgerSMB/Scripts/payment.pm 2014-01-28 04:29:05 UTC (rev 6675)
@@ -394,15 +394,14 @@
$payment->error("Invalid Payment Amount Option");
}
$check->{amount} += $invhash->{paid};
- $invhash->{paid} = $check->format_amount(amount => $invhash->{paid});
push @{$check->{invoices}}, $invhash if $inv <= $inv_count;
}
my $amt = $check->{amount}->copy;
$amt->bfloor();
$check->{text_amount} = $payment->text_amount($amt);
- $check->{amount} = $check->format_amount(amount => $check->{amount},
+ $check->{amount} = $request->format_amount(amount => $check->{amount},
format => '1000.00');
- $check->{decimal} = $check->format_amount(amount => ($check->{amount} - $amt) * 100);
+ $check->{decimal} = $request->format_amount(amount => ($check->{amount} - $amt) * 100);
push @{$payment->{checks}}, $check;
}
$template = LedgerSMB::Template->new(
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits