@@ -711,7 +752,7 @@ sub form_footer {
$column_data{"AP_paid_$i"} =
qq| | |;
$column_data{"datepaid_$i"} =
- qq|{"datepaid_$i"}>
+ qq| | {"datepaid_$i"}>
| |;
$column_data{"source_$i"} =
qq|{"source_$i"}> | |;
@@ -759,13 +800,17 @@ sub form_footer {
print qq|
|;
- } else {
- if ($invdate > $closedto) {
- print qq|
- |;
- }
+
+ }
+
+ print qq||;
+
+ if (!$form->{id} && ($invdate > $closedto)) {
+ print qq| | .
+ NTI($cgi->submit('-name' => 'action', '-value' => $locale->text('Save draft'),
+ '-class' => 'submit'));
}
print $form->write_trigger(\%myconfig, scalar(@triggers) / 3, @triggers) .
@@ -778,8 +823,22 @@ 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|
+ |;
+ }
+ # /button for saving history
+
+print qq|