my $transaction = {
amount => $form->{"amount_$i"},
tax => $form->{"tax_$i"},
- project_id => $form->{"project_id_$i"},
+ project_id => ($i==$form->{rowcount}) ? $form->{globalproject_id} : $form->{"project_id_$i"},
};
my $selected_accno_full;
}
if ($transdate > $closedto) {
print qq|
- <input class=submit type=submit name=action value="| . $locale->text('Use As Template') . qq|"> |;
+ <input class=submit type=submit name=action value="| . $locale->text('Use As New') . qq|"> |;
}
print qq|
<input class=submit type=submit name=action value="| . $locale->text('Post Payment') . qq|">
$main::lxdebug->leave_sub();
}
-sub use_as_template {
+sub use_as_new {
$main::lxdebug->enter_sub();
$main::auth->assert('general_ledger');