35require_once DOL_DOCUMENT_ROOT.
"/product/class/html.formproduct.class.php";
47 print
"Error: this template page cannot be called directly as an URL";
52@phan-var-force CommonObject $this
53@phan-var-force CommonObject $object
54@phan-var-force Societe $buyer
57global $forceall, $forcetoshowtitlelines, $filtertype;
59if (empty($forceall)) {
63if (empty($filtertype)) {
76print
"<!-- BEGIN PHP TEMPLATE reception/tpl/objectline_create.tpl.php -->\n";
78$nolinesbefore = (count($this->lines) == 0 || $forcetoshowtitlelines);
81 print
'<tr class="liste_titre nodrag nodrop">';
83 print
'<td class="linecolnum center"></td>';
85 print
'<td class="linecoldescription minwidth500imp">';
86 print
'<div id="add"></div><span class="hideonsmartphone">'.$langs->trans(
'AddNewLine').
'</span>';
88 print
'<td class="linecolqty right">'.$langs->trans(
'Qty').
'</td>';
91 print
'<td class="linecoluseunit left">';
92 print
'<span id="title_units">';
93 print $langs->trans(
'Unit');
100print
'<tr class="pair nodrag nodrop nohoverpair'.(($nolinesbefore ||
$object->element ==
'contrat') ?
'' :
' liste_titre_create').
'">';
106 echo
'<td class="bordertop nobottom linecolnum center"></td>';
111print
'<td class="bordertop nobottom linecoldescription line minwidth500imp">';
115 if ($filtertype == 1) {
116 print $langs->trans(
"Service");
118 print $langs->trans(
"Product");
121 echo
'<span class="prod_entry_mode_predef nowraponall">';
129if (!empty($extrafields)) {
130 $temps = $objectline->showOptionals($extrafields,
'create', array(),
'',
'',
'1',
'line');
132 if (!empty($temps)) {
133 print
'<div style="padding-top: 10px" id="extrafield_lines_area_create" name="extrafield_lines_area_create">';
142print
'<td class="bordertop nobottom linecolqty right"><input type="text" size="2" name="qty" id="qty" class="flat right" value="'.(GETPOSTISSET(
"qty") ?
GETPOST(
"qty",
'alpha', 2) : 1).
'">';
148 print
'<td class="nobottom linecoluseunit">';
152$coldisplay += $colspan;
153print
'<td class="bordertop nobottom linecoledit right valignmiddle" colspan="' . $colspan .
'">';
154print
'<input type="submit" class="button button-add small" name="addline" id="addline" value="' . $langs->trans(
'Add') .
'">';
163jQuery(document).ready(
function() {
165 $(
"#idprod").change(
function()
167 console.log(
"#idprod change triggered");
170 if (jQuery(
'#idprod').val() > 0)
173 jQuery(
'#dp_desc').focus();
175 if (typeof CKEDITOR ==
"object" && typeof CKEDITOR.instances !=
"undefined")
177 var editor = CKEDITOR.instances[
'dp_desc'];
178 if (editor) { editor.focus(); }
186<!-- END PHP TEMPLATE objectline_create.tpl.php -->
if(! $sortfield) if(! $sortorder) $object
Class to manage table commandefournisseurdispatch.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.