Payment VAT :: Add control on field required
This commit is contained in:
parent
165856656a
commit
bd99f3943d
@ -72,6 +72,16 @@ if ($action == 'add' && $_POST["cancel"] <> $langs->trans("Cancel"))
|
|||||||
$tva->label=GETPOST("label");
|
$tva->label=GETPOST("label");
|
||||||
$tva->note=GETPOST("note");
|
$tva->note=GETPOST("note");
|
||||||
|
|
||||||
|
if (empty($tva->datev))
|
||||||
|
{
|
||||||
|
setEventMessage($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("DateValue")),'errors');
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
if (empty($tva->datep))
|
||||||
|
{
|
||||||
|
setEventMessage($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("DatePayment")),'errors');
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
if (empty($tva->type_payment) || $tva->type_payment < 0)
|
if (empty($tva->type_payment) || $tva->type_payment < 0)
|
||||||
{
|
{
|
||||||
setEventMessage($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("PaymentMode")),'errors');
|
setEventMessage($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("PaymentMode")),'errors');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user