Revision 7e4a1765
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
814 | 814 |
$main::auth->assert('ap_transactions'); |
815 | 815 |
$form->mtime_ischanged('ap'); |
816 | 816 |
|
817 |
my $validity_token; |
|
818 |
if (!$form->{id}) { |
|
819 |
$validity_token = SL::DB::Manager::ValidityToken->fetch_valid_token( |
|
820 |
scope => SL::DB::ValidityToken::SCOPE_PURCHASE_INVOICE_POST(), |
|
821 |
token => $form->{form_validity_token}, |
|
822 |
); |
|
823 |
|
|
824 |
$form->error($::locale->text('The form is not valid anymore.')) if !$validity_token; |
|
825 |
} |
|
826 |
|
|
827 | 817 |
my ($inline) = @_; |
828 | 818 |
|
829 | 819 |
# check if there is a vendor, invoice, due date and invnumber |
... | ... | |
905 | 895 |
$form->{id} = 0 if $form->{postasnew}; |
906 | 896 |
|
907 | 897 |
if (AP->post_transaction(\%myconfig, \%$form)) { |
908 |
$validity_token->delete if $validity_token; |
|
909 |
delete $form->{form_validity_token}; |
|
910 |
|
|
911 | 898 |
# create webdav folder |
912 | 899 |
if ($::instance_conf->get_webdav) { |
913 | 900 |
SL::Webdav->new(type => 'accounts_payable', |
Auch abrufbar als: Unified diff
Gültigkeitstoken in Transaction abfragen und löschen: "alte" Controller
Lieferscheine
Einkaufsrechnung
Verkaufsrechnung
Kreditorenbuchung
Debitorenbuchung
Dialogbuchung