[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6691] trunk
- Subject: SF.net SVN: ledger-smb:[6691] trunk
- From: ..hidden..
- Date: Tue, 28 Jan 2014 14:10:38 +0000
Revision: 6691
http://sourceforge.net/p/ledger-smb/code/6691
Author: einhverfr
Date: 2014-01-28 14:10:37 +0000 (Tue, 28 Jan 2014)
Log Message:
-----------
Fixing voucher type detection in AA.pm, fixing old incorrect data (ar vouchers detected as ap vouchers).
Modified Paths:
--------------
trunk/LedgerSMB/AA.pm
trunk/sql/modules/Fixes.sql
Modified: trunk/LedgerSMB/AA.pm
===================================================================
--- trunk/LedgerSMB/AA.pm 2014-01-28 11:23:44 UTC (rev 6690)
+++ trunk/LedgerSMB/AA.pm 2014-01-28 14:10:37 UTC (rev 6691)
@@ -418,7 +418,7 @@
$dbh->prepare($query)->execute($form->{approved}, $form->{id}) ||
$form->dberror($query);
if (!$form->{approved} && $form->{batch_id}){
- if ($form->{arap} eq 'ar'){
+ if ($form->{ARAP} eq 'AR'){
$batch_class = 'ar';
} else {
$batch_class = 'ap';
Modified: trunk/sql/modules/Fixes.sql
===================================================================
--- trunk/sql/modules/Fixes.sql 2014-01-28 11:23:44 UTC (rev 6690)
+++ trunk/sql/modules/Fixes.sql 2014-01-28 14:10:37 UTC (rev 6691)
@@ -289,3 +289,8 @@
BEGIN;
INSERT INTO defaults VALUES ('disable_back', '0');
COMMIT;
+
+BEGIN;
+UPDATE voucher SET batch_class = 2 WHERE batch_class = 1 AND trans_id IN
+(SELECT id FROM ar);
+COMMIT;
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