Revision 991d16bb
Von Jan Büren vor fast 10 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
436 | 436 |
my @hidden_vars; |
437 | 437 |
# add hidden ids for persistent (item|invoice)_ids and previous (converted_from*) ids |
438 | 438 |
if ($is_quotation) { |
439 |
push @hidden_vars, qw(orderitems_id); |
|
439 |
push @hidden_vars, qw(orderitems_id converted_from_orderitems_id);
|
|
440 | 440 |
} |
441 | 441 |
if ($is_s_p_order) { |
442 |
push @hidden_vars, qw(orderitems_id converted_from_quotation_orderitems_id); |
|
442 |
push @hidden_vars, qw(orderitems_id converted_from_quotation_orderitems_id converted_from_invoice_id);
|
|
443 | 443 |
} |
444 | 444 |
if ($is_invoice) { |
445 | 445 |
push @hidden_vars, qw(invoice_id converted_from_orderitems_id converted_from_delivery_order_items_id); |
... | ... | |
743 | 743 |
stock_out stock_in has_sernumber reqdate orderitems_id |
744 | 744 |
active_price_source active_discount_source delivery_order_items_id |
745 | 745 |
invoice_id converted_from_quotation_orderitems_id |
746 |
converted_from_orderitems_id converted_from_delivery_order_items_id); |
|
746 |
converted_from_orderitems_id converted_from_delivery_order_items_id |
|
747 |
converted_from_invoice_id); |
|
747 | 748 |
|
748 | 749 |
my $ic_cvar_configs = CVar->get_configs(module => 'IC'); |
749 | 750 |
push @flds, map { "ic_cvar_$_->{name}" } @{ $ic_cvar_configs }; |
... | ... | |
883 | 884 |
map({ $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) |
884 | 885 |
if ($form->{"${_}_${i}"}) } |
885 | 886 |
qw(ship qty sellprice listprice basefactor discount)); |
887 |
$form->{"converted_from_invoice_id_$i"} = delete $form->{"invoice_id_$i"}; |
|
886 | 888 |
} |
887 | 889 |
|
888 | 890 |
&prepare_order; |
... | ... | |
903 | 905 |
# we are coming from *_order and convert to quotation |
904 | 906 |
# it seems that quotation is only called if we have a existing order |
905 | 907 |
if ($form->{type} =~ /(sales|purchase)_order/) { |
906 |
delete $form->{"orderitems_id_$_"} for 1 .. $form->{"rowcount"}; |
|
908 |
$form->{"converted_from_orderitems_id_$_"} = delete $form->{"orderitems_id_$_"} for 1 .. $form->{"rowcount"};
|
|
907 | 909 |
} |
908 | 910 |
if ($form->{second_run}) { |
909 | 911 |
$form->{print_and_post} = 0; |
Auch abrufbar als: Unified diff
Weitere Positionen verknüpft II
Gutschrift und Rückwartsverknüpfungen umgesetzt. Ferner für
OE.pm und IS.pm den Aufruf von RecordLinks in eine foreach
Schleife gesetzt (einfachere Codewartung).
Kleinigkeiten die mir hier nicht gefällt: converted_from_quotation,
die Variable ist jetzt noch drin und macht "nicht so viel Sinn",
da orderitems nicht zwischen Angebot und Auftrag (oe) unterscheidet.
Ansonsten ist die Positionsverknüpfung z.Z. genauer als die Beleg-Verknüpfung (s.a. #29)
und der nächste Schritt hiefür wäre die Visualisierung an der Oberfläche