mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Debug v20
This commit is contained in:
parent
0875ef231f
commit
1e1058b29a
|
|
@ -2482,11 +2482,16 @@ if ($action == 'create') {
|
|||
}
|
||||
}
|
||||
if ($nbMandated > 0) {
|
||||
$text .= '<div><span class="clearboth nowraponall warning">'.$langs->trans("mandatoryPeriodNeedTobeSetMsgValidate").'</span></div>';
|
||||
if (getDolGlobalString('SERVICE_STRICT_MANDATORY_PERIOD')) {
|
||||
setEventMessages($langs->trans("mandatoryPeriodNeedTobeSetMsgValidate"), null, 'errors');
|
||||
$error++;
|
||||
} else {
|
||||
$text .= '<div><span class="clearboth nowraponall warning">'.img_warning().$langs->trans("mandatoryPeriodNeedTobeSetMsgValidate").'</span></div>';
|
||||
}
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateProp'), $text, 'confirm_validate', '', 0, 1);
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateProp'), $text, 'confirm_validate', '', 0, 1, 240);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2248,7 +2248,12 @@ if ($action == 'create' && $usercancreate) {
|
|||
}
|
||||
}
|
||||
if ($nbMandated > 0) {
|
||||
$text .= '<div><span class="clearboth nowraponall warning">'.$langs->trans("mandatoryPeriodNeedTobeSetMsgValidate").'</span></div>';
|
||||
if (getDolGlobalString('SERVICE_STRICT_MANDATORY_PERIOD')) {
|
||||
setEventMessages($langs->trans("mandatoryPeriodNeedTobeSetMsgValidate"), null, 'errors');
|
||||
$error++;
|
||||
} else {
|
||||
$text .= '<div><span class="clearboth nowraponall warning">'.img_warning().$langs->trans("mandatoryPeriodNeedTobeSetMsgValidate").'</span></div>';
|
||||
}
|
||||
}
|
||||
|
||||
if (getDolGlobalInt('SALE_ORDER_SUGGEST_DOWN_PAYMENT_INVOICE_CREATION')) {
|
||||
|
|
@ -2361,7 +2366,7 @@ if ($action == 'create' && $usercancreate) {
|
|||
}
|
||||
|
||||
if (!$error) {
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateOrder'), $text, 'confirm_validate', $formquestion, 0, 1, 220);
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ValidateOrder'), $text, 'confirm_validate', $formquestion, 0, 1, 240);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4421,11 +4421,17 @@ if ($action == 'create') {
|
|||
}
|
||||
}
|
||||
if ($nbMandated > 0) {
|
||||
$text .= '<div><span class="clearboth nowraponall warning">'.$langs->trans("mandatoryPeriodNeedTobeSetMsgValidate").'</span></div>';
|
||||
if (getDolGlobalString('SERVICE_STRICT_MANDATORY_PERIOD')) {
|
||||
setEventMessages($langs->trans("mandatoryPeriodNeedTobeSetMsgValidate"), null, 'errors');
|
||||
$error++;
|
||||
} else {
|
||||
$text .= '<div><span class="clearboth nowraponall warning">'.img_warning().$langs->trans("mandatoryPeriodNeedTobeSetMsgValidate").'</span></div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id, $langs->trans('ValidateBill'), $text, 'confirm_valid', $formquestion, (($object->type != Facture::TYPE_CREDIT_NOTE && $object->total_ttc < 0) ? "no" : "yes"), 2);
|
||||
if (!$error) {
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?facid='.$object->id, $langs->trans('ValidateBill'), $text, 'confirm_valid', $formquestion, (($object->type != Facture::TYPE_CREDIT_NOTE && $object->total_ttc < 0) ? "no" : "yes"), 2, 240);
|
||||
}
|
||||
}
|
||||
|
||||
// Confirm back to draft status
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user