[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6169] trunk
- Subject: SF.net SVN: ledger-smb:[6169] trunk
- From: ..hidden..
- Date: Wed, 23 Oct 2013 13:27:15 +0000
Revision: 6169
http://sourceforge.net/p/ledger-smb/code/6169
Author: einhverfr
Date: 2013-10-23 13:27:13 +0000 (Wed, 23 Oct 2013)
Log Message:
-----------
Series code works on partnumbers now too
Modified Paths:
--------------
trunk/LedgerSMB/Form.pm
trunk/LedgerSMB/IC.pm
trunk/bin/ic.pl
Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm 2013-10-23 13:19:14 UTC (rev 6168)
+++ trunk/LedgerSMB/Form.pm 2013-10-23 13:27:13 UTC (rev 6169)
@@ -3787,6 +3787,7 @@
sub sequence_dropdown{
my ($self, $setting_key) = @_;
+ return undef if $self->{id};
my @sequences = LedgerSMB::Setting::Sequence->list($setting_key);
my $retval = qq|<select name='setting_sequence' class='sequence'>\n|;
$retval .= qq|<option></option>|;
Modified: trunk/LedgerSMB/IC.pm
===================================================================
--- trunk/LedgerSMB/IC.pm 2013-10-23 13:19:14 UTC (rev 6168)
+++ trunk/LedgerSMB/IC.pm 2013-10-23 13:27:13 UTC (rev 6169)
@@ -252,7 +252,7 @@
my $nocommit=1;
$form->{partnumber} =
$form->update_defaults( $myconfig, "partnumber", $dbh,$nocommit)
- if !$form->{partnumber};
+ if $form->should_update_defaults('partnumber');
( $form->{inventory_accno} ) = split( /--/, $form->{IC_inventory} );
( $form->{expense_accno} ) = split( /--/, $form->{IC_expense} );
Modified: trunk/bin/ic.pl
===================================================================
--- trunk/bin/ic.pl 2013-10-23 13:19:14 UTC (rev 6168)
+++ trunk/bin/ic.pl 2013-10-23 13:27:13 UTC (rev 6169)
@@ -771,7 +771,8 @@
<th align=left>$group</th>
</tr>
<tr valign=top>
- <td><input name=partnumber value="$form->{partnumber}" size=20></td>
+ <td><input name=partnumber value="$form->{partnumber}" size=20>
+ | . $form->sequence_dropdown('partnumber') . qq| </td>
<td>$description</td>
<td>$partsgroup</td>
</tr>
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