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

SF.net SVN: ledger-smb:[5543] trunk/LedgerSMB/Scripts/payment.pm



Revision: 5543
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5543&view=rev
Author:   einhverfr
Date:     2013-01-12 07:55:54 +0000 (Sat, 12 Jan 2013)
Log Message:
-----------
Fixed 3599695

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

Modified: trunk/LedgerSMB/Scripts/payment.pm
===================================================================
--- trunk/LedgerSMB/Scripts/payment.pm	2013-01-12 07:40:54 UTC (rev 5542)
+++ trunk/LedgerSMB/Scripts/payment.pm	2013-01-12 07:55:54 UTC (rev 5543)
@@ -127,9 +127,6 @@
 
 sub pre_bulk_post_report {
     my ($request) = @_;
-    if ($request->{account_class}  == 2){ # Not so helpful for receipts --CT
-       post_payments_bulk($request); 
-    }
     my $template = LedgerSMB::Template->new(
         user     => $request->{_user},
         locale   => $request->{_locale},
@@ -198,9 +195,7 @@
        source    => $request->{_locale}->text('Total'),
        amount    => $total,
     };
-    if ($request->{account_class} == 1){ # vendor
        $ref->{amount} *= -1;
-    } 
 
     if ($ref->{amount} < 0) {
         $ref->{debits} = $ref->{amount} * -1;

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