38require_once DOL_DOCUMENT_ROOT.
"/product/class/html.formproduct.class.php";
56 print
"Error, template page can't be called as URL";
61@phan-var-force receptionlinebatch $line
62@phan-var-force CommonObject $this
63@phan-var-force CommonObject $object
65@phan-var-force bool $var
66@phan-var-force Societe $buyer
67@phan-var-force Societe $seller
70global $forceall, $filtertype;
72if (empty($forceall)) {
76if (empty($filtertype)) {
89print
"<!-- BEGIN PHP TEMPLATE reception/tpl/objectline_edit.tpl.php -->\n";
92print
'<tr class="oddeven tredited">';
95 print
'<td class="linecolnum center">'.($i + 1).
'</td>';
102 <div
id=
"line_<?php echo $line->id; ?>"></div>
104 <input
type=
"hidden" name=
"lineid" value=
"<?php echo $line->id; ?>">
105 <input
type=
"hidden" id=
"product_type" name=
"type" value=
"<?php echo $line->product_type; ?>">
106 <input
type=
"hidden" id=
"product_id" name=
"productid" value=
"<?php echo(!empty($line->fk_product) ? $line->fk_product : 0); ?>" />
107 <input
type=
"hidden" id=
"special_code" name=
"special_code" value=
"<?php echo $line->special_code; ?>">
111if ($line->fk_product > 0) {
113 $tmpproduct->fetch($line->fk_product);
114 print $tmpproduct->getNomUrl(1);
115 print
' - '.$tmpproduct->label;
119if (!empty($extrafields)) {
120 $temps = $line->showOptionals($extrafields,
'edit', array(
'class' =>
'tredited'),
'',
'',
'1',
'line');
121 if (!empty($temps)) {
122 print
'<div style="padding-top: 10px" id="extrafield_lines_area_edit" name="extrafield_lines_area_edit">';
130print
'<td class="nobottom linecolrefsupplier">';
132print
'<input id="fourn_ref" name="fourn_ref" class="flat minwidth50 maxwidth100" value="'.dol_escape_htmltag((
string) (!empty($line->ref_fourn) ? $line->ref_fourn :
'')).
'">';
134print
'<td class="nobottom linecolcostprice right">';
136print
'<input size="6" type="text" class="flat right" name="cost_price" id="cost_price" value="'.(!empty($line->cost_price) ?
price2num($line->cost_price) :
'').
'">';
138print
'<td class="nobottom linecolqty right">';
141if (((
int) $line->info_bits & 2) != 2) {
142 print
'<input size="3" type="text" class="flat right" name="qty" id="qty" value="'.$line->qty.
'">';
150 if (!empty($line->fk_unit) && !
getDolGlobalString(
'MAIN_EDIT_LINE_ALLOW_ALL_UNIT_TYPE')) {
151 include_once DOL_DOCUMENT_ROOT.
'/core/class/cunits.class.php';
152 $cUnit =
new CUnits($line->db);
153 if ($cUnit->fetch((
int) $line->fk_unit) > 0) {
154 if (!empty($cUnit->unit_type)) {
155 $unit_type = $cUnit->unit_type;
160 print
'<td class="left">';
161 print $form->selectUnits(
GETPOSTISSET(
'units') ?
GETPOST(
'units') : $line->fk_unit,
"units", 0, $unit_type);
164print
'<td class="nobottom linecolwarehouse right">';
166require_once DOL_DOCUMENT_ROOT.
'/product/class/html.formproduct.class.php';
168print $formproductline->selectWarehouses(!empty($line->fk_entrepot) ? $line->fk_entrepot :
'',
'entrepot_id',
'', 1, 0, (!empty($line->fk_product) ? $line->fk_product : 0),
'', 1);
171 print
'<td class="nobottom linecolbatch">';
173 print
'<input size="8" type="text" class="flat" name="batch" id="batch" value="'.dol_escape_htmltag((
string) (!empty($line->batch) ? $line->batch :
'')).
'">';
177$coldisplay += $colspan;
178print
'<td class="nobottom linecoledit center valignmiddle" colspan="'.$colspan.
'">';
179print
'<input type="submit" class="reposition button buttongen margintoponly marginbottomonly button-save" id="savelinebutton" name="save" value="'.$langs->trans(
"Save").
'">';
180print
'<input type="submit" class="reposition button buttongen margintoponly marginbottomonly button-cancel" id="cancellinebutton" name="cancel" value="'.$langs->trans(
"Cancel").
'">';
184print
"<!-- END PHP TEMPLATE objectline_edit.tpl.php -->\n";
if(! $sortfield) if(! $sortorder) $object
$propal type
'integer', 'integer:ObjectClass:PathToClass[:AddCreateButtonOrNot[:Filter[:Sortfield]]]',...
Class of dictionary type of thirdparty (used by imports)
Class to manage products or services.
Class to manage table commandefournisseurdispatch.
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
$conf db name
Only used if Module[ID]Name translation string is not found.