Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 510ca0b0

Von Thomas Kasulke vor fast 18 Jahren hinzugefügt

  • ID 510ca0b00027e4d1d0016da5f327ecd78b3b5425
  • Vorgänger a8da2c89
  • Nachfolger a4b728e0

Nullbuchungen führen ab jetzt zu einem Fehler.

Unterschiede anzeigen:

bin/mozilla/cp.pl
<td colspan=3><input name=source value="$form->{source}" size=10></td>
</tr>
<tr>
<th align=right nowrap>| . $locale->text('Amount') . qq|</th>
<td colspan=3><input name=amount size=10 value=|
. $form->format_amount(\%myconfig, $form->{amount}, 2) . qq| onBlur=\"check_right_number_format(this)\"></td>
<th align="right" nowrap>| . $locale->text('Amount') . qq|</th>
<td colspan="3"><input name="amount" size="10" value="|
. $form->format_amount(\%myconfig, $form->{amount}, 2) . qq|" onBlur=\"check_right_number_format(this)\"></td>
</tr>
</table>
</td>
......
$form->{amount} = $form->format_amount(\%myconfig, $form->{amount}, 2);
$form->{decimal} .= "00";
#$form->{decimal} .= "00";
$form->{decimal} = substr($form->{decimal}, 0, 2);
$check = new CP $myconfig{countrycode};
......
exit;
}
$form->error($locale->text('Zero amount posting!')) if ($form->{amount} eq "0,00" || $form->{amount} eq "0.00");
$form->error($locale->text('Date missing!')) unless $form->{datepaid};
$closedto = $form->datetonum($form->{closedto}, \%myconfig);

Auch abrufbar als: Unified diff