Revision 62726dfd
Von Sven Schöling vor mehr als 8 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
43 | 43 |
require "bin/mozilla/io.pl"; |
44 | 44 |
require "bin/mozilla/arap.pl"; |
45 | 45 |
require "bin/mozilla/common.pl"; |
46 |
require "bin/mozilla/drafts.pl"; |
|
47 | 46 |
|
48 | 47 |
use strict; |
49 | 48 |
|
... | ... | |
63 | 62 |
$::form->show_generic_error($::locale->text("You do not have the permissions to access this function.")); |
64 | 63 |
} |
65 | 64 |
|
66 |
return $main::lxdebug->leave_sub() if (load_draft_maybe()); |
|
67 |
|
|
68 | 65 |
$form->{show_details} = $::myconfig{show_form_details}; |
69 | 66 |
|
70 | 67 |
$form->{title} = $locale->text('Record Vendor Invoice'); |
... | ... | |
344 | 341 |
$TMPL_VAR{payment_terms_obj} = get_payment_terms_for_invoice(); |
345 | 342 |
$form->{duedate} = $TMPL_VAR{payment_terms_obj}->calc_date(reference_date => $form->{invdate}, due_date => $form->{due_due})->to_kivitendo if $TMPL_VAR{payment_terms_obj}; |
346 | 343 |
|
347 |
$::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer autocomplete_part client_js)); |
|
344 |
$::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery kivi.io autocomplete_customer autocomplete_part client_js));
|
|
348 | 345 |
|
349 | 346 |
$form->header(); |
350 | 347 |
|
... | ... | |
806 | 803 |
$form->save_history; |
807 | 804 |
} |
808 | 805 |
# /saving the history |
809 |
remove_draft() if $form->{remove_draft}; |
|
810 | 806 |
$form->redirect( $locale->text('Invoice') |
811 | 807 |
. " $form->{invnumber} " |
812 | 808 |
. $locale->text('posted!')); |
Auch abrufbar als: Unified diff
Drafts: Ausgelagert in Controller