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

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



Revision: 6164
          http://sourceforge.net/p/ledger-smb/code/6164
Author:   einhverfr
Date:     2013-10-23 12:16:04 +0000 (Wed, 23 Oct 2013)
Log Message:
-----------
Vendor invoices now work with invoice sequence code

Modified Paths:
--------------
    trunk/LedgerSMB/IR.pm
    trunk/bin/ir.pl

Modified: trunk/LedgerSMB/IR.pm
===================================================================
--- trunk/LedgerSMB/IR.pm	2013-10-23 12:11:54 UTC (rev 6163)
+++ trunk/LedgerSMB/IR.pm	2013-10-23 12:16:04 UTC (rev 6164)
@@ -85,7 +85,7 @@
     }
     my $dbh = $LedgerSMB::App_State::DBH;
     $form->{invnumber} = $form->update_defaults( $myconfig, "vinumber", $dbh )
-      unless $form->{invnumber};
+      if $form->should_update_defaults('invnumber');
 
     for ( 1 .. $form->{rowcount} ) {
         $form->{"qty_$_"} *= -1 if $form->{reverse};

Modified: trunk/bin/ir.pl
===================================================================
--- trunk/bin/ir.pl	2013-10-23 12:11:54 UTC (rev 6163)
+++ trunk/bin/ir.pl	2013-10-23 12:16:04 UTC (rev 6164)
@@ -544,7 +544,8 @@
 	    <table>
 	      <tr>
 		<th align=right nowrap>| . $locale->text('Invoice Number') . qq|</th>
-		<td><input name=invnumber size=20 value="$form->{invnumber}"></td>
+		<td><input name=invnumber size=20 value="$form->{invnumber}">
+                   | .  $form->sequence_dropdown('vinumber') . qq|</td>
 	      </tr>
 	      <tr>
 		<th align=right nowrap>| . $locale->text('Order Number') . qq|</th>

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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits