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

SF.net SVN: ledger-smb:[5281] branches/1.3



Revision: 5281
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5281&view=rev
Author:   einhverfr
Date:     2012-11-28 04:17:52 +0000 (Wed, 28 Nov 2012)
Log Message:
-----------
Fixed payment terms of sales/purchase orders not respected

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB/AA.pm
    branches/1.3/bin/io.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-11-28 02:50:25 UTC (rev 5280)
+++ branches/1.3/Changelog	2012-11-28 04:17:52 UTC (rev 5281)
@@ -16,6 +16,7 @@
 * Fixed internal server errors retrieving taxes with invalid dates (Chris T)
 * Fixed taxform "default reportable" checkbox not persisted (Chris T, 3581310)
 * Fixed labelling of vendor column on taxform reports (Chris T, 3581317)
+* Fixed terms of sales/purchase order not respected (Chris T, 3581337)
 
 Chris T is Chris Travers
 Kevin B is Kevin Bailey

Modified: branches/1.3/LedgerSMB/AA.pm
===================================================================
--- branches/1.3/LedgerSMB/AA.pm	2012-11-28 02:50:25 UTC (rev 5280)
+++ branches/1.3/LedgerSMB/AA.pm	2012-11-28 04:17:52 UTC (rev 5281)
@@ -1285,6 +1285,7 @@
       : "current_date + c.terms";
 
     $form->{"$form->{vc}_id"} *= 1;
+    
 
     # get customer/vendor
     my $query = qq|
@@ -1314,6 +1315,7 @@
             delete $ref->{$_};
         }
     }
+    delete $ref->{duedate} if $form->{duedate};
 
     for ( keys %$ref ) { $form->{$_} = $ref->{$_} }
     $sth->finish;

Modified: branches/1.3/bin/io.pl
===================================================================
--- branches/1.3/bin/io.pl	2012-11-28 02:50:25 UTC (rev 5280)
+++ branches/1.3/bin/io.pl	2012-11-28 04:17:52 UTC (rev 5281)
@@ -824,7 +824,6 @@
 }
 
 sub display_form {
-
     $form->close_form();
     $form->open_form();
     $form->{dbh}->commit;

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