Merge branch 'NEW_field_in_service_object' of github.com:atm-jpb/dolibarr into NEW_field_in_service_object

This commit is contained in:
jpb 2021-07-26 09:15:49 +02:00
commit b4199d8945

View File

@ -679,8 +679,8 @@ if (!empty($usemargins) && $user->rights->margins->creer) {
<?php if ($this->table_element_line != 'commande_fournisseurdet' || $this->table_element_line == 'facture_fourn_det') { ?>
$("#date_start, #date_end").focusout(function()
{
let type = $(this).attr('type');
let mandatoryP = $(this).attr('mandatoryperiod');
let type = $(this).attr('type');
let mandatoryP = $(this).attr('mandatoryperiod');
if (type == 1 && mandatoryP == 1 ){
if ( $(this).val() == '' && !$(this).hasClass("error") ) {
$(this).addClass('error');