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

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



Revision: 5043
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5043&view=rev
Author:   einhverfr
Date:     2012-07-25 14:34:27 +0000 (Wed, 25 Jul 2012)
Log Message:
-----------
fixed customer/vendor cleared on update on ship/receive details screen

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/bin/oe.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-07-25 10:53:37 UTC (rev 5042)
+++ branches/1.3/Changelog	2012-07-25 14:34:27 UTC (rev 5043)
@@ -17,6 +17,7 @@
 * Fixed error on generate purchase orders (Chris T, 3544857, h/t Nigel T)
 * Fixed internal server errors with date parsing (Chris T, 3546698)
 * Fixed "Directory Transversal Not Allowed w/fs_cssdir (Chris T, h/t Robert C)
+* Fixed customer/vendor cleared on ship/receive update (Chris T, 3548104)
 
 Changelog for 1.3.20
 * Fixes for es_AR translation, duplicate keys removed (Andres B)

Modified: branches/1.3/bin/oe.pl
===================================================================
--- branches/1.3/bin/oe.pl	2012-07-25 10:53:37 UTC (rev 5042)
+++ branches/1.3/bin/oe.pl	2012-07-25 14:34:27 UTC (rev 5043)
@@ -997,6 +997,10 @@
         &rebuild_vc( $form->{vc}, $ARAP, $form->{transdate}, 1 );
     }
 
+    # I think this is safe because the shipping or receiving is tied to the 
+    # order which is tied to the customer or vendor.  -CT
+    $newname = 1 if $form->{type} =~ /(ship|receive)/;
+
     if ( $form->{transdate} ne $form->{oldtransdate} ) {
         $form->{reqdate} =
           ( $form->{terms} )

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