Revision 273d8de6
Von Sven Schöling vor mehr als 15 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
134 | 134 |
$form->header; |
135 | 135 |
|
136 | 136 |
map { delete $form->{$_} } qw(action header); |
137 |
|
|
137 |
|
|
138 | 138 |
print $form->parse_html_template('ic/confirm_price_update', { HIDDENS => [ map { name => $_, value => $form->{$_} }, keys %$form ] }); |
139 | 139 |
|
140 | 140 |
$lxdebug->leave_sub(); |
... | ... | |
969 | 969 |
# l_linetotal l_priceupdate l_bin l_rop l_weight l_image l_drawing l_microfiche |
970 | 970 |
# l_partsgroup l_subtotal l_soldtotal l_deliverydate |
971 | 971 |
# |
972 |
# hiddens:
|
|
972 |
# hiddens: |
|
973 | 973 |
# nextsub revers lastsort sort ndxs_counter |
974 | 974 |
# |
975 | 975 |
sub generate_report { |
... | ... | |
1002 | 1002 |
} #fi |
1003 | 1003 |
|
1004 | 1004 |
# special case if we have a serialnumber limit search |
1005 |
# serialnumbers are only given in invoices and orders,
|
|
1005 |
# serialnumbers are only given in invoices and orders, |
|
1006 | 1006 |
# so they can only pop up in bought, sold, rfq, and quoted stuff |
1007 |
$form->{no_sn_joins} = 'Y' if ( !$form->{bought} && !$form->{sold}
|
|
1008 |
&& !$form->{rfq} && !$form->{quoted}
|
|
1007 |
$form->{no_sn_joins} = 'Y' if ( !$form->{bought} && !$form->{sold} |
|
1008 |
&& !$form->{rfq} && !$form->{quoted} |
|
1009 | 1009 |
&& ($form->{l_serialnumber} || $form->{serialnumber})); |
1010 | 1010 |
|
1011 | 1011 |
# special case for any checkbox of bought | sold | onorder | ordered | rfq | quoted. |
... | ... | |
1068 | 1068 |
|
1069 | 1069 |
# generate callback and optionstrings |
1070 | 1070 |
my @options; |
1071 |
for my $key (@itemstatus_keys, @callback_keys) {
|
|
1071 |
for my $key (@itemstatus_keys, @callback_keys) { |
|
1072 | 1072 |
next if ($form->{itemstatus} ne $key && !$form->{$key}); |
1073 | 1073 |
push @options, $optiontexts{$key}; |
1074 | 1074 |
} |
... | ... | |
1295 | 1295 |
|
1296 | 1296 |
sub parts_subtotal { |
1297 | 1297 |
$lxdebug->enter_sub(); |
1298 |
|
|
1298 |
|
|
1299 | 1299 |
$auth->assert('part_service_assembly_edit'); |
1300 | 1300 |
|
1301 | 1301 |
# imports |
... | ... | |
1462 | 1462 |
|
1463 | 1463 |
map { $form->{"is_$_"} = ($form->{item} eq $_) } qw(part service assembly); |
1464 | 1464 |
map { $form->{$_} =~ s/"/"/g; } qw(unit); |
1465 |
|
|
1466 |
$form->get_lists('price_factors' => 'ALL_PRICE_FACTORS',
|
|
1465 |
|
|
1466 |
$form->get_lists('price_factors' => 'ALL_PRICE_FACTORS', |
|
1467 | 1467 |
'partsgroup' => 'all_partsgroup'); |
1468 | 1468 |
|
1469 | 1469 |
IC->retrieve_buchungsgruppen(\%myconfig, $form); |
... | ... | |
1478 | 1478 |
$form->{fokus} = "ic.partnumber"; |
1479 | 1479 |
|
1480 | 1480 |
$form->header; |
1481 |
print $form->parse_html_template('ic/form_header', { ALL_PRICE_FACTORS => $form->{ALL_PRICE_FACTORS},
|
|
1481 |
print $form->parse_html_template('ic/form_header', { ALL_PRICE_FACTORS => $form->{ALL_PRICE_FACTORS}, |
|
1482 | 1482 |
ALL_UNITS => $form->{ALL_UNITS}, |
1483 | 1483 |
BUCHUNGSGRUPPEN => $form->{BUCHUNGSGRUPPEN}, |
1484 | 1484 |
payment_terms => $form->{payment_terms}, |
... | ... | |
1499 | 1499 |
sub makemodel_row { |
1500 | 1500 |
$lxdebug->enter_sub(); |
1501 | 1501 |
my ($numrows) = @_; |
1502 |
|
|
1502 |
|
|
1503 | 1503 |
my @mm_data = grep { any { $_ ne '' } @$_{qw(make model)} } map +{ make => $form->{"make_$_"}, model => $form->{"model_$_"} }, 1 .. $numrows; |
1504 | 1504 |
print $form->parse_html_template('ic/makemodel', { MM_DATA => [ @mm_data, {} ], mm_rows => scalar @mm_data + 1 }); |
1505 | 1505 |
|
... | ... | |
1754 | 1754 |
} |
1755 | 1755 |
|
1756 | 1756 |
if (!$form->{buchungsgruppen_id}) { |
1757 |
$form->error($locale->text("Parts must have an entry type.") . " " .
|
|
1758 |
$locale->text("If you see this message, you most likely just setup your LX-Office and haven't added any entry types. If this is the case, the option is accessible for administrators in the System menu.")
|
|
1757 |
$form->error($locale->text("Parts must have an entry type.") . " " . |
|
1758 |
$locale->text("If you see this message, you most likely just setup your LX-Office and haven't added any entry types. If this is the case, the option is accessible for administrators in the System menu.") |
|
1759 | 1759 |
); |
1760 | 1760 |
} |
1761 | 1761 |
|
Auch abrufbar als: Unified diff
Whitespace Purge