my @current_taxaccounts = (split(/ /, $form->{taxaccounts}));
$form->error($locale->text('Cannot post invoice for advance payment with more than one tax'))
if (scalar @current_taxaccounts > 1);
my @current_taxaccounts = (split(/ /, $form->{taxaccounts}));
$form->error($locale->text('Cannot post invoice for advance payment with more than one tax'))
if (scalar @current_taxaccounts > 1);