Revision 1927b931
Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
|
||
$main::auth->assert($form->{type} eq 'purchase_order' || $form->{type} eq 'request_quotation' ? 'vendor_invoice_edit' : 'invoice_edit');
|
||
|
||
$form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_SALES_INVOICE_POST())->token;
|
||
$form->{old_salesman_id} = $form->{salesman_id};
|
||
$form->get_employee();
|
||
|
||
... | ... | |
$form->{script} = 'ir.pl';
|
||
$script = "ir";
|
||
$buysell = 'sell';
|
||
$form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_PURCHASE_INVOICE_POST())->token;
|
||
}
|
||
|
||
if ( $form->{type} eq 'sales_order'
|
||
... | ... | |
$form->{script} = 'is.pl';
|
||
$script = "is";
|
||
$buysell = 'buy';
|
||
$form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_SALES_INVOICE_POST())->token;
|
||
}
|
||
|
||
# bo creates the id, reset it
|
Auch abrufbar als: Unified diff
Gültigkeitstoken Einkaufsrechnung