X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=sql-ledger%2Fbin%2Fmozilla%2Fio.pl;h=22228a9f8baba948f503d9a7ed457fd82587f80b;hb=f7fd2a3e34da751cbc02bbf215e99c6dc89adc15;hp=751d9a2ed0c57ab91b36fc97d7dcab050a0a88e5;hpb=0ebeec96313dd7edfca340f01f8fbbbac1f4aa1d;p=freeside.git diff --git a/sql-ledger/bin/mozilla/io.pl b/sql-ledger/bin/mozilla/io.pl index 751d9a2ed..22228a9f8 100644 --- a/sql-ledger/bin/mozilla/io.pl +++ b/sql-ledger/bin/mozilla/io.pl @@ -1,6 +1,6 @@ ###################################################################### # SQL-Ledger, Accounting -# Copyright (c) 1998-2002 +# Copyright (c) 2002 # # Author: Dieter Simader # Email: dsimader@sql-ledger.org @@ -19,7 +19,6 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# ####################################################################### # # common routines used in is, ir, oe @@ -71,35 +70,46 @@ if (-f "$form->{path}/$form->{login}_io.pl") { sub display_row { my $numrows = shift; - @column_index = (partnumber, description, qty); - + @column_index = qw(runningnumber partnumber description qty); + if ($form->{type} eq "sales_order") { - if ($form->{id}) { - push @column_index, "ship"; - $column_data{ship} = qq||.$locale->text('Ship').qq||; - } + push @column_index, "ship"; + $column_data{ship} = qq||.$locale->text('Ship').qq||; } if ($form->{type} eq "purchase_order") { - if ($form->{id}) { - push @column_index, "ship"; - $column_data{ship} = qq||.$locale->text('Recd').qq||; - } + push @column_index, "ship"; + $column_data{ship} = qq||.$locale->text('Recd').qq||; } - - push @column_index, qw(unit sellprice); - - if ($form->{script} eq 'is.pl' || $form->{type} eq 'sales_order') { - push @column_index, qw(discount); + + foreach $item (qw(projectnumber partsgroup)) { + $form->{"select$item"} = $form->unescape($form->{"select$item"}) if $form->{"select$item"}; } - - push @column_index, "linetotal"; + + if ($form->{language_code} ne $form->{oldlanguage_code}) { + # rebuild partsgroup + $form->get_partsgroup(\%myconfig, { language_code => $form->{language_code} }); + if (@ { $form->{all_partsgroup} }) { + $form->{selectpartsgroup} = "