@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $id = 0; |
77 | 77 | } |
78 | 78 | $object = fetchObjectByElement($id, $element, $element_ref); |
79 | -if (! is_object($object)) { |
|
79 | +if (!is_object($object)) { |
|
80 | 80 | httponly_accessforbidden('Not allowed, bad combination of parameters for fetchObjectByElement'); |
81 | 81 | } |
82 | 82 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | print 'object->id='.$object->id.' - object->module='.$object->module.' - object->element='.$object->element.' - object->table_element='.$object->table_element.' - usesublevelpermission='.$usesublevelpermission."\n"; |
90 | 90 | |
91 | 91 | // Security check |
92 | -$result = restrictedArea($user, $object->module, $object, $object->table_element, $usesublevelpermission, 'fk_soc', 'rowid', 0, 1); // Call with mode return |
|
92 | +$result = restrictedArea($user, $object->module, $object, $object->table_element, $usesublevelpermission, 'fk_soc', 'rowid', 0, 1); // Call with mode return |
|
93 | 93 | if (!$result) { |
94 | 94 | httponly_accessforbidden('Not allowed by restrictArea'); |
95 | 95 | } |
@@ -106,9 +106,9 @@ discard block |
||
106 | 106 | |
107 | 107 | // Load original field value |
108 | 108 | if (!empty($field) && !empty($element) && !empty($table_element) && !empty($fk_element)) { |
109 | - $field = preg_replace('/^editval_/', '', $field); // remove prefix "editval_" |
|
109 | + $field = preg_replace('/^editval_/', '', $field); // remove prefix "editval_" |
|
110 | 110 | |
111 | - $type = GETPOST('type', 'alpha', 2); // type string by default |
|
111 | + $type = GETPOST('type', 'alpha', 2); // type string by default |
|
112 | 112 | |
113 | 113 | $value = ($type == 'ckeditor' ? GETPOST('value', '', 2) : GETPOST('value', 'alpha', 2)); |
114 | 114 |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | 'typent.code' => array('label' => "ThirdPartyType", 'checked' => (string) $checkedtypetiers, 'position' => 55), |
209 | 209 | 'c.date_commande' => array('label' => "OrderDateShort", 'checked' => '1', 'position' => 60), |
210 | 210 | 'c.delivery_date' => array('label' => "DateDeliveryPlanned", 'checked' => '1', 'enabled' => (string) (int) !getDolGlobalString('ORDER_DISABLE_DELIVERY_DATE'), 'position' => 65), |
211 | - 'c.fk_shipping_method' => array('label' => "SendingMethod", 'checked' => '-1', 'position' => 66 , 'enabled' => (string) (int) isModEnabled('shipping')), |
|
211 | + 'c.fk_shipping_method' => array('label' => "SendingMethod", 'checked' => '-1', 'position' => 66, 'enabled' => (string) (int) isModEnabled('shipping')), |
|
212 | 212 | 'c.fk_cond_reglement' => array('label' => "PaymentConditionsShort", 'checked' => '-1', 'position' => 67), |
213 | 213 | 'c.fk_mode_reglement' => array('label' => "PaymentMode", 'checked' => '-1', 'position' => 68), |
214 | 214 | 'c.fk_input_reason' => array('label' => "Channel", 'checked' => '-1', 'position' => 69), |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | 'c.date_cloture' => array('label' => "DateClosing", 'checked' => '0', 'position' => 130), |
233 | 233 | 'c.note_public' => array('label' => 'NotePublic', 'checked' => '0', 'enabled' => (string) (int) (!getDolGlobalString('MAIN_LIST_ALLOW_PUBLIC_NOTES')), 'position' => 135), |
234 | 234 | 'c.note_private' => array('label' => 'NotePrivate', 'checked' => '0', 'enabled' => (string) (int) (!getDolGlobalString('MAIN_LIST_ALLOW_PRIVATE_NOTES')), 'position' => 140), |
235 | - 'shippable' => array('label' => "Shippable", 'checked' => '1','enabled' => (string) (int) (isModEnabled('shipping')), 'position' => 990), |
|
235 | + 'shippable' => array('label' => "Shippable", 'checked' => '1', 'enabled' => (string) (int) (isModEnabled('shipping')), 'position' => 990), |
|
236 | 236 | 'c.facture' => array('label' => "Billed", 'checked' => '1', 'enabled' => (string) (int) (!getDolGlobalString('WORKFLOW_BILL_ON_SHIPMENT')), 'position' => 995), |
237 | 237 | 'c.import_key' => array('type' => 'varchar(14)', 'label' => 'ImportId', 'enabled' => '1', 'visible' => -2, 'position' => 999), |
238 | 238 | 'c.fk_statut' => array('label' => "Status", 'checked' => '1', 'position' => 1000) |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | $sql .= natural_search('pr.ref', $search_refProduct); |
461 | 461 | } |
462 | 462 | if ($search_descProduct) { |
463 | - $sql .= natural_search(array('pr.label','cdet.description'), $search_descProduct); |
|
463 | + $sql .= natural_search(array('pr.label', 'cdet.description'), $search_descProduct); |
|
464 | 464 | } |
465 | 465 | if ($search_ref) { |
466 | 466 | $sql .= natural_search('c.ref', $search_ref); |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | if ($searchCategoryCustomerOperator == 0) { |
608 | 608 | $searchCategoryCustomerSqlList[] = " EXISTS (SELECT cs.fk_soc FROM ".MAIN_DB_PREFIX."categorie_societe as cs WHERE s.rowid = cs.fk_soc AND cs.fk_categorie = ".((int) $searchCategoryCustomer).")"; |
609 | 609 | } else { |
610 | - $listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryCustomer); |
|
610 | + $listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryCustomer); |
|
611 | 611 | } |
612 | 612 | } |
613 | 613 | } |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | if ($searchCategoryProductOperator == 0) { |
637 | 637 | $searchCategoryProjectSqlList[] = " EXISTS (SELECT cp.fk_product FROM ".MAIN_DB_PREFIX."categorie_product as cp WHERE cdet.fk_product = cp.fk_product AND cp.fk_categorie = ".((int) $searchCategoryProject).")"; |
638 | 638 | } else { |
639 | - $listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryProject); |
|
639 | + $listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryProject); |
|
640 | 640 | } |
641 | 641 | } |
642 | 642 | } |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | if (!empty($socid)) { |
907 | 907 | $url .= '&socid='.$socid; |
908 | 908 | } |
909 | - $newcardbutton = '';//dolGetButtonTitle($langs->trans('NewOrder'), '', 'fa fa-plus-circle', $url, '', $contextpage == 'orderlistdet' && $permissiontoadd); |
|
909 | + $newcardbutton = ''; //dolGetButtonTitle($langs->trans('NewOrder'), '', 'fa fa-plus-circle', $url, '', $contextpage == 'orderlistdet' && $permissiontoadd); |
|
910 | 910 | |
911 | 911 | // Lines of title fields |
912 | 912 | print '<form method="POST" id="searchFormList" action="'.$_SERVER["PHP_SELF"].'">'; |
@@ -2123,10 +2123,10 @@ discard block |
||
2123 | 2123 | if (!empty($show_shippable_command) && isModEnabled('stock')) { |
2124 | 2124 | $text_icon = ''; |
2125 | 2125 | if (($obj->fk_statut > $generic_commande::STATUS_DRAFT) && ($obj->fk_statut < $generic_commande::STATUS_CLOSED)) { |
2126 | - $generic_commande->loadExpeditions(); // Load array ->expeditions |
|
2126 | + $generic_commande->loadExpeditions(); // Load array ->expeditions |
|
2127 | 2127 | |
2128 | 2128 | if (isset($generic_commande->expeditions[$obj->rowid])) { |
2129 | - $reliquat = $obj->qty - $generic_commande->expeditions[$obj->rowid]; |
|
2129 | + $reliquat = $obj->qty - $generic_commande->expeditions[$obj->rowid]; |
|
2130 | 2130 | } else { |
2131 | 2131 | $reliquat = $obj->qty; |
2132 | 2132 | } |
@@ -91,18 +91,18 @@ discard block |
||
91 | 91 | |
92 | 92 | |
93 | 93 | $id = (GETPOSTINT('id') ? GETPOSTINT('id') : GETPOSTINT('orderid')); |
94 | -$ref = GETPOST('ref', 'alpha'); |
|
95 | -$socid = GETPOSTINT('socid'); |
|
96 | -$action = GETPOST('action', 'aZ09'); |
|
97 | -$cancel = GETPOST('cancel', 'alpha'); |
|
98 | -$confirm = GETPOST('confirm', 'alpha'); |
|
94 | +$ref = GETPOST('ref', 'alpha'); |
|
95 | +$socid = GETPOSTINT('socid'); |
|
96 | +$action = GETPOST('action', 'aZ09'); |
|
97 | +$cancel = GETPOST('cancel', 'alpha'); |
|
98 | +$confirm = GETPOST('confirm', 'alpha'); |
|
99 | 99 | $backtopage = GETPOST('backtopage', 'alpha'); |
100 | 100 | |
101 | -$lineid = GETPOSTINT('lineid'); |
|
102 | -$contactid = GETPOSTINT('contactid'); |
|
103 | -$projectid = GETPOSTINT('projectid'); |
|
104 | -$origin = GETPOST('origin', 'alpha'); |
|
105 | -$originid = (GETPOSTINT('originid') ? GETPOSTINT('originid') : GETPOSTINT('origin_id')); // For backward compatibility |
|
101 | +$lineid = GETPOSTINT('lineid'); |
|
102 | +$contactid = GETPOSTINT('contactid'); |
|
103 | +$projectid = GETPOSTINT('projectid'); |
|
104 | +$origin = GETPOST('origin', 'alpha'); |
|
105 | +$originid = (GETPOSTINT('originid') ? GETPOSTINT('originid') : GETPOSTINT('origin_id')); // For backward compatibility |
|
106 | 106 | $rank = (GETPOSTINT('rank') > 0) ? GETPOSTINT('rank') : -1; |
107 | 107 | |
108 | 108 | // Type Contact default |
@@ -145,26 +145,26 @@ discard block |
||
145 | 145 | $extrafields->fetch_name_optionals_label($object->table_element); |
146 | 146 | |
147 | 147 | // Load object |
148 | -include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be 'include', not 'include_once' |
|
148 | +include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be 'include', not 'include_once' |
|
149 | 149 | |
150 | 150 | // Permissions / Rights |
151 | -$usercanread = $user->hasRight("commande", "lire"); |
|
152 | -$usercancreate = $user->hasRight("commande", "creer"); |
|
153 | -$usercandelete = $user->hasRight("commande", "supprimer"); |
|
151 | +$usercanread = $user->hasRight("commande", "lire"); |
|
152 | +$usercancreate = $user->hasRight("commande", "creer"); |
|
153 | +$usercandelete = $user->hasRight("commande", "supprimer"); |
|
154 | 154 | |
155 | 155 | // Advanced permissions |
156 | -$usercanclose = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && !empty($usercancreate)) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'close'))); |
|
157 | -$usercanvalidate = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'validate'))); |
|
158 | -$usercancancel = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'annuler'))); |
|
159 | -$usercansend = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'send')); |
|
160 | -$usercangeneretedoc = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'generetedoc')); |
|
156 | +$usercanclose = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && !empty($usercancreate)) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'close'))); |
|
157 | +$usercanvalidate = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'validate'))); |
|
158 | +$usercancancel = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'annuler'))); |
|
159 | +$usercansend = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'send')); |
|
160 | +$usercangeneretedoc = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'generetedoc')); |
|
161 | 161 | |
162 | 162 | $usermustrespectpricemin = ((getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && !$user->hasRight('produit', 'ignore_price_min_advance')) || !getDolGlobalString('MAIN_USE_ADVANCED_PERMS')); |
163 | 163 | $usercancreatepurchaseorder = ($user->hasRight('fournisseur', 'commande', 'creer') || $user->hasRight('supplier_order', 'creer')); |
164 | 164 | |
165 | -$permissionnote = $usercancreate; // Used by the include of actions_setnotes.inc.php |
|
166 | -$permissiondellink = $usercancreate; // Used by the include of actions_dellink.inc.php |
|
167 | -$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
165 | +$permissionnote = $usercancreate; // Used by the include of actions_setnotes.inc.php |
|
166 | +$permissiondellink = $usercancreate; // Used by the include of actions_dellink.inc.php |
|
167 | +$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
168 | 168 | $permissiontoeditextra = $usercancreate; |
169 | 169 | if (GETPOST('attribute', 'aZ09') && isset($extrafields->attributes[$object->table_element]['perms'][GETPOST('attribute', 'aZ09')])) { |
170 | 170 | // For action 'update_extras', is there a specific permission set for the attribute to update |
@@ -215,11 +215,11 @@ discard block |
||
215 | 215 | $action = ''; |
216 | 216 | } |
217 | 217 | |
218 | - include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be 'include', not 'include_once' |
|
218 | + include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be 'include', not 'include_once' |
|
219 | 219 | |
220 | - include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php'; // Must be 'include', not 'include_once' |
|
220 | + include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php'; // Must be 'include', not 'include_once' |
|
221 | 221 | |
222 | - include DOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php'; // Must be 'include', not 'include_once' |
|
222 | + include DOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php'; // Must be 'include', not 'include_once' |
|
223 | 223 | |
224 | 224 | // Action clone object |
225 | 225 | if ($action == 'confirm_clone' && $confirm == 'yes' && $usercancreate) { |
@@ -824,7 +824,7 @@ discard block |
||
824 | 824 | if ($prod->price_min > $line->subprice) { |
825 | 825 | $price_subprice = price($line->subprice, 0, $outlangs, 1, -1, -1, 'auto'); |
826 | 826 | $price_price_min = price($prod->price_min, 0, $outlangs, 1, -1, -1, 'auto'); |
827 | - setEventMessages($prod->ref . ' - ' . $prod->label . ' (' . $price_subprice . ' < ' . $price_price_min . ' ' . strtolower($langs->trans("MinPrice")) . ')' . "\n", null, 'warnings'); |
|
827 | + setEventMessages($prod->ref.' - '.$prod->label.' ('.$price_subprice.' < '.$price_price_min.' '.strtolower($langs->trans("MinPrice")).')'."\n", null, 'warnings'); |
|
828 | 828 | } else { |
829 | 829 | setEventMessages($prod->error, $prod->errors, 'errors'); |
830 | 830 | } |
@@ -968,7 +968,7 @@ discard block |
||
968 | 968 | $pu_ht = ''; |
969 | 969 | $pu_ttc = ''; |
970 | 970 | $pu_ht_devise = ''; |
971 | - $pu_ttc_devise = ''; |
|
971 | + $pu_ttc_devise = ''; |
|
972 | 972 | |
973 | 973 | if (GETPOST('price_ht') !== '') { |
974 | 974 | $price_ht = price2num(GETPOST('price_ht'), 'MU', 2); |
@@ -1109,7 +1109,7 @@ discard block |
||
1109 | 1109 | $price_base_type = $custprice_line->price_base_type; |
1110 | 1110 | $tva_tx = $custprice_line->tva_tx; |
1111 | 1111 | if ($custprice_line->default_vat_code && !preg_match('/\(.*\)/', (string) $tva_tx)) { |
1112 | - $tva_tx .= ' (' . $custprice_line->default_vat_code . ')'; |
|
1112 | + $tva_tx .= ' ('.$custprice_line->default_vat_code.')'; |
|
1113 | 1113 | } |
1114 | 1114 | $tva_npr = $custprice_line->recuperableonly; |
1115 | 1115 | if (empty($tva_tx)) { |
@@ -1175,7 +1175,7 @@ discard block |
||
1175 | 1175 | $price_base_type = $custprice_line->price_base_type; |
1176 | 1176 | $tva_tx = $custprice_line->tva_tx; |
1177 | 1177 | if ($custprice_line->default_vat_code && !preg_match('/\(.*\)/', $tva_tx)) { |
1178 | - $tva_tx .= ' (' . $custprice_line->default_vat_code . ')'; |
|
1178 | + $tva_tx .= ' ('.$custprice_line->default_vat_code.')'; |
|
1179 | 1179 | } |
1180 | 1180 | $tva_npr = $custprice_line->recuperableonly; |
1181 | 1181 | if (empty($tva_tx)) { |
@@ -1354,7 +1354,7 @@ discard block |
||
1354 | 1354 | $localtax2_tx = get_localtax($tva_tx, 2, $object->thirdparty); |
1355 | 1355 | |
1356 | 1356 | // Margin |
1357 | - $fournprice = (int) (GETPOST('fournprice'.$predef) ? GETPOSTINT('fournprice'.$predef) : 0); // This can be id of supplier price, or 'pmpprice' or 'costprice', or 'inputprice', we force to keep ID only |
|
1357 | + $fournprice = (int) (GETPOST('fournprice'.$predef) ? GETPOSTINT('fournprice'.$predef) : 0); // This can be id of supplier price, or 'pmpprice' or 'costprice', or 'inputprice', we force to keep ID only |
|
1358 | 1358 | $buyingprice = price2num(GETPOST('buying_price'.$predef) != '' ? GETPOST('buying_price'.$predef) : ''); // If buying_price is '0', we must keep this value |
1359 | 1359 | |
1360 | 1360 | // Prepare a price equivalent for minimum price check |
@@ -1599,7 +1599,7 @@ discard block |
||
1599 | 1599 | */ |
1600 | 1600 | |
1601 | 1601 | // Add buying price |
1602 | - $fournprice = (int) (GETPOST('fournprice') ? GETPOST('fournprice') : ''); // This can be id of supplier price, or 'pmpprice' or 'costprice', or 'inputprice', we force to keep ID only |
|
1602 | + $fournprice = (int) (GETPOST('fournprice') ? GETPOST('fournprice') : ''); // This can be id of supplier price, or 'pmpprice' or 'costprice', or 'inputprice', we force to keep ID only |
|
1603 | 1603 | $buyingprice = price2num(GETPOST('buying_price') != '' ? GETPOST('buying_price') : ''); // If buying_price is '0', we must keep this value |
1604 | 1604 | |
1605 | 1605 | // Extrafields Lines |
@@ -1788,7 +1788,7 @@ discard block |
||
1788 | 1788 | GETPOST('generate_deposit', 'alpha') == 'on' && !empty($deposit_percent_from_payment_terms) |
1789 | 1789 | && isModEnabled('invoice') && $user->hasRight('facture', 'creer') |
1790 | 1790 | ) { |
1791 | - require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php'; |
|
1791 | + require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; |
|
1792 | 1792 | |
1793 | 1793 | $date = dol_mktime(0, 0, 0, GETPOSTINT('datefmonth'), GETPOSTINT('datefday'), GETPOSTINT('datefyear')); |
1794 | 1794 | $forceFields = array(); |
@@ -1801,7 +1801,7 @@ discard block |
||
1801 | 1801 | |
1802 | 1802 | if ($deposit) { |
1803 | 1803 | setEventMessage('DepositGenerated'); |
1804 | - $locationTarget = DOL_URL_ROOT . '/compta/facture/card.php?id=' . $deposit->id; |
|
1804 | + $locationTarget = DOL_URL_ROOT.'/compta/facture/card.php?id='.$deposit->id; |
|
1805 | 1805 | } else { |
1806 | 1806 | $error++; |
1807 | 1807 | setEventMessages($object->error, $object->errors, 'errors'); |
@@ -1809,7 +1809,7 @@ discard block |
||
1809 | 1809 | } |
1810 | 1810 | |
1811 | 1811 | // Define output language |
1812 | - if (! $error) { |
|
1812 | + if (!$error) { |
|
1813 | 1813 | $db->commit(); |
1814 | 1814 | |
1815 | 1815 | if (!getDolGlobalString('MAIN_DISABLE_PDF_AUTOUPDATE')) { |
@@ -1837,7 +1837,7 @@ discard block |
||
1837 | 1837 | } |
1838 | 1838 | |
1839 | 1839 | if ($locationTarget) { |
1840 | - header('Location: ' . $locationTarget); |
|
1840 | + header('Location: '.$locationTarget); |
|
1841 | 1841 | exit; |
1842 | 1842 | } |
1843 | 1843 | } else { |
@@ -1928,7 +1928,7 @@ discard block |
||
1928 | 1928 | } |
1929 | 1929 | |
1930 | 1930 | if ($action == 'update_extras' && $permissiontoeditextra) { |
1931 | - $object->oldcopy = dol_clone($object, 2); // @phan-suppress-current-line PhanTypeMismatchProperty |
|
1931 | + $object->oldcopy = dol_clone($object, 2); // @phan-suppress-current-line PhanTypeMismatchProperty |
|
1932 | 1932 | |
1933 | 1933 | $attribute_name = GETPOST('attribute', 'aZ09'); |
1934 | 1934 | |
@@ -2166,7 +2166,7 @@ discard block |
||
2166 | 2166 | |
2167 | 2167 | $classname = ucfirst($subelement); |
2168 | 2168 | $objectsrc = new $classname($db); |
2169 | - '@phan-var-force Commande|Propal|Contrat $objectsrc'; // Can possibly be other class but CommonObject is too general |
|
2169 | + '@phan-var-force Commande|Propal|Contrat $objectsrc'; // Can possibly be other class but CommonObject is too general |
|
2170 | 2170 | $objectsrc->fetch($originid); |
2171 | 2171 | if (empty($objectsrc->lines) && method_exists($objectsrc, 'fetch_lines')) { |
2172 | 2172 | $objectsrc->fetch_lines(); |
@@ -2263,7 +2263,7 @@ discard block |
||
2263 | 2263 | print '<form name="crea_commande" action="'.$_SERVER["PHP_SELF"].'" method="POST">'; |
2264 | 2264 | print '<input type="hidden" name="token" value="'.newToken().'">'; |
2265 | 2265 | print '<input type="hidden" name="action" value="add">'; |
2266 | - print '<input type="hidden" name="changecompany" value="0">'; // will be set to 1 by javascript so we know post is done after a company change |
|
2266 | + print '<input type="hidden" name="changecompany" value="0">'; // will be set to 1 by javascript so we know post is done after a company change |
|
2267 | 2267 | print '<input type="hidden" name="remise_percent" value="'.$soc->remise_percent.'">'; |
2268 | 2268 | print '<input type="hidden" name="origin" value="'.$origin.'">'; |
2269 | 2269 | print '<input type="hidden" name="originid" value="'.$originid.'">'; |
@@ -2445,7 +2445,7 @@ discard block |
||
2445 | 2445 | // Other attributes |
2446 | 2446 | $parameters = array(); |
2447 | 2447 | if (!empty($origin) && !empty($originid) && is_object($objectsrc)) { |
2448 | - $parameters['objectsrc'] = $objectsrc; |
|
2448 | + $parameters['objectsrc'] = $objectsrc; |
|
2449 | 2449 | } |
2450 | 2450 | $parameters['socid'] = $socid; |
2451 | 2451 | |
@@ -2669,7 +2669,7 @@ discard block |
||
2669 | 2669 | $nbMandated = 0; |
2670 | 2670 | foreach ($object->lines as $line) { |
2671 | 2671 | $res = $line->fetch_product(); |
2672 | - if ($res > 0) { |
|
2672 | + if ($res > 0) { |
|
2673 | 2673 | if ($line->product->isService() && $line->product->isMandatoryPeriod() && (empty($line->date_start) || empty($line->date_end))) { |
2674 | 2674 | $nbMandated++; |
2675 | 2675 | break; |
@@ -2693,7 +2693,7 @@ discard block |
||
2693 | 2693 | $deposit_percent_from_payment_terms = (float) getDictionaryValue('c_payment_term', 'deposit_percent', $object->cond_reglement_id); |
2694 | 2694 | |
2695 | 2695 | if (!empty($deposit_percent_from_payment_terms) && isModEnabled('invoice') && $user->hasRight('facture', 'creer')) { |
2696 | - require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php'; |
|
2696 | + require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; |
|
2697 | 2697 | |
2698 | 2698 | $object->fetchObjectLinked(); |
2699 | 2699 | |
@@ -2928,7 +2928,7 @@ discard block |
||
2928 | 2928 | $morehtmlref = '<div class="refidno">'; |
2929 | 2929 | // Ref customer |
2930 | 2930 | $morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, (int) $usercancreate, 'string', '', 0, 1); |
2931 | - $morehtmlref .= $form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, (int) $usercancreate, 'string'.(isset($conf->global->THIRDPARTY_REF_INPUT_SIZE) ? ':' . getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1); |
|
2931 | + $morehtmlref .= $form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, (int) $usercancreate, 'string'.(isset($conf->global->THIRDPARTY_REF_INPUT_SIZE) ? ':'.getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1); |
|
2932 | 2932 | // Thirdparty |
2933 | 2933 | $morehtmlref .= '<br>'.$soc->getNomUrl(1, 'customer'); |
2934 | 2934 | if (!getDolGlobalString('MAIN_DISABLE_OTHER_LINK') && $object->thirdparty->id > 0) { |
@@ -2985,7 +2985,7 @@ discard block |
||
2985 | 2985 | print '</td><td class="valuefield fieldname_type">'; |
2986 | 2986 | print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'" name="formposinfo">'; |
2987 | 2987 | print '<input type="hidden" name="action" value="setposinfo">'; |
2988 | - print '<input type="hidden" name="token" value="' . newToken() . '">'; |
|
2988 | + print '<input type="hidden" name="token" value="'.newToken().'">'; |
|
2989 | 2989 | if ($action == 'editposinfo') { |
2990 | 2990 | print '<input type="text" class="maxwidth150" name="posmodule" placeholder="'.$langs->trans("POSModule").'" value="'.$object->module_source.'"> '; |
2991 | 2991 | print '<input type="text" class="maxwidth100" name="posterminal" placeholder="'.$langs->trans("Terminal").'" value="'.$object->pos_source.'">'; |
@@ -3269,36 +3269,36 @@ discard block |
||
3269 | 3269 | |
3270 | 3270 | $alert = ''; |
3271 | 3271 | if (getDolGlobalString('ORDER_MANAGE_MIN_AMOUNT') && $object->total_ht < $object->thirdparty->order_min_amount) { |
3272 | - $alert = ' ' . img_warning($langs->trans('OrderMinAmount') . ': ' . price($object->thirdparty->order_min_amount)); |
|
3272 | + $alert = ' '.img_warning($langs->trans('OrderMinAmount').': '.price($object->thirdparty->order_min_amount)); |
|
3273 | 3273 | } |
3274 | 3274 | |
3275 | 3275 | print '<tr>'; |
3276 | - print '<td class="titlefieldmiddle">' . $langs->trans('AmountHT') . '</td>'; |
|
3277 | - print '<td class="nowrap amountcard right">' . price($object->total_ht, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
3276 | + print '<td class="titlefieldmiddle">'.$langs->trans('AmountHT').'</td>'; |
|
3277 | + print '<td class="nowrap amountcard right">'.price($object->total_ht, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
3278 | 3278 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
3279 | 3279 | // Multicurrency Amount HT |
3280 | - print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_ht, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
3280 | + print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_ht, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
3281 | 3281 | } |
3282 | 3282 | print '</tr>'; |
3283 | 3283 | |
3284 | 3284 | print '<tr>'; |
3285 | - print '<td class="titlefieldmiddle">' . $langs->trans('AmountVAT') . '</td>'; |
|
3286 | - print '<td class="nowrap amountcard right">' . price($object->total_tva, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
3285 | + print '<td class="titlefieldmiddle">'.$langs->trans('AmountVAT').'</td>'; |
|
3286 | + print '<td class="nowrap amountcard right">'.price($object->total_tva, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
3287 | 3287 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
3288 | 3288 | // Multicurrency Amount VAT |
3289 | - print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_tva, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
3289 | + print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_tva, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
3290 | 3290 | } |
3291 | 3291 | print '</tr>'; |
3292 | 3292 | |
3293 | 3293 | // Amount Local Taxes |
3294 | 3294 | if ($mysoc->localtax1_assuj == "1" || $object->total_localtax1 != 0) { |
3295 | 3295 | print '<tr>'; |
3296 | - print '<td class="titlefieldmiddle">' . $langs->transcountry("AmountLT1", $mysoc->country_code) . '</td>'; |
|
3297 | - print '<td class="nowrap amountcard right">' . price($object->total_localtax1, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
3296 | + print '<td class="titlefieldmiddle">'.$langs->transcountry("AmountLT1", $mysoc->country_code).'</td>'; |
|
3297 | + print '<td class="nowrap amountcard right">'.price($object->total_localtax1, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
3298 | 3298 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
3299 | 3299 | $object->multicurrency_total_localtax1 = price2num($object->total_localtax1 * $object->multicurrency_tx, 'MT'); |
3300 | 3300 | |
3301 | - print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_localtax1, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
3301 | + print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_localtax1, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
3302 | 3302 | } |
3303 | 3303 | print '</tr>'; |
3304 | 3304 | } |
@@ -3306,22 +3306,22 @@ discard block |
||
3306 | 3306 | // Amount Local Taxes |
3307 | 3307 | if ($mysoc->localtax2_assuj == "1" || $object->total_localtax2 != 0) { |
3308 | 3308 | print '<tr>'; |
3309 | - print '<td>' . $langs->transcountry("AmountLT2", $mysoc->country_code) . '</td>'; |
|
3310 | - print '<td class="nowrap amountcard right">' . price($object->total_localtax2, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
3309 | + print '<td>'.$langs->transcountry("AmountLT2", $mysoc->country_code).'</td>'; |
|
3310 | + print '<td class="nowrap amountcard right">'.price($object->total_localtax2, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
3311 | 3311 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
3312 | 3312 | $object->multicurrency_total_localtax2 = price2num($object->total_localtax2 * $object->multicurrency_tx, 'MT'); |
3313 | 3313 | |
3314 | - print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_localtax2, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
3314 | + print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_localtax2, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
3315 | 3315 | } |
3316 | 3316 | print '</tr>'; |
3317 | 3317 | } |
3318 | 3318 | |
3319 | 3319 | print '<tr>'; |
3320 | - print '<td>' . $langs->trans('AmountTTC') . '</td>'; |
|
3321 | - print '<td class="valuefield nowrap right amountcard">' . price($object->total_ttc, 1, '', 1, -1, -1, $conf->currency) . '</td>'; |
|
3320 | + print '<td>'.$langs->trans('AmountTTC').'</td>'; |
|
3321 | + print '<td class="valuefield nowrap right amountcard">'.price($object->total_ttc, 1, '', 1, -1, -1, $conf->currency).'</td>'; |
|
3322 | 3322 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
3323 | 3323 | // Multicurrency Amount TTC |
3324 | - print '<td class="valuefield nowrap right amountcard">' . price($object->multicurrency_total_ttc, 1, '', 1, -1, -1, $object->multicurrency_code) . '</td>'; |
|
3324 | + print '<td class="valuefield nowrap right amountcard">'.price($object->multicurrency_total_ttc, 1, '', 1, -1, -1, $object->multicurrency_code).'</td>'; |
|
3325 | 3325 | } |
3326 | 3326 | print '</tr>'."\n"; |
3327 | 3327 | |
@@ -3442,7 +3442,7 @@ discard block |
||
3442 | 3442 | if ($usercansend) { |
3443 | 3443 | print dolGetButtonAction('', $langs->trans('SendMail'), 'email', $_SERVER["PHP_SELF"].'?action=presend&token='.newToken().'&id='.$object->id.'&mode=init#formmailbeforetitle', ''); |
3444 | 3444 | } else { |
3445 | - print dolGetButtonAction('', $langs->trans('SendMail'), 'email', $_SERVER['PHP_SELF']. '#', '', false); |
|
3445 | + print dolGetButtonAction('', $langs->trans('SendMail'), 'email', $_SERVER['PHP_SELF'].'#', '', false); |
|
3446 | 3446 | } |
3447 | 3447 | } |
3448 | 3448 | } |
@@ -3494,7 +3494,7 @@ discard block |
||
3494 | 3494 | 'enabled' => (isModEnabled("supplier_order") && $object->status > Commande::STATUS_DRAFT), |
3495 | 3495 | 'perm' => $usercancreatepurchaseorder, |
3496 | 3496 | 'label' => 'AddPurchaseOrder', |
3497 | - 'url' => '/fourn/commande/card.php?action=create&origin=' . urlencode($object->element) . '&originid=' . ((int) $object->id) |
|
3497 | + 'url' => '/fourn/commande/card.php?action=create&origin='.urlencode($object->element).'&originid='.((int) $object->id) |
|
3498 | 3498 | ); |
3499 | 3499 | } |
3500 | 3500 | |
@@ -3511,7 +3511,7 @@ discard block |
||
3511 | 3511 | 'enabled' => (isModEnabled("intervention") && $object->status > Commande::STATUS_DRAFT && $object->status < Commande::STATUS_CLOSED && $object->getNbOfServicesLines() > 0), |
3512 | 3512 | 'perm' => ($user->hasRight('ficheinter', 'creer') == 1), |
3513 | 3513 | 'label' => 'AddIntervention', |
3514 | - 'url' => '/fichinter/card.php?action=create&origin=' . $object->element . '&originid=' . $object->id . '&socid=' . $object->socid, |
|
3514 | + 'url' => '/fichinter/card.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->socid, |
|
3515 | 3515 | ); |
3516 | 3516 | } |
3517 | 3517 | |
@@ -3533,7 +3533,7 @@ discard block |
||
3533 | 3533 | 'enabled' => (isModEnabled("contract") && ($object->status == Commande::STATUS_VALIDATED || $object->status == Commande::STATUS_SHIPMENTONPROCESS || $object->status == Commande::STATUS_CLOSED)), |
3534 | 3534 | 'perm' => ($user->hasRight('contrat', 'creer') == 1), |
3535 | 3535 | 'label' => 'AddContract', |
3536 | - 'url' => '/contrat/card.php?action=create&origin=' . $object->element . '&originid=' . $object->id . '&socid=' . $object->socid, |
|
3536 | + 'url' => '/contrat/card.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->socid, |
|
3537 | 3537 | ); |
3538 | 3538 | /*if (isModEnabled('contrat') && ($object->status == Commande::STATUS_VALIDATED || $object->status == Commande::STATUS_SHIPMENTONPROCESS || $object->status == Commande::STATUS_CLOSED)) { |
3539 | 3539 | $langs->load("contracts"); |
@@ -3557,7 +3557,7 @@ discard block |
||
3557 | 3557 | 'enabled' => (isModEnabled("shipping") && ($object->status > Commande::STATUS_DRAFT && $object->status < Commande::STATUS_CLOSED && ($object->getNbOfProductsLines() > 0 || getDolGlobalString('STOCK_SUPPORTS_SERVICES')))), |
3558 | 3558 | 'perm' => $user->hasRight('expedition', 'creer'), |
3559 | 3559 | 'label' => 'CreateShipment', |
3560 | - 'url' => '/expedition/shipment.php?id=' . $object->id |
|
3560 | + 'url' => '/expedition/shipment.php?id='.$object->id |
|
3561 | 3561 | ); |
3562 | 3562 | } else { |
3563 | 3563 | //c$langs->load("errors"); |
@@ -3567,7 +3567,7 @@ discard block |
||
3567 | 3567 | 'enabled' => (isModEnabled("shipping") && ($object->status > Commande::STATUS_DRAFT && $object->status < Commande::STATUS_CLOSED && ($object->getNbOfProductsLines() > 0 || getDolGlobalString('STOCK_SUPPORTS_SERVICES')))), |
3568 | 3568 | 'perm' => 0, |
3569 | 3569 | 'label' => 'CreateShipment', |
3570 | - 'url' => '/expedition/shipment.php?id=' . $object->id |
|
3570 | + 'url' => '/expedition/shipment.php?id='.$object->id |
|
3571 | 3571 | ); |
3572 | 3572 | } |
3573 | 3573 | } |
@@ -3579,7 +3579,7 @@ discard block |
||
3579 | 3579 | 'enabled' => (isModEnabled('invoice') && $object->status > Commande::STATUS_DRAFT && !$object->billed && $object->total_ttc >= 0), |
3580 | 3580 | 'perm' => ($user->hasRight('facture', 'creer') && !getDolGlobalInt('WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER')), |
3581 | 3581 | 'label' => 'CreateBill', |
3582 | - 'url' => '/compta/facture/card.php?action=create&token=' . newToken() . '&origin=' . urlencode($object->element) . '&originid=' . $object->id . '&socid=' . $object->socid |
|
3582 | + 'url' => '/compta/facture/card.php?action=create&token='.newToken().'&origin='.urlencode($object->element).'&originid='.$object->id.'&socid='.$object->socid |
|
3583 | 3583 | ); |
3584 | 3584 | /* |
3585 | 3585 | if (isModEnabled('facture') && $object->status > Commande::STATUS_DRAFT && !$object->billed && $object->total_ttc >= 0) { |
@@ -3631,7 +3631,7 @@ discard block |
||
3631 | 3631 | if ($numshipping == 0) { |
3632 | 3632 | print dolGetButtonAction('', $langs->trans('Delete'), 'delete', $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&id='.$object->id, ''); |
3633 | 3633 | } else { |
3634 | - print dolGetButtonAction($langs->trans('ShippingExist'), $langs->trans('Delete'), 'default', $_SERVER['PHP_SELF']. '#', '', false); |
|
3634 | + print dolGetButtonAction($langs->trans('ShippingExist'), $langs->trans('Delete'), 'default', $_SERVER['PHP_SELF'].'#', '', false); |
|
3635 | 3635 | } |
3636 | 3636 | } |
3637 | 3637 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $action = GETPOST('action', 'aZ09'); |
55 | 55 | $massaction = GETPOST('massaction', 'alpha'); |
56 | 56 | $cancel = GETPOST('cancel', 'alpha'); |
57 | -$toselect = GETPOST('toselect', 'array'); |
|
57 | +$toselect = GETPOST('toselect', 'array'); |
|
58 | 58 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)).basename(__FILE__, '.php')); // To manage different context of search |
59 | 59 | $backtopage = GETPOST('backtopage', 'alpha'); |
60 | 60 | $mode = GETPOST('mode', 'alpha'); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | $object->note_public = trim($comment); |
181 | 181 | $object->note_private = ''; |
182 | 182 | $object->mail_valid = trim($mail_valid); |
183 | - $object->vote = $vote; // $vote is already int |
|
183 | + $object->vote = $vote; // $vote is already int |
|
184 | 184 | |
185 | 185 | // Fill array 'array_options' with data from add form |
186 | 186 | $ret = $extrafields->setOptionalsFromPost(null, $object); |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | $urltogo = $backtopage ? str_replace('__ID__', (string) $id, $backtopage) : $backurlforlist; |
215 | 215 | $urltogo = preg_replace('/--IDFORBACKTOPAGE--/', (string) $object->id, $urltogo); // New method to autoselect field created after a New on another form object creation |
216 | 216 | |
217 | - header("Location: " . $urltogo); |
|
217 | + header("Location: ".$urltogo); |
|
218 | 218 | exit; |
219 | 219 | } else { |
220 | 220 | setEventMessages($object->error, $object->errors, 'errors'); |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | if ($action == 'update' && $user->hasRight('adherent', 'configurer')) { |
229 | 229 | $object->fetch($rowid); |
230 | 230 | |
231 | - $object->oldcopy = dol_clone($object, 2); // @phan-suppress-current-line PhanTypeMismatchProperty |
|
231 | + $object->oldcopy = dol_clone($object, 2); // @phan-suppress-current-line PhanTypeMismatchProperty |
|
232 | 232 | |
233 | 233 | $object->label = trim($label); |
234 | 234 | $object->morphy = trim($morphy); |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | $object->note_public = trim($comment); |
242 | 242 | $object->note_private = ''; |
243 | 243 | $object->mail_valid = trim($mail_valid); |
244 | - $object->vote = $vote; // $vote is already int. |
|
244 | + $object->vote = $vote; // $vote is already int. |
|
245 | 245 | |
246 | 246 | // Fill array 'array_options' with data from add form |
247 | 247 | $ret = $extrafields->setOptionalsFromPost(null, $object, '@GETPOSTISSET'); |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | print '<input type="hidden" name="mode" value="'.$mode.'">'; |
346 | 346 | |
347 | 347 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
348 | - $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, $conf->main_checkbox_left_column); // This also change content of $arrayfields with user setup |
|
348 | + $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, $conf->main_checkbox_left_column); // This also change content of $arrayfields with user setup |
|
349 | 349 | $selectedfields = (($mode != 'kanban' && $mode != 'kanbangroupby') ? $htmlofselectarray : ''); |
350 | 350 | //$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
351 | 351 | |
@@ -547,7 +547,7 @@ discard block |
||
547 | 547 | print '<table class="border centpercent">'; |
548 | 548 | print '<tbody>'; |
549 | 549 | |
550 | - print '<tr><td class="titlefieldcreate fieldrequired">'.$langs->trans("Label").'</td><td><input type="text" class="minwidth200" name="label" value= "'. $label. '" autofocus="autofocus"></td></tr>'; |
|
550 | + print '<tr><td class="titlefieldcreate fieldrequired">'.$langs->trans("Label").'</td><td><input type="text" class="minwidth200" name="label" value= "'.$label.'" autofocus="autofocus"></td></tr>'; |
|
551 | 551 | |
552 | 552 | print '<tr><td>'.$langs->trans("Status").'</td><td>'; |
553 | 553 | print $form->selectarray('status', array('0' => $langs->trans('ActivityCeased'), '1' => $langs->trans('InActivity')), 1, 0, 0, 0, '', 0, 0, 0, '', 'minwidth100'); |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | print '</td></tr>'; |
580 | 580 | |
581 | 581 | print '<tr><td>'.$langs->trans("Duration").'</td><td colspan="3">'; |
582 | - print '<input name="duration_value" size="5" value="'. $duration_value .'"> '; |
|
582 | + print '<input name="duration_value" size="5" value="'.$duration_value.'"> '; |
|
583 | 583 | print $formproduct->selectMeasuringUnits("duration_unit", "time", GETPOSTISSET("duration_unit") ? GETPOST('duration_unit', 'aZ09') : 'y', 0, 1); |
584 | 584 | print '</td></tr>'; |
585 | 585 |