X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fic.pl;h=0e7fdf533149cf957f77d1017a8f158cd9273ad0;hb=c09c9c4ce0afe48535f3ae369d7e3769e0a1245c;hp=6d49eab28470e98fb81eb0a15f6a0610b2c1cdc6;hpb=69c4afb76eaafbbe668a66775e6072df5ce5bd49;p=kivitendo-erp.git diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 6d49eab28..0e7fdf533 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -32,6 +32,7 @@ #====================================================================== use SL::IC; +#use SL::PE; require "$form->{path}/io.pl"; @@ -50,7 +51,7 @@ sub add { $form->{unit} = ($form->{item} eq 'service') ? $locale->text('hr') : $locale->text('ea'); - + IC->get_pricegroups(\%myconfig, \%$form); &link_part; &display_form; @@ -84,14 +85,12 @@ sub search { $button1 = qq| text('button') - . qq|> + . $locale->text('button') . qq|> |; $button2 = qq| text('button') - . qq|> + . $locale->text('button') . qq|> |; #write Trigger @@ -132,8 +131,7 @@ sub search { $l_serialnumber = qq|  | - . $locale->text('Serial Number') - . qq| + . $locale->text('Serial Number') . qq| |; } @@ -272,8 +270,7 @@ sub search { | - . $locale->text('Part Description') - . qq| + . $locale->text('Part Description') . qq| @@ -310,71 +307,53 @@ sub search { | - . $locale->text('Include in Report') - . qq| + . $locale->text('Include in Report') . qq| + . $locale->text('Part Number') . qq| + . $locale->text('Part Description') . qq| $l_serialnumber + . $locale->text('Unit of measure') . qq| + . $locale->text('List Price') . qq| + . $locale->text('Sell Price') . qq| + . $locale->text('Last Cost') . qq| + . $locale->text('Line Total') . qq| + . $locale->text('Updated') . qq| + . $locale->text('Bin') . qq| + . $locale->text('ROP') . qq| + . $locale->text('Weight') . qq| + . $locale->text('Image') . qq| + . $locale->text('Drawing') . qq| + . $locale->text('Microfiche') . qq| + . $locale->text('Group') . qq| + . $locale->text('Subtotal') . qq| + . $locale->text('soldtotal') . qq|
 | - . $locale->text('Part Number') - . qq|  | - . $locale->text('Part Description') - . qq| | - . $locale->text('Unit of measure') - . qq|
 | - . $locale->text('List Price') - . qq|  | - . $locale->text('Sell Price') - . qq|  | - . $locale->text('Last Cost') - . qq|  | - . $locale->text('Line Total') - . qq|
 | - . $locale->text('Updated') - . qq|  | - . $locale->text('Bin') - . qq|  | - . $locale->text('ROP') - . qq|  | - . $locale->text('Weight') - . qq|
 | - . $locale->text('Image') - . qq|  | - . $locale->text('Drawing') - . qq|  | - . $locale->text('Microfiche') - . qq|  | - . $locale->text('Group') - . qq|
 | - . $locale->text('Subtotal') - . qq|  | - . $locale->text('soldtotal') - . qq|
@@ -433,11 +412,9 @@ sub choice { + . $locale->text('Part Number') . qq| + . $locale->text('Part Description') . qq| @@ -858,10 +835,9 @@ sub addtop100 { $option .= $locale->text('soldtotal') . qq| : $form->{soldtotal}
|; } - @columns = - $form->sort_columns( + @columns = $form->sort_columns( qw(number partnumber description partsgroup bin onhand rop unit listprice linetotallistprice sellprice linetotalsellprice lastcost linetotallastcost priceupdate weight image drawing microfiche invnumber ordnumber quonumber name serialnumber soldtotal) - ); + ); if ($form->{l_linetotal}) { $form->{l_onhand} = "Y"; @@ -1441,10 +1417,9 @@ sub generate_report { $option .= $locale->text('soldtotal') . qq| : $form->{soldtotal}
|; } - @columns = - $form->sort_columns( + @columns = $form->sort_columns( qw(partnumber description partsgroup bin onhand rop unit listprice linetotallistprice sellprice linetotalsellprice lastcost linetotallastcost priceupdate weight image drawing microfiche invnumber ordnumber quonumber name serialnumber soldtotal) - ); + ); if ($form->{l_linetotal}) { $form->{l_onhand} = "Y"; @@ -1921,7 +1896,9 @@ sub link_part { delete $form->{amount}; $form->get_partsgroup(\%myconfig, { all => 1 }); + $form->{partsgroup} = "$form->{partsgroup}--$form->{partsgroup_id}"; + if (@{ $form->{all_partsgroup} }) { $form->{selectpartsgroup} = qq| + . $locale->text('Last Cost') . qq| |; @@ -2153,8 +2130,7 @@ sub form_header { + . $form->format_amount(\%myconfig, $form->{onhand}) . qq| |; @@ -2183,14 +2159,12 @@ sub form_header { $vegv = qq| + . $locale->text('Verrechnungseinheit') . qq| + . $locale->text('Geschäftsvolumen') . qq| |; @@ -2227,8 +2201,7 @@ sub form_header { $obsolete .= qq| + . $locale->text('Shopartikel') . qq| |; @@ -2249,8 +2222,7 @@ sub form_header { $button1 = qq| + . $locale->text('button') . qq|> |; #write Trigger @@ -2314,8 +2286,7 @@ sub form_header {
| - . $locale->text('Part Number') - . qq| | - . $locale->text('Part Description') - . qq|
| - . $locale->text('Last Cost') - . qq| {lastcost}>
| . $locale->text('On Hand') . qq|  | - . $form->format_amount(\%myconfig, $form->{onhand}) - . qq|
| - . $locale->text('Verrechnungseinheit') - . qq| {ve}>
| - . $locale->text('Geschäftsvolumen') - . qq| {gv}>
| - . $locale->text('Shopartikel') - . qq|
text('button') - . qq|>
+ . $locale->text('Link Accounts') . qq| $linkaccounts @@ -2332,8 +2303,7 @@ sub form_header {
| - . $locale->text('Link Accounts') - . qq|
+ . $locale->text('Updated') . qq| $button1 @@ -2378,11 +2348,9 @@ sub form_footer {
| - . $locale->text('Updated') - . qq|
+ . $locale->text('Total') . qq|  + . $form->format_amount(\%myconfig, $form->{assemblytotal}, 2) . qq|
| - . $locale->text('Total') - . qq|  | - . $form->format_amount(\%myconfig, $form->{assemblytotal}, 2) - . qq|
@@ -2415,6 +2383,9 @@ sub form_footer { |; } + print qq| + {price_rows}>|; + print qq| |; @@ -2718,7 +2689,6 @@ sub update { if ($form->{item} eq 'service') { map { $form->{$_} = $form->parse_amount(\%myconfig, $form->{$_}) } qw(sellprice listprice); - &form_header; &form_footer; } @@ -2898,15 +2868,13 @@ sub stock_assembly { + . $locale->text('Part Number') . qq| + . $locale->text('Part Description') . qq|
| - . $locale->text('Part Number') - . qq|  
| - . $locale->text('Part Description') - . qq|
@@ -3053,4 +3021,37 @@ sub restock_assemblies { $lxdebug->leave_sub(); } +sub price_row { + $lxdebug->enter_sub(); + + my ($numrows) = @_; + + print qq| + + + + + + + +|; + for $i (1 .. $numrows) { + print qq| + + + + + +|; + } + + print qq| +
| . $locale->text('Preisklasse') . qq|| . $locale->text('Preis') . qq|
{"pricegroup_$i"}>$form->{"pricegroup_$i"}
+ + +|; + + $lxdebug->leave_sub(); +} + sub continue { &{ $form->{nextsub} } }