Revision a105aa8b
Von Jan Büren vor etwa 2 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
793 | 793 |
$form->{invnumber} = "Storno zu " . $form->{invnumber}; |
794 | 794 |
$form->{rowcount}++; |
795 | 795 |
$form->{employee_id} = $employee_id; |
796 |
# post expects the field as user input |
|
797 |
$form->{exchangerate} = $form->format_amount(\%myconfig, $form->{exchangerate}); |
|
798 |
|
|
796 | 799 |
post(); |
797 | 800 |
$main::lxdebug->leave_sub(); |
798 | 801 |
|
... | ... | |
813 | 816 |
|
814 | 817 |
$form->{"converted_from_invoice_id_$_"} = delete $form->{"invoice_id_$_"} for 1 .. $form->{"rowcount"}; |
815 | 818 |
|
819 |
$form->{exchangerate} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'sell'); |
|
816 | 820 |
$form->{useasnew} = 1; |
817 | 821 |
&display_form; |
818 | 822 |
|
bin/mozilla/is.pl | ||
---|---|---|
1368 | 1368 |
$form->{"converted_from_invoice_id_$_"} = delete $form->{"invoice_id_$_"} for 1 .. $form->{"rowcount"}; |
1369 | 1369 |
|
1370 | 1370 |
$form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_SALES_INVOICE_POST())->token; |
1371 |
|
|
1371 |
# post expects the field as user input |
|
1372 |
$form->{exchangerate} = $form->format_amount(\%myconfig, $form->{exchangerate}); |
|
1373 |
$form->{script} = 'is.pl'; |
|
1372 | 1374 |
post(); |
1373 | 1375 |
$main::lxdebug->leave_sub(); |
1374 | 1376 |
} |
Auch abrufbar als: Unified diff
Workflows Einkauf- und Verkaufsrechnung