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

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



Revision: 6414
          http://sourceforge.net/p/ledger-smb/code/6414
Author:   einhverfr
Date:     2014-01-07 09:46:50 +0000 (Tue, 07 Jan 2014)
Log Message:
-----------
Fixing 'To pay' vs 'received' in receipt screen

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

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2014-01-07 09:39:51 UTC (rev 6413)
+++ trunk/Changelog	2014-01-07 09:46:50 UTC (rev 6414)
@@ -108,6 +108,7 @@
 * Deleted broken pricematrix check on existing rows in POS (Chris T)
 * Fixing manually entered tax amounts ignored printing invoice (Chris T, 864)
 * Fixing deleting gl draft via gl screen fails (Chris T, 871)
+* Fixing receipts listing "to pay" for amount (Chris T, 892)
 
 Chris T is Chris Travers
 Nick P is Nick Prater

Modified: trunk/LedgerSMB/Scripts/payment.pm
===================================================================
--- trunk/LedgerSMB/Scripts/payment.pm	2014-01-07 09:39:51 UTC (rev 6413)
+++ trunk/LedgerSMB/Scripts/payment.pm	2014-01-07 09:46:50 UTC (rev 6414)
@@ -808,8 +808,13 @@
                        };
   }
 # FINALLY WE ADD TO THE COLUMN HEADERS A LAST FIELD TO PRINT THE CLOSE INVOICE CHECKBOX TRICK :)
+if ($request->{account_class} == 1){
  push @column_headers, {text => $locale->text('To pay').$currency_text}, 
                        {text => 'X'};
+} else {
+ push @column_headers, {text => $locale->text('Received').$currency_text}, 
+                       {text => 'X'};
+}
 # WE NEED TO QUERY THE DATABASE TO CHECK FOR OPEN INVOICES
 # WE WONT DO ANYTHING IF WE DONT FIND ANY INVOICES, THE USER CAN STILL POST A PREPAYMENT
 my @invoice_data;

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


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits