Revision 86a638aa
Von Jan Büren vor etwa 2 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
$form->{invnumber} = "Storno zu " . $form->{invnumber};
|
||
$form->{rowcount}++;
|
||
$form->{employee_id} = $employee_id;
|
||
# post expects the field as user input
|
||
$form->{exchangerate} = $form->format_amount(\%myconfig, $form->{exchangerate});
|
||
|
||
post();
|
||
$main::lxdebug->leave_sub();
|
||
|
||
... | ... | |
|
||
$form->{"converted_from_invoice_id_$_"} = delete $form->{"invoice_id_$_"} for 1 .. $form->{"rowcount"};
|
||
|
||
$form->{exchangerate} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'sell');
|
||
$form->{useasnew} = 1;
|
||
&display_form;
|
||
|
bin/mozilla/is.pl | ||
---|---|---|
$form->{"converted_from_invoice_id_$_"} = delete $form->{"invoice_id_$_"} for 1 .. $form->{"rowcount"};
|
||
|
||
$form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_SALES_INVOICE_POST())->token;
|
||
|
||
# post expects the field as user input
|
||
$form->{exchangerate} = $form->format_amount(\%myconfig, $form->{exchangerate});
|
||
$form->{script} = 'is.pl';
|
||
post();
|
||
$main::lxdebug->leave_sub();
|
||
}
|
Auch abrufbar als: Unified diff
Workflows Einkauf- und Verkaufsrechnung