$form->isblank("datepaid_$i", $locale->text('Payment date missing!'));
+ $form->error($locale->text('Zero amount posting!')) if !$form->parse_amount(\%myconfig, $form->{"amount_$i"});
$form->error($locale->text('Cannot post payment for a closed period!'))
if ($datepaid <= $closedto);
$closedto = $form->datetonum($form->{closedto}, \%myconfig);
$transdate = $form->datetonum($form->{transdate}, \%myconfig);
+ $form->error($locale->text('Zero amount posting!')) if !$form->parse_amount(\%myconfig, $form->{amount});
$form->error($locale->text('Cannot post transaction for a closed period!'))
if ($transdate <= $closedto);
$form->isblank("datepaid_$i", $locale->text('Payment date missing!'));
+ $form->error($locale->text('Zero amount posting!')) if !$form->parse_amount(\%myconfig, $form->{"amount_$i"});
$form->error($locale->text('Cannot post payment for a closed period!'))
if ($datepaid <= $closedto);