|
@@ -89,7 +89,7 @@ discard block |
|
|
block discarded – undo |
|
89
|
89
|
$search_id = GETPOST("search_id", 'alpha'); |
|
90
|
90
|
$search_ref = GETPOST("search_ref", 'alpha'); |
|
91
|
91
|
$search_ref_ext = trim(GETPOST("search_ref_ext", 'alpha')); |
|
92
|
|
-$search_ref_supplier = GETPOST("search_ref_supplier", 'alpha'); // ref of supplier price |
|
|
92
|
+$search_ref_supplier = GETPOST("search_ref_supplier", 'alpha'); // ref of supplier price |
|
93
|
93
|
$search_barcode = GETPOST("search_barcode", 'alpha'); |
|
94
|
94
|
$search_label = GETPOST("search_label", 'alpha'); |
|
95
|
95
|
$search_default_workstation = GETPOST("search_default_workstation", 'alpha'); |
|
@@ -279,12 +279,12 @@ discard block |
|
|
block discarded – undo |
|
279
|
279
|
'p.tobatch' => array('label' => "ManageLotSerial", 'checked' => '0', 'enabled' => (string) (int) (isModEnabled('productbatch')), 'position' => 60), |
|
280
|
280
|
'p.fk_country' => array('label' => "Country", 'checked' => '0', 'position' => 100), |
|
281
|
281
|
'p.fk_state' => array('label' => "State", 'checked' => '0', 'position' => 101), |
|
282
|
|
- $alias_product_perentity . '.accountancy_code_sell' => array('label' => "ProductAccountancySellCode", 'checked' => '0', 'enabled' => (string) (int) !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 400), |
|
283
|
|
- $alias_product_perentity . '.accountancy_code_sell_intra' => array('label' => "ProductAccountancySellIntraCode", 'checked' => '0', 'enabled' => (string) (int) ($isInEEC && !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING')), 'position' => 401), |
|
284
|
|
- $alias_product_perentity . '.accountancy_code_sell_export' => array('label' => "ProductAccountancySellExportCode", 'checked' => '0', 'enabled' => (string) (int) !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 402), |
|
285
|
|
- $alias_product_perentity . '.accountancy_code_buy' => array('label' => "ProductAccountancyBuyCode", 'checked' => '0', 'enabled' => (string) (int) !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 403), |
|
286
|
|
- $alias_product_perentity . '.accountancy_code_buy_intra' => array('label' => "ProductAccountancyBuyIntraCode", 'checked' => '0', 'enabled' => (string) (int) ($isInEEC && !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING')), 'position' => 404), |
|
287
|
|
- $alias_product_perentity . '.accountancy_code_buy_export' => array('label' => "ProductAccountancyBuyExportCode", 'checked' => '0', 'enabled' => (string) (int) !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 405), |
|
|
282
|
+ $alias_product_perentity.'.accountancy_code_sell' => array('label' => "ProductAccountancySellCode", 'checked' => '0', 'enabled' => (string) (int) !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 400), |
|
|
283
|
+ $alias_product_perentity.'.accountancy_code_sell_intra' => array('label' => "ProductAccountancySellIntraCode", 'checked' => '0', 'enabled' => (string) (int) ($isInEEC && !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING')), 'position' => 401), |
|
|
284
|
+ $alias_product_perentity.'.accountancy_code_sell_export' => array('label' => "ProductAccountancySellExportCode", 'checked' => '0', 'enabled' => (string) (int) !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 402), |
|
|
285
|
+ $alias_product_perentity.'.accountancy_code_buy' => array('label' => "ProductAccountancyBuyCode", 'checked' => '0', 'enabled' => (string) (int) !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 403), |
|
|
286
|
+ $alias_product_perentity.'.accountancy_code_buy_intra' => array('label' => "ProductAccountancyBuyIntraCode", 'checked' => '0', 'enabled' => (string) (int) ($isInEEC && !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING')), 'position' => 404), |
|
|
287
|
+ $alias_product_perentity.'.accountancy_code_buy_export' => array('label' => "ProductAccountancyBuyExportCode", 'checked' => '0', 'enabled' => (string) (int) !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 405), |
|
288
|
288
|
'p.datec' => array('label' => "DateCreation", 'checked' => '0', 'position' => 500), |
|
289
|
289
|
'p.tms' => array('label' => "DateModificationShort", 'checked' => '0', 'position' => 500), |
|
290
|
290
|
'p.tosell' => array('label' => $langs->transnoentitiesnoconv("Status").' ('.$langs->transnoentitiesnoconv("Sell").')', 'checked' => '1', 'position' => 1000), |
|
@@ -292,7 +292,7 @@ discard block |
|
|
block discarded – undo |
|
292
|
292
|
'p.import_key' => array('type' => 'varchar(14)', 'label' => 'ImportId', 'enabled' => '1', 'visible' => -2, 'notnull' => -1, 'index' => 0, 'checked' => '-1', 'position' => 1100), |
|
293
|
293
|
); |
|
294
|
294
|
|
|
295
|
|
-if (! empty($conf->stock->enabled)) { |
|
|
295
|
+if (!empty($conf->stock->enabled)) { |
|
296
|
296
|
// service |
|
297
|
297
|
if ($type == 1) { |
|
298
|
298
|
if (getDolGlobalString('STOCK_SUPPORTS_SERVICES')) { |
|
@@ -513,10 +513,10 @@ discard block |
|
|
block discarded – undo |
|
513
|
513
|
|
|
514
|
514
|
$sql .= ' FROM '.MAIN_DB_PREFIX.'product as p'; |
|
515
|
515
|
if (isModEnabled('workstation')) { |
|
516
|
|
- $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "workstation_workstation as ws ON (p.fk_default_workstation = ws.rowid)"; |
|
|
516
|
+ $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."workstation_workstation as ws ON (p.fk_default_workstation = ws.rowid)"; |
|
517
|
517
|
} |
|
518
|
518
|
if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) { |
|
519
|
|
- $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity); |
|
|
519
|
+ $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity); |
|
520
|
520
|
} |
|
521
|
521
|
if (!empty($extrafields->attributes[$object->table_element]['label']) && is_array($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label'])) { |
|
522
|
522
|
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_extrafields as ef on (p.rowid = ef.fk_object)"; |
|
@@ -598,7 +598,7 @@ discard block |
|
|
block discarded – undo |
|
598
|
598
|
$sql .= " AND p.tobuy = ".((int) $search_tobuy); |
|
599
|
599
|
} |
|
600
|
600
|
if (isset($search_stockable_product) && dol_strlen($search_stockable_product) > 0 && $search_stockable_product != -1) { |
|
601
|
|
- $sql .= " AND p.stockable_product = '". ((int) $search_stockable_product) . "'"; |
|
|
601
|
+ $sql .= " AND p.stockable_product = '".((int) $search_stockable_product)."'"; |
|
602
|
602
|
} |
|
603
|
603
|
if (isset($search_tobatch) && dol_strlen($search_tobatch) > 0 && $search_tobatch != -1) { |
|
604
|
604
|
$sql .= " AND p.tobatch = ".((int) $search_tobatch); |
|
@@ -621,7 +621,7 @@ discard block |
|
|
block discarded – undo |
|
621
|
621
|
if ($searchCategoryProductOperator == 0) { |
|
622
|
622
|
$searchCategoryProductSqlList[] = " EXISTS (SELECT ck.fk_product FROM ".MAIN_DB_PREFIX."categorie_product as ck WHERE p.rowid = ck.fk_product AND ck.fk_categorie = ".((int) $searchCategoryProduct).")"; |
|
623
|
623
|
} else { |
|
624
|
|
- $listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryProduct); |
|
|
624
|
+ $listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryProduct); |
|
625
|
625
|
} |
|
626
|
626
|
} |
|
627
|
627
|
} |
|
@@ -651,22 +651,22 @@ discard block |
|
|
block discarded – undo |
|
651
|
651
|
$sql .= " AND p.finished = ".((int) $search_finished); |
|
652
|
652
|
} |
|
653
|
653
|
if ($search_accountancy_code_sell) { |
|
654
|
|
- $sql .= natural_search($alias_product_perentity . '.accountancy_code_sell', clean_account($search_accountancy_code_sell)); |
|
|
654
|
+ $sql .= natural_search($alias_product_perentity.'.accountancy_code_sell', clean_account($search_accountancy_code_sell)); |
|
655
|
655
|
} |
|
656
|
656
|
if ($search_accountancy_code_sell_intra) { |
|
657
|
|
- $sql .= natural_search($alias_product_perentity . '.accountancy_code_sell_intra', clean_account($search_accountancy_code_sell_intra)); |
|
|
657
|
+ $sql .= natural_search($alias_product_perentity.'.accountancy_code_sell_intra', clean_account($search_accountancy_code_sell_intra)); |
|
658
|
658
|
} |
|
659
|
659
|
if ($search_accountancy_code_sell_export) { |
|
660
|
|
- $sql .= natural_search($alias_product_perentity . '.accountancy_code_sell_export', clean_account($search_accountancy_code_sell_export)); |
|
|
660
|
+ $sql .= natural_search($alias_product_perentity.'.accountancy_code_sell_export', clean_account($search_accountancy_code_sell_export)); |
|
661
|
661
|
} |
|
662
|
662
|
if ($search_accountancy_code_buy) { |
|
663
|
|
- $sql .= natural_search($alias_product_perentity . '.accountancy_code_buy', clean_account($search_accountancy_code_buy)); |
|
|
663
|
+ $sql .= natural_search($alias_product_perentity.'.accountancy_code_buy', clean_account($search_accountancy_code_buy)); |
|
664
|
664
|
} |
|
665
|
665
|
if ($search_accountancy_code_buy_intra) { |
|
666
|
|
- $sql .= natural_search($alias_product_perentity . '.accountancy_code_buy_intra', clean_account($search_accountancy_code_buy_intra)); |
|
|
666
|
+ $sql .= natural_search($alias_product_perentity.'.accountancy_code_buy_intra', clean_account($search_accountancy_code_buy_intra)); |
|
667
|
667
|
} |
|
668
|
668
|
if ($search_accountancy_code_buy_export) { |
|
669
|
|
- $sql .= natural_search($alias_product_perentity . '.accountancy_code_buy_export', clean_account($search_accountancy_code_buy_export)); |
|
|
669
|
+ $sql .= natural_search($alias_product_perentity.'.accountancy_code_buy_export', clean_account($search_accountancy_code_buy_export)); |
|
670
|
670
|
} |
|
671
|
671
|
if (getDolGlobalString('PRODUCT_USE_UNITS') && !empty($search_units) && $search_units != '-1' && $search_units !== 'none') { |
|
672
|
672
|
$sql .= natural_search('cu.rowid', $search_units); |
|
@@ -917,7 +917,7 @@ discard block |
|
|
block discarded – undo |
|
917
|
917
|
$arrayofmassactions['predelete'] = img_picto('', 'delete', 'class="pictofixedwidth"').$langs->trans("Delete"); |
|
918
|
918
|
} |
|
919
|
919
|
|
|
920
|
|
-if (in_array($massaction, array('presend', 'predelete','preaffecttag', 'edit_extrafields', 'preupdateprice'))) { |
|
|
920
|
+if (in_array($massaction, array('presend', 'predelete', 'preaffecttag', 'edit_extrafields', 'preupdateprice'))) { |
|
921
|
921
|
$arrayofmassactions = array(); |
|
922
|
922
|
} |
|
923
|
923
|
|
|
@@ -1029,7 +1029,7 @@ discard block |
|
|
block discarded – undo |
|
1029
|
1029
|
} |
|
1030
|
1030
|
|
|
1031
|
1031
|
$varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
|
1032
|
|
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
|
1032
|
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
1033
|
1033
|
$selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
|
1034
|
1034
|
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
|
1035
|
1035
|
|
|
@@ -1281,23 +1281,23 @@ discard block |
|
|
block discarded – undo |
|
1281
|
1281
|
print '</td>'; |
|
1282
|
1282
|
} |
|
1283
|
1283
|
// Accountancy code sell |
|
1284
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell']['checked'])) { |
|
|
1284
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell']['checked'])) { |
|
1285
|
1285
|
print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_sell" value="'.dol_escape_htmltag($search_accountancy_code_sell).'"></td>'; |
|
1286
|
1286
|
} |
|
1287
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_intra']['checked'])) { |
|
|
1287
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_intra']['checked'])) { |
|
1288
|
1288
|
print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_sell_intra" value="'.dol_escape_htmltag($search_accountancy_code_sell_intra).'"></td>'; |
|
1289
|
1289
|
} |
|
1290
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_export']['checked'])) { |
|
|
1290
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_export']['checked'])) { |
|
1291
|
1291
|
print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_sell_export" value="'.dol_escape_htmltag($search_accountancy_code_sell_export).'"></td>'; |
|
1292
|
1292
|
} |
|
1293
|
1293
|
// Accountancy code buy |
|
1294
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy']['checked'])) { |
|
|
1294
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy']['checked'])) { |
|
1295
|
1295
|
print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_buy" value="'.dol_escape_htmltag($search_accountancy_code_buy).'"></td>'; |
|
1296
|
1296
|
} |
|
1297
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_intra']['checked'])) { |
|
|
1297
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_intra']['checked'])) { |
|
1298
|
1298
|
print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_buy_intra" value="'.dol_escape_htmltag($search_accountancy_code_buy_intra).'"></td>'; |
|
1299
|
1299
|
} |
|
1300
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_export']['checked'])) { |
|
|
1300
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_export']['checked'])) { |
|
1301
|
1301
|
print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_buy_export" value="'.dol_escape_htmltag($search_accountancy_code_buy_export).'"></td>'; |
|
1302
|
1302
|
} |
|
1303
|
1303
|
// Extra fields |
|
@@ -1522,28 +1522,28 @@ discard block |
|
|
block discarded – undo |
|
1522
|
1522
|
print_liste_field_titre($arrayfields['p.fk_state']['label'], $_SERVER["PHP_SELF"], "p.fk_state", "", $param, '', $sortfield, $sortorder); |
|
1523
|
1523
|
$totalarray['nbfield']++; |
|
1524
|
1524
|
} |
|
1525
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell']['checked'])) { |
|
1526
|
|
- print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_sell']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_sell", "", $param, '', $sortfield, $sortorder); |
|
|
1525
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell']['checked'])) { |
|
|
1526
|
+ print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_sell']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_sell", "", $param, '', $sortfield, $sortorder); |
|
1527
|
1527
|
$totalarray['nbfield']++; |
|
1528
|
1528
|
} |
|
1529
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_intra']['checked'])) { |
|
1530
|
|
- print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_sell_intra']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_sell_intra", "", $param, '', $sortfield, $sortorder); |
|
|
1529
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_intra']['checked'])) { |
|
|
1530
|
+ print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_sell_intra']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_sell_intra", "", $param, '', $sortfield, $sortorder); |
|
1531
|
1531
|
$totalarray['nbfield']++; |
|
1532
|
1532
|
} |
|
1533
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_export']['checked'])) { |
|
1534
|
|
- print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_sell_export']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_sell_export", "", $param, '', $sortfield, $sortorder); |
|
|
1533
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_export']['checked'])) { |
|
|
1534
|
+ print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_sell_export']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_sell_export", "", $param, '', $sortfield, $sortorder); |
|
1535
|
1535
|
$totalarray['nbfield']++; |
|
1536
|
1536
|
} |
|
1537
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy']['checked'])) { |
|
1538
|
|
- print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_buy']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_buy", "", $param, '', $sortfield, $sortorder); |
|
|
1537
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy']['checked'])) { |
|
|
1538
|
+ print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_buy']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_buy", "", $param, '', $sortfield, $sortorder); |
|
1539
|
1539
|
$totalarray['nbfield']++; |
|
1540
|
1540
|
} |
|
1541
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_intra']['checked'])) { |
|
1542
|
|
- print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_buy_intra']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_buy_intra", "", $param, '', $sortfield, $sortorder); |
|
|
1541
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_intra']['checked'])) { |
|
|
1542
|
+ print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_buy_intra']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_buy_intra", "", $param, '', $sortfield, $sortorder); |
|
1543
|
1543
|
$totalarray['nbfield']++; |
|
1544
|
1544
|
} |
|
1545
|
|
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_export']['checked'])) { |
|
1546
|
|
- print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_buy_export']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_buy_export", "", $param, '', $sortfield, $sortorder); |
|
|
1545
|
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_export']['checked'])) { |
|
|
1546
|
+ print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_buy_export']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_buy_export", "", $param, '', $sortfield, $sortorder); |
|
1547
|
1547
|
$totalarray['nbfield']++; |
|
1548
|
1548
|
} |
|
1549
|
1549
|
// Extra fields |
|
@@ -1767,7 +1767,7 @@ discard block |
|
|
block discarded – undo |
|
1767
|
1767
|
} |
|
1768
|
1768
|
} |
|
1769
|
1769
|
|
|
1770
|
|
- print '<td class="center">' . $product_thumbnail_html . '</td>'; |
|
|
1770
|
+ print '<td class="center">'.$product_thumbnail_html.'</td>'; |
|
1771
|
1771
|
if (!$i) { |
|
1772
|
1772
|
$totalarray['nbfield']++; |
|
1773
|
1773
|
} |
|
@@ -2168,7 +2168,7 @@ discard block |
|
|
block discarded – undo |
|
2168
|
2168
|
} |
|
2169
|
2169
|
|
|
2170
|
2170
|
// not managed in stock |
|
2171
|
|
- if (! empty($arrayfields['p.stockable_product']['checked'])) { |
|
|
2171
|
+ if (!empty($arrayfields['p.stockable_product']['checked'])) { |
|
2172
|
2172
|
print '<td class="nowrap center">'; |
|
2173
|
2173
|
print ($product_static->stockable_product == '1') ? $langs->trans('Yes') : $langs->trans('No'); |
|
2174
|
2174
|
print '</td>'; |
|
@@ -2257,38 +2257,38 @@ discard block |
|
|
block discarded – undo |
|
2257
|
2257
|
} |
|
2258
|
2258
|
} |
|
2259
|
2259
|
// Accountancy code sell |
|
2260
|
|
- if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell']['checked'])) { |
|
|
2260
|
+ if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell']['checked'])) { |
|
2261
|
2261
|
print '<td>'.length_accountg($product_static->accountancy_code_sell).'</td>'; |
|
2262
|
2262
|
if (!$i) { |
|
2263
|
2263
|
$totalarray['nbfield']++; |
|
2264
|
2264
|
} |
|
2265
|
2265
|
} |
|
2266
|
|
- if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_intra']['checked'])) { |
|
|
2266
|
+ if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_intra']['checked'])) { |
|
2267
|
2267
|
print '<td>'.length_accountg($product_static->accountancy_code_sell_intra).'</td>'; |
|
2268
|
2268
|
if (!$i) { |
|
2269
|
2269
|
$totalarray['nbfield']++; |
|
2270
|
2270
|
} |
|
2271
|
2271
|
} |
|
2272
|
|
- if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_export']['checked'])) { |
|
|
2272
|
+ if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_export']['checked'])) { |
|
2273
|
2273
|
print '<td>'.length_accountg($product_static->accountancy_code_sell_export).'</td>'; |
|
2274
|
2274
|
if (!$i) { |
|
2275
|
2275
|
$totalarray['nbfield']++; |
|
2276
|
2276
|
} |
|
2277
|
2277
|
} |
|
2278
|
2278
|
// Accountancy code buy |
|
2279
|
|
- if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy']['checked'])) { |
|
|
2279
|
+ if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy']['checked'])) { |
|
2280
|
2280
|
print '<td>'.length_accountg($product_static->accountancy_code_buy).'</td>'; |
|
2281
|
2281
|
if (!$i) { |
|
2282
|
2282
|
$totalarray['nbfield']++; |
|
2283
|
2283
|
} |
|
2284
|
2284
|
} |
|
2285
|
|
- if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_intra']['checked'])) { |
|
|
2285
|
+ if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_intra']['checked'])) { |
|
2286
|
2286
|
print '<td>'.length_accountg($product_static->accountancy_code_buy_intra).'</td>'; |
|
2287
|
2287
|
if (!$i) { |
|
2288
|
2288
|
$totalarray['nbfield']++; |
|
2289
|
2289
|
} |
|
2290
|
2290
|
} |
|
2291
|
|
- if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_export']['checked'])) { |
|
|
2291
|
+ if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_export']['checked'])) { |
|
2292
|
2292
|
print '<td>'.length_accountg($product_static->accountancy_code_buy_export).'</td>'; |
|
2293
|
2293
|
if (!$i) { |
|
2294
|
2294
|
$totalarray['nbfield']++; |