Revision 77350196
Von Jan Büren vor fast 10 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
843 | 843 |
$form->{old_employee_id} = $form->{employee_id}; |
844 | 844 |
$form->{old_salesman_id} = $form->{salesman_id}; |
845 | 845 |
|
846 |
map { delete $form->{$_} } qw(id printed emailed queued); |
|
846 |
# link doc invoice -> quotation (single id no multi mode) |
|
847 |
$form->{convert_from_ar_ids} = delete $form->{id}; |
|
848 |
|
|
849 |
delete $form->{$_} foreach (qw(printed emailed queued)); |
|
847 | 850 |
my $buysell; |
848 | 851 |
if ($form->{script} eq 'ir.pl' || $form->{type} eq 'request_quotation') { |
849 | 852 |
$form->{title} = $locale->text('Add Purchase Order'); |
... | ... | |
906 | 909 |
if ($form->{type} =~ /(sales|purchase)_order/) { |
907 | 910 |
$form->{"converted_from_orderitems_id_$_"} = delete $form->{"orderitems_id_$_"} for 1 .. $form->{"rowcount"}; |
908 | 911 |
} |
912 |
# link doc order -> quotation (single id no multi mode) |
|
913 |
$form->{convert_from_oe_ids} = delete $form->{id}; |
|
914 |
|
|
909 | 915 |
if ($form->{second_run}) { |
910 | 916 |
$form->{print_and_post} = 0; |
911 | 917 |
} |
912 |
map { delete $form->{$_} } qw(id printed emailed queued);
|
|
918 |
delete $form->{$_} foreach (qw(printed emailed queued));
|
|
913 | 919 |
|
914 | 920 |
my $buysell; |
915 | 921 |
if ($form->{script} eq 'ir.pl' || $form->{type} eq 'purchase_order') { |
Auch abrufbar als: Unified diff
Ticket 29 Verknüpfte Belege -> keine Verknüpfung von Rechnung nach Auftrag
Verknüpfung von Rechnung nach Angebot, sowie Auftrag nach Angebot umgesetzt.
Ferner ein einfaches delete $form->{variable_die_resettet_wird} foreach an dieser Stelle
eingebaut (ohne map).
Ferner die Verknüpfung der Belege in eine Schleife gesetzt.