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

SF.net SVN: ledger-smb: [644] trunk/LedgerSMB/IC.pm



Revision: 644
          http://svn.sourceforge.net/ledger-smb/?rev=644&view=rev
Author:   tetragon
Date:     2006-11-16 15:09:38 -0800 (Thu, 16 Nov 2006)

Log Message:
-----------
Fix formatting of empty date

Modified Paths:
--------------
    trunk/LedgerSMB/IC.pm

Modified: trunk/LedgerSMB/IC.pm
===================================================================
--- trunk/LedgerSMB/IC.pm	2006-11-16 22:23:41 UTC (rev 643)
+++ trunk/LedgerSMB/IC.pm	2006-11-16 23:09:38 UTC (rev 644)
@@ -547,7 +547,11 @@
       
 			($null, $pricegroup_id) 
 				= split /--/, $form->{"pricegroup_$i"};
-      
+
+			my $validfrom;
+			my $validto;
+			$validfrom = $form->{"validfrom_$i"} if $form->{"validfrom_$i"};
+			$validto = $form->{"validto_$i"} if $form->{"validto_$i"};
 			$query = qq|
 				INSERT INTO partscustomer 
 				            (parts_id, customer_id,


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