Revision 7e4a1765
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
bin/mozilla/ar.pl | ||
---|---|---|
779 | 779 |
|
780 | 780 |
$form->mtime_ischanged('ar'); |
781 | 781 |
|
782 |
my $validity_token; |
|
783 |
if (!$form->{id}) { |
|
784 |
$validity_token = SL::DB::Manager::ValidityToken->fetch_valid_token( |
|
785 |
scope => SL::DB::ValidityToken::SCOPE_SALES_INVOICE_POST(), |
|
786 |
token => $form->{form_validity_token}, |
|
787 |
); |
|
788 |
|
|
789 |
$form->error($::locale->text('The form is not valid anymore.')) if !$validity_token; |
|
790 |
} |
|
791 |
|
|
792 | 782 |
my ($datepaid); |
793 | 783 |
|
794 | 784 |
# check if there is an invoice number, invoice and due date |
... | ... | |
854 | 844 |
$form->{id} = 0 if $form->{postasnew}; |
855 | 845 |
$form->error($locale->text('Cannot post transaction!')) unless AR->post_transaction(\%myconfig, \%$form); |
856 | 846 |
|
857 |
$validity_token->delete if $validity_token; |
|
858 |
delete $form->{form_validity_token}; |
|
859 |
|
|
860 | 847 |
# saving the history |
861 | 848 |
if(!exists $form->{addition} && $form->{id} ne "") { |
862 | 849 |
$form->{snumbers} = "invnumber_$form->{invnumber}"; |
Auch abrufbar als: Unified diff
Gültigkeitstoken in Transaction abfragen und löschen: "alte" Controller
Lieferscheine
Einkaufsrechnung
Verkaufsrechnung
Kreditorenbuchung
Debitorenbuchung
Dialogbuchung