37require_once DOL_DOCUMENT_ROOT.
"/product/class/html.formproduct.class.php";
55 print
"Error, template page can't be called as URL";
60@phan-var-force receptionlinebatch $line
61@phan-var-force CommonObject $this
62@phan-var-force CommonObject $object
64@phan-var-force bool $var
65@phan-var-force Societe $buyer
66@phan-var-force Societe $seller
69global $forceall, $filtertype;
71if (empty($forceall)) {
75if (empty($filtertype)) {
88print
"<!-- BEGIN PHP TEMPLATE reception/tpl/objectline_edit.tpl.php -->\n";
91print
'<tr class="oddeven tredited">';
94 print
'<td class="linecolnum center">'.($i + 1).
'</td>';
101 <div
id=
"line_<?php echo $line->id; ?>"></div>
103 <input
type=
"hidden" name=
"lineid" value=
"<?php echo $line->id; ?>">
104 <input
type=
"hidden" id=
"product_type" name=
"type" value=
"<?php echo $line->product_type; ?>">
105 <input
type=
"hidden" id=
"product_id" name=
"productid" value=
"<?php echo(!empty($line->fk_product) ? $line->fk_product : 0); ?>" />
106 <input
type=
"hidden" id=
"special_code" name=
"special_code" value=
"<?php echo $line->special_code; ?>">
110if ($line->fk_product > 0) {
112 $tmpproduct->fetch($line->fk_product);
113 print $tmpproduct->getNomUrl(1);
114 print
' - '.$tmpproduct->label;
118if (!empty($extrafields)) {
119 $temps = $line->showOptionals($extrafields,
'edit', array(
'class' =>
'tredited'),
'',
'',
'1',
'line');
120 if (!empty($temps)) {
121 print
'<div style="padding-top: 10px" id="extrafield_lines_area_edit" name="extrafield_lines_area_edit">';
131print
'<td class="nobottom linecolqty right">';
133if (((
int) $line->info_bits & 2) != 2) {
134 print
'<input size="3" type="text" class="flat right" name="qty" id="qty" value="'.$line->qty.
'">';
142 if (!empty($line->fk_unit) && !
getDolGlobalString(
'MAIN_EDIT_LINE_ALLOW_ALL_UNIT_TYPE')) {
143 include_once DOL_DOCUMENT_ROOT.
'/core/class/cunits.class.php';
144 $cUnit =
new CUnits($line->db);
145 if ($cUnit->fetch((
int) $line->fk_unit) > 0) {
146 if (!empty($cUnit->unit_type)) {
147 $unit_type = $cUnit->unit_type;
152 print
'<td class="left">';
153 print $form->selectUnits(GETPOSTISSET(
'units') ?
GETPOST(
'units') : $line->fk_unit,
"units", 0, $unit_type);
157$coldisplay += $colspan;
158print
'<td class="nobottom linecoledit center valignmiddle" colspan="'.$colspan.
'">';
159$coldisplay += $colspan;
160print
'<input type="submit" class="reposition button buttongen margintoponly marginbottomonly button-save" id="savelinebutton" name="save" value="'.$langs->trans(
"Save").
'">';
161print
'<input type="submit" class="reposition button buttongen margintoponly marginbottomonly button-cancel" id="cancellinebutton" name="cancel" value="'.$langs->trans(
"Cancel").
'">';
165print
"<!-- END PHP TEMPLATE objectline_edit.tpl.php -->\n";
if(! $sortfield) if(! $sortorder) $object
Class of dictionary type of thirdparty (used by imports)
Class to manage products or services.
Class to manage table commandefournisseurdispatch.
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.
if(preg_match('/(crypted|dolcrypt):/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
'integer', 'integer:ObjectClass:PathToClass[:AddCreateButtonOrNot[:Filter[:Sortfield]]]',...
$conf db name
Only used if Module[ID]Name translation string is not found.