Revision 94e11003
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
465 | 465 |
# save printed, emailed, queued |
466 | 466 |
$form->save_status($dbh); |
467 | 467 |
|
468 |
# Link this record to the records it was created from. |
|
469 |
RecordLinks->create_links('dbh' => $dbh, |
|
470 |
'mode' => 'ids', |
|
471 |
'from_table' => 'oe', |
|
472 |
'from_ids' => $form->{convert_from_oe_ids}, |
|
473 |
'to_table' => 'oe', |
|
474 |
'to_id' => $form->{id}, |
|
475 |
); |
|
476 |
delete $form->{convert_from_oe_ids}; |
|
477 |
|
|
468 | 478 |
if (($form->{currency} ne $form->{defaultcurrency}) && !$exchangerate) { |
469 | 479 |
if ($form->{vc} eq 'customer') { |
470 | 480 |
$form->update_exchangerate($dbh, $form->{currency}, $form->{transdate}, $form->{exchangerate}, 0); |
... | ... | |
600 | 610 |
if ($form->{"multi_id_$_"} and $form->{"trans_id_$_"}) |
601 | 611 |
} (1 .. $form->{"rowcount"}); |
602 | 612 |
|
613 |
if ($form->{rowcount} && scalar @ids) { |
|
614 |
$form->{convert_from_oe_ids} = join ' ', @ids; |
|
615 |
} |
|
616 |
|
|
603 | 617 |
# if called in multi id mode, and still only got one id, switch back to single id |
604 | 618 |
if ($form->{"rowcount"} and $#ids == 0) { |
605 | 619 |
$form->{"id"} = $ids[0]; |
Auch abrufbar als: Unified diff
Beim Umwandeln von Angeboten/Preisanfragen in Aufträge die IDs in record_links speichern. Beim Umwandeln von Aufträgen und Lieferscheinen in Rechnungen die IDs in record_links speichern.