Added function - using list of location_incoterms

Added function to call for list of location_incoterms from the existing order records or table of location_incoterms.

Accordingly, an dditional ajex file namely "locationincoterms.php" and a database table namely c_location_incoterms are required.
This commit is contained in:
henrynopo 2021-08-20 10:43:34 +08:00 committed by GitHub
parent 0d0b147261
commit b2252106c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1055,8 +1055,12 @@ class Form
}
}
$out .= '</select>';
$out .= '<input id="location_incoterms" class="maxwidth100onsmartphone nomargintop nomarginbottom" name="location_incoterms" value="'.$location_incoterms.'">';
if ($conf->use_javascript_ajax && empty($disableautocomplete = 0)) {
$out .= ajax_multiautocompleter('location_incoterms', '', DOL_URL_ROOT.'/core/ajax/locationincoterms.php')."\n";
$moreattrib .= ' autocomplete="off"';
}
$out .= '<input id="location_incoterms" class="maxwidthonsmartphone type="text" name="location_incoterms" value="'.$location_incoterms.'">'."\n";
if (!empty($page)) {
$out .= '<input type="submit" class="button valignmiddle smallpaddingimp nomargintop nomarginbottom" value="'.$langs->trans("Modify").'"></form>';