@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $changeaccount = GETPOST('changeaccount'); |
| 47 | 47 | // Search Getpost |
| 48 | 48 | $search_societe = GETPOST('search_societe', 'alpha'); |
| 49 | -$search_lineid = GETPOST('search_lineid', 'alpha'); // Can be '> 100' |
|
| 49 | +$search_lineid = GETPOST('search_lineid', 'alpha'); // Can be '> 100' |
|
| 50 | 50 | $search_ref = GETPOST('search_ref', 'alpha'); |
| 51 | 51 | $search_invoice = GETPOST('search_invoice', 'alpha'); |
| 52 | 52 | //$search_ref_supplier = GETPOST('search_ref_supplier', 'alpha'); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $search_date_endday = GETPOSTINT('search_date_endday'); |
| 62 | 62 | $search_date_endmonth = GETPOSTINT('search_date_endmonth'); |
| 63 | 63 | $search_date_endyear = GETPOSTINT('search_date_endyear'); |
| 64 | -$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
| 64 | +$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
| 65 | 65 | $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear); |
| 66 | 66 | $search_country = GETPOST('search_country', 'aZ09'); |
| 67 | 67 | $search_tvaintra = GETPOST('search_tvaintra', 'alpha'); |
@@ -228,13 +228,13 @@ discard block |
||
| 228 | 228 | $sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn_det as l"; |
| 229 | 229 | $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON p.rowid = l.fk_product"; |
| 230 | 230 | if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) { |
| 231 | - $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity); |
|
| 231 | + $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity); |
|
| 232 | 232 | } |
| 233 | 233 | $sql .= " INNER JOIN ".MAIN_DB_PREFIX."accounting_account as aa ON aa.rowid = l.fk_code_ventilation"; |
| 234 | 234 | $sql .= " INNER JOIN ".MAIN_DB_PREFIX."facture_fourn as f ON f.rowid = l.fk_facture_fourn"; |
| 235 | 235 | $sql .= " INNER JOIN ".MAIN_DB_PREFIX."societe as s ON s.rowid = f.fk_soc"; |
| 236 | 236 | if (getDolGlobalString('MAIN_COMPANY_PERENTITY_SHARED')) { |
| 237 | - $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = " . ((int) $conf->entity); |
|
| 237 | + $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = ".((int) $conf->entity); |
|
| 238 | 238 | } |
| 239 | 239 | $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_country as co ON co.rowid = s.fk_pays "; |
| 240 | 240 | $sql .= " WHERE f.rowid = l.fk_facture_fourn and f.fk_statut >= 1 AND l.fk_code_ventilation <> 0 "; |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $mesCasesCochees = GETPOST('toselect', 'array'); |
| 56 | 56 | |
| 57 | 57 | // Search Getpost |
| 58 | -$search_lineid = GETPOST('search_lineid', 'alpha'); // Can be '> 100' |
|
| 58 | +$search_lineid = GETPOST('search_lineid', 'alpha'); // Can be '> 100' |
|
| 59 | 59 | $search_societe = GETPOST('search_societe', 'alpha'); |
| 60 | 60 | $search_ref = GETPOST('search_ref', 'alpha'); |
| 61 | 61 | $search_ref_supplier = GETPOST('search_ref_supplier', 'alpha'); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $search_date_endday = GETPOSTINT('search_date_endday'); |
| 72 | 72 | $search_date_endmonth = GETPOSTINT('search_date_endmonth'); |
| 73 | 73 | $search_date_endyear = GETPOSTINT('search_date_endyear'); |
| 74 | -$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
| 74 | +$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
| 75 | 75 | $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear); |
| 76 | 76 | $search_country = GETPOST('search_country', 'aZ09'); |
| 77 | 77 | $search_tvaintra = GETPOST('search_tvaintra', 'alpha'); |
@@ -274,20 +274,20 @@ discard block |
||
| 274 | 274 | $sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn as f"; |
| 275 | 275 | $sql .= " INNER JOIN ".MAIN_DB_PREFIX."societe as s ON s.rowid = f.fk_soc"; |
| 276 | 276 | if (getDolGlobalString('MAIN_COMPANY_PERENTITY_SHARED')) { |
| 277 | - $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = " . ((int) $conf->entity); |
|
| 277 | + $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = ".((int) $conf->entity); |
|
| 278 | 278 | } |
| 279 | 279 | $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_country as co ON co.rowid = s.fk_pays "; |
| 280 | 280 | $sql .= " INNER JOIN ".MAIN_DB_PREFIX."facture_fourn_det as l ON f.rowid = l.fk_facture_fourn"; |
| 281 | 281 | $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON p.rowid = l.fk_product"; |
| 282 | 282 | if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) { |
| 283 | - $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity); |
|
| 283 | + $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity); |
|
| 284 | 284 | } |
| 285 | 285 | $alias_societe_perentity = !getDolGlobalString('MAIN_COMPANY_PERENTITY_SHARED') ? "s" : "spe"; |
| 286 | 286 | $alias_product_perentity = !getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED') ? "p" : "ppe"; |
| 287 | -$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa ON " . $alias_product_perentity . ".accountancy_code_buy = aa.account_number AND aa.active = 1 AND aa.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa.entity = ".$conf->entity; |
|
| 288 | -$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa2 ON " . $alias_product_perentity . ".accountancy_code_buy_intra = aa2.account_number AND aa2.active = 1 AND aa2.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa2.entity = ".$conf->entity; |
|
| 289 | -$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa3 ON " . $alias_product_perentity . ".accountancy_code_buy_export = aa3.account_number AND aa3.active = 1 AND aa3.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa3.entity = ".$conf->entity; |
|
| 290 | -$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa4 ON " . $alias_societe_perentity . ".accountancy_code_buy = aa4.account_number AND aa4.active = 1 AND aa4.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa4.entity = ".$conf->entity; |
|
| 287 | +$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa ON ".$alias_product_perentity.".accountancy_code_buy = aa.account_number AND aa.active = 1 AND aa.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa.entity = ".$conf->entity; |
|
| 288 | +$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa2 ON ".$alias_product_perentity.".accountancy_code_buy_intra = aa2.account_number AND aa2.active = 1 AND aa2.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa2.entity = ".$conf->entity; |
|
| 289 | +$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa3 ON ".$alias_product_perentity.".accountancy_code_buy_export = aa3.account_number AND aa3.active = 1 AND aa3.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa3.entity = ".$conf->entity; |
|
| 290 | +$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa4 ON ".$alias_societe_perentity.".accountancy_code_buy = aa4.account_number AND aa4.active = 1 AND aa4.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa4.entity = ".$conf->entity; |
|
| 291 | 291 | $sql .= " WHERE f.fk_statut > 0 AND l.fk_code_ventilation <= 0"; |
| 292 | 292 | $sql .= " AND l.product_type <= 2"; |
| 293 | 293 | // Add search filter like |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | $thirdpartystatic->email = $objp->email; |
| 583 | 583 | $thirdpartystatic->country_code = $objp->country_code; |
| 584 | 584 | $thirdpartystatic->tva_intra = $objp->tva_intra; |
| 585 | - $thirdpartystatic->code_compta_product = $objp->company_code_buy; // The accounting account for product stored on thirdparty object (for level3 suggestion) |
|
| 585 | + $thirdpartystatic->code_compta_product = $objp->company_code_buy; // The accounting account for product stored on thirdparty object (for level3 suggestion) |
|
| 586 | 586 | |
| 587 | 587 | $product_static->ref = $objp->product_ref; |
| 588 | 588 | $product_static->id = $objp->product_id; |
@@ -55,11 +55,11 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | // Get parameters |
| 58 | -$action = GETPOST('action', 'aZ09'); |
|
| 58 | +$action = GETPOST('action', 'aZ09'); |
|
| 59 | 59 | $massaction = GETPOST('massaction', 'alpha'); |
| 60 | 60 | $show_files = GETPOSTINT('show_files'); |
| 61 | -$confirm = GETPOST('confirm', 'alpha'); |
|
| 62 | -$toselect = GETPOST('toselect', 'array'); |
|
| 61 | +$confirm = GETPOST('confirm', 'alpha'); |
|
| 62 | +$toselect = GETPOST('toselect', 'array'); |
|
| 63 | 63 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'thirdpartylist'; |
| 64 | 64 | $optioncss = GETPOST('optioncss', 'alpha'); |
| 65 | 65 | if ($contextpage == 'poslist') { |
@@ -131,20 +131,20 @@ discard block |
||
| 131 | 131 | $search_date_creation_startmonth = GETPOSTINT('search_date_creation_startmonth'); |
| 132 | 132 | $search_date_creation_startyear = GETPOSTINT('search_date_creation_startyear'); |
| 133 | 133 | $search_date_creation_startday = GETPOSTINT('search_date_creation_startday'); |
| 134 | -$search_date_creation_start = dol_mktime(0, 0, 0, $search_date_creation_startmonth, $search_date_creation_startday, $search_date_creation_startyear); // Use tzserver |
|
| 134 | +$search_date_creation_start = dol_mktime(0, 0, 0, $search_date_creation_startmonth, $search_date_creation_startday, $search_date_creation_startyear); // Use tzserver |
|
| 135 | 135 | $search_date_creation_endmonth = GETPOSTINT('search_date_creation_endmonth'); |
| 136 | 136 | $search_date_creation_endyear = GETPOSTINT('search_date_creation_endyear'); |
| 137 | 137 | $search_date_creation_endday = GETPOSTINT('search_date_creation_endday'); |
| 138 | -$search_date_creation_end = dol_mktime(23, 59, 59, $search_date_creation_endmonth, $search_date_creation_endday, $search_date_creation_endyear); // Use tzserver |
|
| 138 | +$search_date_creation_end = dol_mktime(23, 59, 59, $search_date_creation_endmonth, $search_date_creation_endday, $search_date_creation_endyear); // Use tzserver |
|
| 139 | 139 | |
| 140 | 140 | $search_date_modif_startmonth = GETPOSTINT('search_date_modif_startmonth'); |
| 141 | 141 | $search_date_modif_startyear = GETPOSTINT('search_date_modif_startyear'); |
| 142 | 142 | $search_date_modif_startday = GETPOSTINT('search_date_modif_startday'); |
| 143 | -$search_date_modif_start = dol_mktime(0, 0, 0, $search_date_modif_startmonth, $search_date_modif_startday, $search_date_modif_startyear); // Use tzserver |
|
| 143 | +$search_date_modif_start = dol_mktime(0, 0, 0, $search_date_modif_startmonth, $search_date_modif_startday, $search_date_modif_startyear); // Use tzserver |
|
| 144 | 144 | $search_date_modif_endmonth = GETPOSTINT('search_date_modif_endmonth'); |
| 145 | 145 | $search_date_modif_endyear = GETPOSTINT('search_date_modif_endyear'); |
| 146 | 146 | $search_date_modif_endday = GETPOSTINT('search_date_modif_endday'); |
| 147 | -$search_date_modif_end = dol_mktime(23, 59, 59, $search_date_modif_endmonth, $search_date_modif_endday, $search_date_modif_endyear); // Use tzserver |
|
| 147 | +$search_date_modif_end = dol_mktime(23, 59, 59, $search_date_modif_endmonth, $search_date_modif_endday, $search_date_modif_endyear); // Use tzserver |
|
| 148 | 148 | |
| 149 | 149 | $type = GETPOST('type', 'alpha'); |
| 150 | 150 | $place = GETPOST('place', 'aZ09') ? GETPOST('place', 'aZ09') : '0'; // $place is string id of table for Bar or Restaurant |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | |
| 318 | 318 | $object->fields = dol_sort_array($object->fields, 'position'); |
| 319 | 319 | $arrayfields = dol_sort_array($arrayfields, 'position'); |
| 320 | -'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
| 320 | +'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
| 321 | 321 | |
| 322 | 322 | // Security check |
| 323 | 323 | $socid = GETPOSTINT('socid'); |
@@ -606,7 +606,7 @@ discard block |
||
| 606 | 606 | if ($searchCategoryCustomerOperator == 0) { |
| 607 | 607 | $searchCategoryCustomerSqlList[] = " EXISTS (SELECT ck.fk_soc FROM ".MAIN_DB_PREFIX."categorie_societe as ck WHERE s.rowid = ck.fk_soc AND ck.fk_categorie = ".((int) $searchCategoryCustomer).")"; |
| 608 | 608 | } else { |
| 609 | - $listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryCustomer); |
|
| 609 | + $listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryCustomer); |
|
| 610 | 610 | } |
| 611 | 611 | } |
| 612 | 612 | } |
@@ -635,7 +635,7 @@ discard block |
||
| 635 | 635 | if ($searchCategorySupplierOperator == 0) { |
| 636 | 636 | $searchCategorySupplierSqlList[] = " EXISTS (SELECT ck.fk_soc FROM ".MAIN_DB_PREFIX."categorie_fournisseur as ck WHERE s.rowid = ck.fk_soc AND ck.fk_categorie = ".((int) $searchCategorySupplier).")"; |
| 637 | 637 | } else { |
| 638 | - $listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategorySupplier); |
|
| 638 | + $listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategorySupplier); |
|
| 639 | 639 | } |
| 640 | 640 | } |
| 641 | 641 | } |
@@ -1072,7 +1072,7 @@ discard block |
||
| 1072 | 1072 | $param .= '&search_date_modif_endday='.urlencode((string) ($search_date_modif_endday)); |
| 1073 | 1073 | } |
| 1074 | 1074 | if ($search_date_modif_end) { |
| 1075 | - $param .= '&search_date_modif_end=' . urlencode($search_date_modif_end); |
|
| 1075 | + $param .= '&search_date_modif_end='.urlencode($search_date_modif_end); |
|
| 1076 | 1076 | } |
| 1077 | 1077 | |
| 1078 | 1078 | // Add $param from extra fields |
@@ -1142,7 +1142,7 @@ discard block |
||
| 1142 | 1142 | if (!empty($socid)) { |
| 1143 | 1143 | $url .= '&socid='.$socid; |
| 1144 | 1144 | } |
| 1145 | - $newcardbutton = ''; |
|
| 1145 | + $newcardbutton = ''; |
|
| 1146 | 1146 | $newcardbutton .= dolGetButtonTitle($langs->trans('ViewList'), '', 'fa fa-bars imgforviewmode', $_SERVER["PHP_SELF"].'?mode=common'.preg_replace('/(&|\?)*mode=[^&]+/', '', $param), '', ((empty($mode) || $mode == 'common') ? 2 : 1), array('morecss' => 'reposition')); |
| 1147 | 1147 | $newcardbutton .= dolGetButtonTitle($langs->trans('ViewKanban'), '', 'fa fa-th-list imgforviewmode', $_SERVER["PHP_SELF"].'?mode=kanban'.preg_replace('/(&|\?)*mode=[^&]+/', '', $param), '', ($mode == 'kanban' ? 2 : 1), array('morecss' => 'reposition')); |
| 1148 | 1148 | $newcardbutton .= dolGetButtonTitle($langs->trans($label), '', 'fa fa-plus-circle', $url, '', $user->hasRight('societe', 'creer')); |
@@ -1686,19 +1686,19 @@ discard block |
||
| 1686 | 1686 | print $hookmanager->resPrint; |
| 1687 | 1687 | if (!empty($arrayfields['s.datec']['checked'])) { |
| 1688 | 1688 | print_liste_field_titre($arrayfields['s.datec']['label'], $_SERVER["PHP_SELF"], "s.datec", "", $param, '', $sortfield, $sortorder, 'center nowrap '); |
| 1689 | - $totalarray['nbfield']++; // For the column action |
|
| 1689 | + $totalarray['nbfield']++; // For the column action |
|
| 1690 | 1690 | } |
| 1691 | 1691 | if (!empty($arrayfields['s.tms']['checked'])) { |
| 1692 | 1692 | print_liste_field_titre($arrayfields['s.tms']['label'], $_SERVER["PHP_SELF"], "s.tms", "", $param, '', $sortfield, $sortorder, 'center nowrap '); |
| 1693 | - $totalarray['nbfield']++; // For the column action |
|
| 1693 | + $totalarray['nbfield']++; // For the column action |
|
| 1694 | 1694 | } |
| 1695 | 1695 | if (!empty($arrayfields['s.status']['checked'])) { |
| 1696 | 1696 | print_liste_field_titre($arrayfields['s.status']['label'], $_SERVER["PHP_SELF"], "s.status", "", $param, '', $sortfield, $sortorder, 'center '); |
| 1697 | - $totalarray['nbfield']++; // For the column action |
|
| 1697 | + $totalarray['nbfield']++; // For the column action |
|
| 1698 | 1698 | } |
| 1699 | 1699 | if (!empty($arrayfields['s.import_key']['checked'])) { |
| 1700 | 1700 | print_liste_field_titre($arrayfields['s.import_key']['label'], $_SERVER["PHP_SELF"], "s.import_key", "", $param, '', $sortfield, $sortorder, 'center '); |
| 1701 | - $totalarray['nbfield']++; // For the column action |
|
| 1701 | + $totalarray['nbfield']++; // For the column action |
|
| 1702 | 1702 | } |
| 1703 | 1703 | // Action column |
| 1704 | 1704 | if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) { |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | // Select of all the sub-BOM lines |
| 256 | 256 | // From this point to the end of the file, we only take care of sub-BOM lines |
| 257 | 257 | $sql = 'SELECT rowid, fk_bom_child, fk_product, qty FROM '.MAIN_DB_PREFIX.'bom_bomline AS bl'; |
| 258 | -$sql .= ' WHERE fk_bom ='. (int) $tmpbom->id; |
|
| 258 | +$sql .= ' WHERE fk_bom ='.(int) $tmpbom->id; |
|
| 259 | 259 | $resql = $object->db->query($sql); |
| 260 | 260 | |
| 261 | 261 | if ($resql) { |
@@ -352,11 +352,11 @@ discard block |
||
| 352 | 352 | $total_cost .= $sub_bom_product->pmp * $sub_bom_line->qty * (float) $line->qty; |
| 353 | 353 | } else { // Minimum purchase price if cost price and PMP aren't defined |
| 354 | 354 | $sql_supplier_price = "SELECT MIN(price) AS min_price, quantity AS qty FROM ".MAIN_DB_PREFIX."product_fournisseur_price"; |
| 355 | - $sql_supplier_price .= " WHERE fk_product = ". (int) $sub_bom_product->id; |
|
| 355 | + $sql_supplier_price .= " WHERE fk_product = ".(int) $sub_bom_product->id; |
|
| 356 | 356 | $sql_supplier_price .= " GROUP BY quantity ORDER BY quantity ASC"; |
| 357 | 357 | $resql_supplier_price = $object->db->query($sql_supplier_price); |
| 358 | 358 | if ($resql_supplier_price) { |
| 359 | - $obj = $object->db->fetch_object($resql_supplier_price); // Take first value so the ref with the smaller minimum quantity |
|
| 359 | + $obj = $object->db->fetch_object($resql_supplier_price); // Take first value so the ref with the smaller minimum quantity |
|
| 360 | 360 | if (!empty($obj->qty) && !empty($sub_bom_line->qty) && !empty($line->qty)) { |
| 361 | 361 | $line_cost = $obj->min_price / $obj->qty * $sub_bom_line->qty * (float) $line->qty; |
| 362 | 362 | } else { |
@@ -83,18 +83,18 @@ discard block |
||
| 83 | 83 | print $langs->trans('Unit'); |
| 84 | 84 | print '</span></td>'; |
| 85 | 85 | } |
| 86 | - print '<td class="linecolqtyfrozen right">' . $form->textwithpicto($langs->trans('QtyFrozen'), $langs->trans("QuantityConsumedInvariable")) . '</td>'; |
|
| 87 | - print '<td class="linecoldisablestockchange right">' . $form->textwithpicto($langs->trans('DisableStockChange'), $langs->trans('DisableStockChangeHelp')) . '</td>'; |
|
| 88 | - print '<td class="linecollost right">' . $form->textwithpicto($langs->trans('ManufacturingEfficiency'), $langs->trans('ValueOfMeansLoss')) . '</td>'; |
|
| 86 | + print '<td class="linecolqtyfrozen right">'.$form->textwithpicto($langs->trans('QtyFrozen'), $langs->trans("QuantityConsumedInvariable")).'</td>'; |
|
| 87 | + print '<td class="linecoldisablestockchange right">'.$form->textwithpicto($langs->trans('DisableStockChange'), $langs->trans('DisableStockChangeHelp')).'</td>'; |
|
| 88 | + print '<td class="linecollost right">'.$form->textwithpicto($langs->trans('ManufacturingEfficiency'), $langs->trans('ValueOfMeansLoss')).'</td>'; |
|
| 89 | 89 | } else { |
| 90 | - print '<td class="linecolunit right">' . $form->textwithpicto($langs->trans('Unit'), '').'</td>'; |
|
| 90 | + print '<td class="linecolunit right">'.$form->textwithpicto($langs->trans('Unit'), '').'</td>'; |
|
| 91 | 91 | if (isModEnabled('workstation')) { |
| 92 | - print '<td class="linecolworkstation right">' . $form->textwithpicto($langs->trans('Workstation'), '') . '</td>'; |
|
| 92 | + print '<td class="linecolworkstation right">'.$form->textwithpicto($langs->trans('Workstation'), '').'</td>'; |
|
| 93 | 93 | } |
| 94 | - print '<td class="linecoltotalcost right">' . $form->textwithpicto($langs->trans('TotalCost'), '') . '</td>'; |
|
| 94 | + print '<td class="linecoltotalcost right">'.$form->textwithpicto($langs->trans('TotalCost'), '').'</td>'; |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - print '<td class="linecoledit" colspan="' . $colspan . '"> </td>'; |
|
| 97 | + print '<td class="linecoledit" colspan="'.$colspan.'"> </td>'; |
|
| 98 | 98 | print '</tr>'; |
| 99 | 99 | } |
| 100 | 100 | print '<tr class="pair nodrag nodrop nohoverpair'.(($nolinesbefore || $object->element == 'contrat') ? '' : ' liste_titre_create').'">'; |
@@ -159,17 +159,17 @@ discard block |
||
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | $coldisplay++; |
| 162 | - print '<td class="bordertop nobottom linecolqtyfrozen right"><input type="checkbox" name="qty_frozen" id="qty_frozen" class="flat right" value="1"' . (GETPOST("qty_frozen", 'alpha') ? ' checked="checked"' : '') . '>'; |
|
| 162 | + print '<td class="bordertop nobottom linecolqtyfrozen right"><input type="checkbox" name="qty_frozen" id="qty_frozen" class="flat right" value="1"'.(GETPOST("qty_frozen", 'alpha') ? ' checked="checked"' : '').'>'; |
|
| 163 | 163 | print '</td>'; |
| 164 | 164 | |
| 165 | 165 | |
| 166 | 166 | $coldisplay++; |
| 167 | - print '<td class="bordertop nobottom linecoldisablestockchange right"><input type="checkbox" name="disable_stock_change" id="disable_stock_change" class="flat right" value="1"' . (GETPOST("disable_stock_change", 'alpha') ? ' checked="checked"' : '') . '">'; |
|
| 167 | + print '<td class="bordertop nobottom linecoldisablestockchange right"><input type="checkbox" name="disable_stock_change" id="disable_stock_change" class="flat right" value="1"'.(GETPOST("disable_stock_change", 'alpha') ? ' checked="checked"' : '').'">'; |
|
| 168 | 168 | print '</td>'; |
| 169 | 169 | |
| 170 | 170 | $coldisplay++; |
| 171 | 171 | print '<td class="bordertop nobottom nowrap linecollost right">'; |
| 172 | - print '<input type="text" size="2" name="efficiency" id="efficiency" class="flat right" value="' . ((GETPOSTISSET("efficiency") && $action == 'addline') ? GETPOST("efficiency", 'alpha') : 1) . '">'; |
|
| 172 | + print '<input type="text" size="2" name="efficiency" id="efficiency" class="flat right" value="'.((GETPOSTISSET("efficiency") && $action == 'addline') ? GETPOST("efficiency", 'alpha') : 1).'">'; |
|
| 173 | 173 | print '</td>'; |
| 174 | 174 | |
| 175 | 175 | $coldisplay++; |
@@ -197,8 +197,8 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | $coldisplay += $colspan; |
| 200 | -print '<td class="bordertop nobottom linecoledit right valignmiddle" colspan="' . $colspan . '">'; |
|
| 201 | -print '<input type="submit" class="button button-add small" name="addline" id="addline" value="' . $langs->trans('Add') . '">'; |
|
| 200 | +print '<td class="bordertop nobottom linecoledit right valignmiddle" colspan="'.$colspan.'">'; |
|
| 201 | +print '<input type="submit" class="button button-add small" name="addline" id="addline" value="'.$langs->trans('Add').'">'; |
|
| 202 | 202 | print '</td>'; |
| 203 | 203 | print '</tr>'; |
| 204 | 204 | |
@@ -43,9 +43,15 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | |
| 45 | 45 | $nbmodulesnotautoenabled = count($conf->modules); |
| 46 | -if (in_array('fckeditor', $conf->modules)) $nbmodulesnotautoenabled--; |
|
| 47 | -if (in_array('export', $conf->modules)) $nbmodulesnotautoenabled--; |
|
| 48 | -if (in_array('import', $conf->modules)) $nbmodulesnotautoenabled--; |
|
| 46 | +if (in_array('fckeditor', $conf->modules)) { |
|
| 47 | + $nbmodulesnotautoenabled--; |
|
| 48 | +} |
|
| 49 | +if (in_array('export', $conf->modules)) { |
|
| 50 | + $nbmodulesnotautoenabled--; |
|
| 51 | +} |
|
| 52 | +if (in_array('import', $conf->modules)) { |
|
| 53 | + $nbmodulesnotautoenabled--; |
|
| 54 | +} |
|
| 49 | 55 | |
| 50 | 56 | // Check if company name is defined (first install) |
| 51 | 57 | if (!getDolGlobalString('MAIN_INFO_SOCIETE_NOM') || !getDolGlobalString('MAIN_INFO_SOCIETE_COUNTRY')) { |