X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fir.pl;h=78a0333e326e929fcb4f6b7d91efe1326b08b2c2;hb=9fd46de37d7906b7c104c17112b34bae7d534d67;hp=9baa523a28bc585a8f36e81f20ef53f2940ff854;hpb=ec93aab75346a6caeeeca81ddc7a070e73a6a7c8;p=kivitendo-erp.git diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 9baa523a2..78a0333e3 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -37,6 +37,7 @@ use SL::PE; require "$form->{path}/io.pl"; require "$form->{path}/arap.pl"; require "$form->{path}/common.pl"; +require "bin/mozilla/drafts.pl"; 1; @@ -45,6 +46,8 @@ require "$form->{path}/common.pl"; sub add { $lxdebug->enter_sub(); + return $lxdebug->leave_sub() if (load_draft_maybe()); + $form->{title} = $locale->text('Add Vendor Invoice'); &invoice_links; @@ -399,6 +402,8 @@ sub form_header { {storno}> {storno_id}> +| . ($form->{saved_message} ? qq|

$form->{saved_message}

| : "") . qq| + @@ -553,7 +558,8 @@ sub form_footer { $tax .= qq| - + |; @@ -594,7 +600,8 @@ sub form_footer { $tax .= qq| - + @@ -801,7 +808,9 @@ sub form_footer { if (!$form->{id} && ($invdate > $closedto)) { print qq| |; + . $locale->text('Post') . qq|"> | . + NTI($cgi->submit('-name' => 'action', '-value' => $locale->text('Save draft'), + '-class' => 'submit')); } print $form->write_trigger(\%myconfig, scalar(@triggers) / 3, @triggers) . @@ -814,15 +823,18 @@ sub form_footer { {path}> {login}> {password}> -|; +| + . $cgi->hidden('-name' => 'draft_id', '-default' => [$form->{draft_id}]) + . $cgi->hidden('-name' => 'draft_description', '-default' => [$form->{draft_description}]); + # button for saving history if($form->{id} ne "") { print qq| - {id} - . qq|); name=history id=history value=| - . $locale->text('history') - . qq|>|; + |; } # /button for saving history @@ -1068,7 +1080,7 @@ sub post { relink_accounts(); - if (IR->post_invoice(\%myconfig, \%$form)){ + if (IR->post_invoice(\%myconfig, \%$form)){ # saving the history if(!exists $form->{addition} && $form->{id} ne "") { $form->{addition} = "POSTED"; @@ -1076,6 +1088,7 @@ sub post { $form->save_history($form->dbconnect(\%myconfig)); } # /saving the history + remove_draft() if $form->{remove_draft}; $form->redirect( $locale->text('Invoice') . " $form->{invnumber} " . $locale->text('posted!'));
$form->{title}
$form->{"${item}_description"}$form->{"${item}_description"} | + . $form->{"${item}_rate"} * 100 .qq|% $form->{"${item}_total"}
Enthaltene $form->{"${item}_description"}Enthaltene $form->{"${item}_description"} | + . $form->{"${item}_rate"} * 100 .qq|% $form->{"${item}_total"}