Revision 62726dfd
Von Sven Schöling vor mehr als 8 Jahren hinzugefügt
bin/mozilla/ar.pl | ||
---|---|---|
45 | 45 |
|
46 | 46 |
require "bin/mozilla/arap.pl"; |
47 | 47 |
require "bin/mozilla/common.pl"; |
48 |
require "bin/mozilla/drafts.pl"; |
|
49 | 48 |
require "bin/mozilla/reportgenerator.pl"; |
50 | 49 |
|
51 | 50 |
use strict; |
... | ... | |
87 | 86 |
my $form = $main::form; |
88 | 87 |
my %myconfig = %main::myconfig; |
89 | 88 |
|
90 |
return $main::lxdebug->leave_sub() if (load_draft_maybe()); |
|
91 |
|
|
92 | 89 |
# saving the history |
93 | 90 |
if(!exists $form->{addition} && ($form->{id} ne "")) { |
94 | 91 |
$form->{snumbers} = qq|invnumber_| . $form->{invnumber}; |
... | ... | |
98 | 95 |
# /saving the history |
99 | 96 |
|
100 | 97 |
$form->{title} = "Add"; |
101 |
$form->{callback} = "ar.pl?action=add&DONT_LOAD_DRAFT=1" unless $form->{callback};
|
|
98 |
$form->{callback} = "ar.pl?action=add" unless $form->{callback}; |
|
102 | 99 |
|
103 | 100 |
AR->get_transdate(\%myconfig, $form); |
104 | 101 |
$form->{initial_transdate} = $form->{transdate}; |
... | ... | |
332 | 329 |
|
333 | 330 |
$form->{javascript} .= |
334 | 331 |
qq|<script type="text/javascript" src="js/show_vc_details.js"></script>| . |
335 |
qq|<script type="text/javascript" src="js/follow_up.js"></script>|; |
|
332 |
qq|<script type="text/javascript" src="js/follow_up.js"></script>| . |
|
333 |
qq|<script type="text/javascript" src="js/kivi.Draft.js"></script>|; |
|
336 | 334 |
|
337 | 335 |
# $amount = $locale->text('Amount'); |
338 | 336 |
# $project = $locale->text('Project'); |
... | ... | |
740 | 738 |
$form->save_history; |
741 | 739 |
} |
742 | 740 |
# /saving the history |
743 |
remove_draft() if $form->{remove_draft}; |
|
744 | 741 |
|
745 | 742 |
$form->redirect($locale->text('Transaction posted!')) unless $inline; |
746 | 743 |
|
Auch abrufbar als: Unified diff
Drafts: Ausgelagert in Controller