From 5e2d8eac2b13bbce11fbf4a9d4094cec5a369b87 Mon Sep 17 00:00:00 2001
From: Laurent De Coninck
| '; print $tmpinvoice->getNomUrl(1, ''); print ' | '; @@ -222,15 +223,19 @@ if (!empty($conf->facture->enabled) && !empty($user->rights->facture->lire)) { print '
| '.$langs->trans('Rank').' | '; + // Product ref print ''.$langs->trans('ComposedProduct').' | '; + // Product label print ''.$langs->trans('Label').' | '; + // Min supplier price print ''.$langs->trans('MinSupplierPrice').' | '; + // Min customer price print ''.$langs->trans('MinCustomerPrice').' | '; + // Stock if (!empty($conf->stock->enabled)) { print ''.$langs->trans('Stock').' | '; } + // Qty in kit print ''.$langs->trans('Qty').' | '; + // Stoc inc/dev print ''.$langs->trans('ComposedProductIncDecStock').' | '; + // Move print ''; print ' | ||
| '.$object->sousprods[$parent_label][$value['id']][7].' | '; $notdefined = 0; $nb_of_subproduct = $value['nb']; + // Product ref print ''.$productstatic->getNomUrl(1, 'composition').' | '; + + // Product label print ''.$productstatic->label.' | '; // Best buying price @@ -423,8 +436,9 @@ if ($id > 0 || !empty($ref)) { print ''.($value['incdec'] == 1 ? 'x' : '').' | '; } - print ''; - print ' | '; + // Move action + print ''; + print ' | '; + + // Product ref print ' | '; for ($i = 0; $i < $value['level']; $i++) { print ' '; // Add indentation } print $productstatic->getNomUrl(1, 'composition').' | '; + + // Product label print ''.$productstatic->label.' | '; // Best buying price @@ -451,19 +471,36 @@ if ($id > 0 || !empty($ref)) { print ''; print ' | '; + // Stock if (!empty($conf->stock->enabled)) { print ' | '; // Real stock } + + // Qty in kit print ' | '.$value['nb'].' | '; + + // Inc/dec print ''; + + // Action move print ' | '; print ''."\n"; } } + + // Total + print ' |
| '; + + // Product ref print ' | '; + + // Product label print ' | '; // Minimum buying price @@ -495,11 +532,16 @@ if ($id > 0 || !empty($ref)) { print ' | '; } - print ' | '; + print ' | '; + + print ' | '; if ($user->rights->produit->creer || $user->rights->service->creer) { print ''; } print ' | '; + + print ''; + print ' | '; - print $obj->name_alias; + print ' | '; + print dol_escape_htmltag($obj->name_alias); print ' | '; if (!$i) { $totalarray['nbfield']++; @@ -1855,8 +1855,8 @@ if ($resql) { } // Town if (!empty($arrayfields['s.town']['checked'])) { - print ''; - print $obj->town; + print ' | '; + print dol_escape_htmltag($obj->town); print ' | '; if (!$i) { $totalarray['nbfield']++; @@ -1865,7 +1865,7 @@ if ($resql) { // Zip if (!empty($arrayfields['s.zip']['checked'])) { print ''; - print $obj->zip; + print dol_escape_htmltag($obj->zip); print ' | '; if (!$i) { $totalarray['nbfield']++; @@ -1873,7 +1873,7 @@ if ($resql) { } // State if (!empty($arrayfields['state.nom']['checked'])) { - print "".$obj->state_name." | \n"; + print "".dol_escape_htmltag($obj->state_name)." | \n"; if (!$i) { $totalarray['nbfield']++; } @@ -1936,7 +1936,7 @@ if ($resql) { // Module Source if (!empty($arrayfields['f.module_source']['checked'])) { print ''; - print $obj->module_source; + print dol_escape_htmltag($obj->module_source); print ' | '; if (!$i) { $totalarray['nbfield']++; @@ -1946,7 +1946,7 @@ if ($resql) { // POS Terminal if (!empty($arrayfields['f.pos_source']['checked'])) { print ''; - print $obj->pos_source; + print dol_escape_htmltag($obj->pos_source); print ' | '; if (!$i) { $totalarray['nbfield']++; From d064ab2b17f2317077856f6db64285c8cf187e3f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur