Fixing style errors.
This commit is contained in:
parent
e807b0d717
commit
40f52afb9e
@ -697,8 +697,7 @@ function show_stats_for_batch($batch, $socid)
|
||||
print '</tr>';
|
||||
}
|
||||
|
||||
if(isModEnabled("reception") && !empty($user->rights->reception->lire)) {
|
||||
|
||||
if (isModEnabled("reception") && !empty($user->rights->reception->lire)) {
|
||||
$nblines++;
|
||||
$ret = $batch->load_stats_reception($socid);
|
||||
if ($ret < 0) {
|
||||
@ -715,9 +714,7 @@ function show_stats_for_batch($batch, $socid)
|
||||
print $batch->stats_reception['qty'];
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
} elseif(isModEnabled('supplier_order') && !empty($user->rights->fournisseur->commande->lire)) {
|
||||
|
||||
} elseif (isModEnabled('supplier_order') && !empty($user->rights->fournisseur->commande->lire)) {
|
||||
$nblines++;
|
||||
$ret = $batch->load_stats_supplier_order($socid);
|
||||
if ($ret < 0) {
|
||||
@ -734,7 +731,6 @@ function show_stats_for_batch($batch, $socid)
|
||||
print $batch->stats_supplier_order['qty'];
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
}
|
||||
|
||||
if (isModEnabled('mrp') && !empty($user->rights->mrp->read)) {
|
||||
@ -747,19 +743,19 @@ function show_stats_for_batch($batch, $socid)
|
||||
print '<tr><td>';
|
||||
print '<a href="'.dol_buildpath('/product/stock/stats/mo.php', 1).'?id='.$batch->id.'">'.img_object('', 'mrp', 'class="pictofixedwidth"').$langs->trans("MO").'</a>';
|
||||
print '</td><td class="right">';
|
||||
// print $form->textwithpicto($batch->stats_mo['customers_toconsume'], $langs->trans("ToConsume")); Makes no sense with batch, at this moment we don't know batch number
|
||||
// print $form->textwithpicto($batch->stats_mo['customers_toconsume'], $langs->trans("ToConsume")); Makes no sense with batch, at this moment we don't know batch number
|
||||
print $form->textwithpicto($batch->stats_mo['customers_consumed'], $langs->trans("QtyAlreadyConsumed"));
|
||||
// print $form->textwithpicto($batch->stats_mo['customers_toproduce'], $langs->trans("QtyToProduce")); Makes no sense with batch, at this moment we don't know batch number
|
||||
// print $form->textwithpicto($batch->stats_mo['customers_toproduce'], $langs->trans("QtyToProduce")); Makes no sense with batch, at this moment we don't know batch number
|
||||
print $form->textwithpicto($batch->stats_mo['customers_produced'], $langs->trans("QtyAlreadyProduced"));
|
||||
print '</td><td class="right">';
|
||||
// print $form->textwithpicto($batch->stats_mo['nb_toconsume'], $langs->trans("ToConsume")); Makes no sense with batch, at this moment we don't know batch number
|
||||
// print $form->textwithpicto($batch->stats_mo['nb_toconsume'], $langs->trans("ToConsume")); Makes no sense with batch, at this moment we don't know batch number
|
||||
print $form->textwithpicto($batch->stats_mo['nb_consumed'], $langs->trans("QtyAlreadyConsumed"));
|
||||
// print $form->textwithpicto($batch->stats_mo['nb_toproduce'], $langs->trans("QtyToProduce")); Makes no sense with batch, at this moment we don't know batch number
|
||||
// print $form->textwithpicto($batch->stats_mo['nb_toproduce'], $langs->trans("QtyToProduce")); Makes no sense with batch, at this moment we don't know batch number
|
||||
print $form->textwithpicto($batch->stats_mo['nb_produced'], $langs->trans("QtyAlreadyProduced"));
|
||||
print '</td><td class="right">';
|
||||
// print $form->textwithpicto($batch->stats_mo['qty_toconsume'], $langs->trans("ToConsume")); Makes no sense with batch, at this moment we don't know batch number
|
||||
// print $form->textwithpicto($batch->stats_mo['qty_toconsume'], $langs->trans("ToConsume")); Makes no sense with batch, at this moment we don't know batch number
|
||||
print $form->textwithpicto($batch->stats_mo['qty_consumed'], $langs->trans("QtyAlreadyConsumed"));
|
||||
// print $form->textwithpicto($batch->stats_mo['qty_toproduce'], $langs->trans("QtyToProduce")); Makes no sense with batch, at this moment we don't know batch number
|
||||
// print $form->textwithpicto($batch->stats_mo['qty_toproduce'], $langs->trans("QtyToProduce")); Makes no sense with batch, at this moment we don't know batch number
|
||||
print $form->textwithpicto($batch->stats_mo['qty_produced'], $langs->trans("QtyAlreadyProduced"));
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@ -775,7 +771,6 @@ function show_stats_for_batch($batch, $socid)
|
||||
|
||||
|
||||
return $nblines++;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -570,7 +570,7 @@ class Productlot extends CommonObject
|
||||
$sql .= " FROM ".$this->db->prefix()."expeditiondet_batch as edb";
|
||||
$sql .= " INNER JOIN ".$this->db->prefix()."expeditiondet as ed ON (ed.rowid = edb.fk_expeditiondet)";
|
||||
$sql .= " INNER JOIN ".$this->db->prefix()."expedition as exp ON (exp.rowid = ed.fk_expedition)";
|
||||
// $sql .= ", ".$this->db->prefix()."societe as s";
|
||||
// $sql .= ", ".$this->db->prefix()."societe as s";
|
||||
if (empty($user->rights->societe->client->voir) && !$socid) {
|
||||
$sql .= ", ".$this->db->prefix()."societe_commerciaux as sc";
|
||||
}
|
||||
@ -596,25 +596,25 @@ class Productlot extends CommonObject
|
||||
// Virtual products can't be used with kits (see langs with key ErrorNoteAlsoThatSubProductCantBeFollowedByLot)
|
||||
|
||||
// if it's a virtual product, maybe it is in invoice by extension
|
||||
// if (!empty($conf->global->PRODUCT_STATS_WITH_PARENT_PROD_IF_INCDEC)) {
|
||||
// $TFather = $this->getFather();
|
||||
// if (is_array($TFather) && !empty($TFather)) {
|
||||
// foreach ($TFather as &$fatherData) {
|
||||
// $pFather = new Product($this->db);
|
||||
// $pFather->id = $fatherData['id'];
|
||||
// $qtyCoef = $fatherData['qty'];
|
||||
//
|
||||
// if ($fatherData['incdec']) {
|
||||
// $pFather->load_stats_expedition($socid);
|
||||
//
|
||||
// $this->stats_expedition['customers'] += $pFather->stats_expedition['customers'];
|
||||
// $this->stats_expedition['nb'] += $pFather->stats_expedition['nb'];
|
||||
// $this->stats_expedition['rows'] += $pFather->stats_expedition['rows'];
|
||||
// $this->stats_expedition['qty'] += $pFather->stats_expedition['qty'] * $qtyCoef;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// if (!empty($conf->global->PRODUCT_STATS_WITH_PARENT_PROD_IF_INCDEC)) {
|
||||
// $TFather = $this->getFather();
|
||||
// if (is_array($TFather) && !empty($TFather)) {
|
||||
// foreach ($TFather as &$fatherData) {
|
||||
// $pFather = new Product($this->db);
|
||||
// $pFather->id = $fatherData['id'];
|
||||
// $qtyCoef = $fatherData['qty'];
|
||||
//
|
||||
// if ($fatherData['incdec']) {
|
||||
// $pFather->load_stats_expedition($socid);
|
||||
//
|
||||
// $this->stats_expedition['customers'] += $pFather->stats_expedition['customers'];
|
||||
// $this->stats_expedition['nb'] += $pFather->stats_expedition['nb'];
|
||||
// $this->stats_expedition['rows'] += $pFather->stats_expedition['rows'];
|
||||
// $this->stats_expedition['qty'] += $pFather->stats_expedition['qty'] * $qtyCoef;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
$parameters = array('socid' => $socid);
|
||||
$reshook = $hookmanager->executeHooks('loadStatsLotExpedition', $parameters, $this, $action);
|
||||
@ -645,7 +645,7 @@ class Productlot extends CommonObject
|
||||
$sql .= " FROM ".$this->db->prefix()."commande_fournisseur_dispatch as cfdi";
|
||||
$sql .= " INNER JOIN ".$this->db->prefix()."commande_fournisseurdet as cfd ON (cfd.rowid = cfdi.fk_commandefourndet)";
|
||||
$sql .= " INNER JOIN ".$this->db->prefix()."commande_fournisseur as cf ON (cf.rowid = cfd.fk_commande)";
|
||||
// $sql .= ", ".$this->db->prefix()."societe as s";
|
||||
// $sql .= ", ".$this->db->prefix()."societe as s";
|
||||
if (empty($user->rights->societe->client->voir) && !$socid) {
|
||||
$sql .= ", ".$this->db->prefix()."societe_commerciaux as sc";
|
||||
}
|
||||
@ -671,25 +671,25 @@ class Productlot extends CommonObject
|
||||
// Virtual products can't be used with kits (see langs with key ErrorNoteAlsoThatSubProductCantBeFollowedByLot)
|
||||
|
||||
// if it's a virtual product, maybe it is in invoice by extension
|
||||
// if (!empty($conf->global->PRODUCT_STATS_WITH_PARENT_PROD_IF_INCDEC)) {
|
||||
// $TFather = $this->getFather();
|
||||
// if (is_array($TFather) && !empty($TFather)) {
|
||||
// foreach ($TFather as &$fatherData) {
|
||||
// $pFather = new Product($this->db);
|
||||
// $pFather->id = $fatherData['id'];
|
||||
// $qtyCoef = $fatherData['qty'];
|
||||
//
|
||||
// if ($fatherData['incdec']) {
|
||||
// $pFather->stats_supplier_order($socid);
|
||||
//
|
||||
// $this->stats_supplier_order['customers'] += $pFather->stats_supplier_order['customers'];
|
||||
// $this->stats_supplier_order['nb'] += $pFather->stats_supplier_order['nb'];
|
||||
// $this->stats_supplier_order['rows'] += $pFather->stats_supplier_order['rows'];
|
||||
// $this->stats_supplier_order['qty'] += $pFather->stats_supplier_order['qty'] * $qtyCoef;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// if (!empty($conf->global->PRODUCT_STATS_WITH_PARENT_PROD_IF_INCDEC)) {
|
||||
// $TFather = $this->getFather();
|
||||
// if (is_array($TFather) && !empty($TFather)) {
|
||||
// foreach ($TFather as &$fatherData) {
|
||||
// $pFather = new Product($this->db);
|
||||
// $pFather->id = $fatherData['id'];
|
||||
// $qtyCoef = $fatherData['qty'];
|
||||
//
|
||||
// if ($fatherData['incdec']) {
|
||||
// $pFather->stats_supplier_order($socid);
|
||||
//
|
||||
// $this->stats_supplier_order['customers'] += $pFather->stats_supplier_order['customers'];
|
||||
// $this->stats_supplier_order['nb'] += $pFather->stats_supplier_order['nb'];
|
||||
// $this->stats_supplier_order['rows'] += $pFather->stats_supplier_order['rows'];
|
||||
// $this->stats_supplier_order['qty'] += $pFather->stats_supplier_order['qty'] * $qtyCoef;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
$parameters = array('socid' => $socid);
|
||||
$reshook = $hookmanager->executeHooks('loadStatsLotSupplierOrder', $parameters, $this, $action);
|
||||
@ -719,7 +719,7 @@ class Productlot extends CommonObject
|
||||
$sql .= " COUNT(cfdi.rowid) as nb_rows, SUM(cfdi.qty) as qty";
|
||||
$sql .= " FROM ".$this->db->prefix()."commande_fournisseur_dispatch as cfdi";
|
||||
$sql .= " INNER JOIN ".$this->db->prefix()."reception as recep ON (recep.rowid = cfdi.fk_reception)";
|
||||
// $sql .= ", ".$this->db->prefix()."societe as s";
|
||||
// $sql .= ", ".$this->db->prefix()."societe as s";
|
||||
if (empty($user->rights->societe->client->voir) && !$socid) {
|
||||
$sql .= ", ".$this->db->prefix()."societe_commerciaux as sc";
|
||||
}
|
||||
@ -745,25 +745,25 @@ class Productlot extends CommonObject
|
||||
// Virtual products can't be used with kits (see langs with key ErrorNoteAlsoThatSubProductCantBeFollowedByLot)
|
||||
|
||||
// if it's a virtual product, maybe it is in invoice by extension
|
||||
// if (!empty($conf->global->PRODUCT_STATS_WITH_PARENT_PROD_IF_INCDEC)) {
|
||||
// $TFather = $this->getFather();
|
||||
// if (is_array($TFather) && !empty($TFather)) {
|
||||
// foreach ($TFather as &$fatherData) {
|
||||
// $pFather = new Product($this->db);
|
||||
// $pFather->id = $fatherData['id'];
|
||||
// $qtyCoef = $fatherData['qty'];
|
||||
//
|
||||
// if ($fatherData['incdec']) {
|
||||
// $pFather->load_stats_expedition($socid);
|
||||
//
|
||||
// $this->stats_expedition['customers'] += $pFather->stats_expedition['customers'];
|
||||
// $this->stats_expedition['nb'] += $pFather->stats_expedition['nb'];
|
||||
// $this->stats_expedition['rows'] += $pFather->stats_expedition['rows'];
|
||||
// $this->stats_expedition['qty'] += $pFather->stats_expedition['qty'] * $qtyCoef;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// if (!empty($conf->global->PRODUCT_STATS_WITH_PARENT_PROD_IF_INCDEC)) {
|
||||
// $TFather = $this->getFather();
|
||||
// if (is_array($TFather) && !empty($TFather)) {
|
||||
// foreach ($TFather as &$fatherData) {
|
||||
// $pFather = new Product($this->db);
|
||||
// $pFather->id = $fatherData['id'];
|
||||
// $qtyCoef = $fatherData['qty'];
|
||||
//
|
||||
// if ($fatherData['incdec']) {
|
||||
// $pFather->load_stats_expedition($socid);
|
||||
//
|
||||
// $this->stats_expedition['customers'] += $pFather->stats_expedition['customers'];
|
||||
// $this->stats_expedition['nb'] += $pFather->stats_expedition['nb'];
|
||||
// $this->stats_expedition['rows'] += $pFather->stats_expedition['rows'];
|
||||
// $this->stats_expedition['qty'] += $pFather->stats_expedition['qty'] * $qtyCoef;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
$parameters = array('socid' => $socid);
|
||||
$reshook = $hookmanager->executeHooks('loadStatsLotReception', $parameters, $this, $action);
|
||||
|
||||
@ -152,50 +152,50 @@ if ($id > 0 || !empty($ref)) {
|
||||
|
||||
echo '<br>';
|
||||
|
||||
// // Sell by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Eat by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_TRACEABOLITY)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// // print '<tr><td>'.$form->editfieldkey($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// // print '<td>'.$form->editfieldval($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// // print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Quality control
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_QUALITY_CONTROL)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer, 'numeric').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Other attributes
|
||||
// include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
|
||||
// // Sell by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Eat by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_TRACEABOLITY)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// // print '<tr><td>'.$form->editfieldkey($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// // print '<td>'.$form->editfieldval($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// // print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Quality control
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_QUALITY_CONTROL)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer, 'numeric').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Other attributes
|
||||
// include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
|
||||
|
||||
print '<table class="border centpercent tableforfield" width="100%">';
|
||||
|
||||
@ -214,7 +214,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
$sql = "SELECT DISTINCT s.nom as name, s.rowid as socid, s.code_fournisseur,";
|
||||
$sql .= " cf.ref, cf.date_commande, cf.date_livraison as delivery_date, cf.fk_statut as statut, cf.rowid as facid,";
|
||||
$sql .= " cfd.rowid, SUM(cfdi.qty) as qty";
|
||||
// $sql.= ", cfd.total_ht * SUM(cfdi.qty) / cfd.qty as total_ht_pondere";
|
||||
// $sql.= ", cfd.total_ht * SUM(cfdi.qty) / cfd.qty as total_ht_pondere";
|
||||
if (empty($user->rights->societe->client->voir) && !$socid) {
|
||||
$sql .= ", sc.fk_soc, sc.fk_user ";
|
||||
}
|
||||
@ -308,7 +308,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print_liste_field_titre("OrderDate", $_SERVER["PHP_SELF"], "cf.date_commande", "", $option, 'align="center"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("DateDeliveryPlanned", $_SERVER["PHP_SELF"], "cf.date_livraison", "", $option, 'align="center"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Qty", $_SERVER["PHP_SELF"], "cfdi.qty", "", $option, 'align="center"', $sortfield, $sortorder);
|
||||
// print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "total_ht_pondere", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
// print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "total_ht_pondere", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "cf.fk_statut", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print "</tr>\n";
|
||||
|
||||
@ -320,13 +320,13 @@ if ($id > 0 || !empty($ref)) {
|
||||
$objp->qty = -($objp->qty);
|
||||
}
|
||||
|
||||
// $total_ht_pondere += $objp->total_ht_pondere;
|
||||
// $total_ht_pondere += $objp->total_ht_pondere;
|
||||
$total_qty += $objp->qty;
|
||||
|
||||
$commandefournisseurstatic->id = $objp->facid;
|
||||
$commandefournisseurstatic->ref = $objp->ref;
|
||||
$societestatic->fetch($objp->socid);
|
||||
// $paiement = $commandefournisseurstatic->getSommePaiement();
|
||||
// $paiement = $commandefournisseurstatic->getSommePaiement();
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>';
|
||||
@ -339,7 +339,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print '<td class="center">';
|
||||
print dol_print_date($db->jdate($objp->delivery_date), 'dayhour')."</td>";
|
||||
print '<td class="center">'.$objp->qty."</td>\n";
|
||||
// print '<td align="right">'.price($objp->total_ht_pondere)."</td>\n";
|
||||
// print '<td align="right">'.price($objp->total_ht_pondere)."</td>\n";
|
||||
print '<td align="right">'.$commandefournisseurstatic->LibStatut($objp->statut, 5).'</td>';
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
@ -355,7 +355,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print '<td></td>';
|
||||
print '<td></td>';
|
||||
print '<td class="center">'.$total_qty.'</td>';
|
||||
// print '<td class="right">'.$total_ht_pondere.'</td>';
|
||||
// print '<td class="right">'.$total_ht_pondere.'</td>';
|
||||
print '<td></td>';
|
||||
print "</table>";
|
||||
print '</div>';
|
||||
|
||||
@ -152,50 +152,50 @@ if ($id > 0 || !empty($ref)) {
|
||||
|
||||
echo '<br>';
|
||||
|
||||
// // Sell by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Eat by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_TRACEABOLITY)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// // print '<tr><td>'.$form->editfieldkey($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// // print '<td>'.$form->editfieldval($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// // print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Quality control
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_QUALITY_CONTROL)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer, 'numeric').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Other attributes
|
||||
// include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
|
||||
// // Sell by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Eat by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_TRACEABOLITY)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// // print '<tr><td>'.$form->editfieldkey($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// // print '<td>'.$form->editfieldval($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// // print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Quality control
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_QUALITY_CONTROL)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer, 'numeric').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Other attributes
|
||||
// include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
|
||||
|
||||
print '<table class="border centpercent tableforfield" width="100%">';
|
||||
|
||||
@ -306,7 +306,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print_liste_field_titre("CustomerCode", $_SERVER["PHP_SELF"], "s.code_client", "", $option, '', $sortfield, $sortorder);
|
||||
print_liste_field_titre("DateCreation", $_SERVER["PHP_SELF"], "exp.date_creation", "", $option, 'align="center"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Qty", $_SERVER["PHP_SELF"], "d.qty", "", $option, 'align="center"', $sortfield, $sortorder);
|
||||
// print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "d.total_ht", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
// print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "d.total_ht", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "exp.fk_statut", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print "</tr>\n";
|
||||
|
||||
@ -324,7 +324,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
$expeditionstatic->id = $objp->facid;
|
||||
$expeditionstatic->ref = $objp->ref;
|
||||
$societestatic->fetch($objp->socid);
|
||||
// $paiement = $expeditionstatic->getSommePaiement();
|
||||
// $paiement = $expeditionstatic->getSommePaiement();
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>';
|
||||
@ -335,7 +335,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print '<td class="center">';
|
||||
print dol_print_date($db->jdate($objp->date_creation), 'dayhour')."</td>";
|
||||
print '<td class="center">'.$objp->qty."</td>\n";
|
||||
// print '<td align="right">'.price($objp->total_ht)."</td>\n";
|
||||
// print '<td align="right">'.price($objp->total_ht)."</td>\n";
|
||||
print '<td align="right">'.$expeditionstatic->LibStatut($objp->statut, 5).'</td>';
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
|
||||
@ -159,9 +159,9 @@ if ($id > 0 || !empty($ref)) {
|
||||
$now = dol_now();
|
||||
|
||||
$sql = "SELECT";
|
||||
// $sql .= " sum(".$db->ifsql("cd.role='toconsume'", "cd.qty", 0).') as nb_toconsume,';
|
||||
// $sql .= " sum(".$db->ifsql("cd.role='toconsume'", "cd.qty", 0).') as nb_toconsume,';
|
||||
$sql .= " sum(".$db->ifsql("cd.role='consumed'", "cd.qty", 0).') as nb_consumed,';
|
||||
// $sql .= " sum(".$db->ifsql("cd.role='toproduce'", "cd.qty", 0).') as nb_toproduce,';
|
||||
// $sql .= " sum(".$db->ifsql("cd.role='toproduce'", "cd.qty", 0).') as nb_toproduce,';
|
||||
$sql .= " sum(".$db->ifsql("cd.role='produced'", "cd.qty", 0).') as nb_produced,';
|
||||
$sql .= " c.rowid as rowid, c.ref, c.date_valid, c.status";
|
||||
//$sql .= " s.nom as name, s.rowid as socid, s.code_client";
|
||||
@ -249,9 +249,9 @@ if ($id > 0 || !empty($ref)) {
|
||||
//print_liste_field_titre("Company", $_SERVER["PHP_SELF"], "s.nom", "", "&id=".$object->id, '', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Date", $_SERVER["PHP_SELF"], "c.date_valid", "", $option."&id=".$object->id, 'align="center"', $sortfield, $sortorder);
|
||||
//print_liste_field_titre("AmountHT"),$_SERVER["PHP_SELF"],"c.amount","","&id=".$object->id,'align="right"',$sortfield,$sortorder);
|
||||
// print_liste_field_titre("ToConsume", $_SERVER["PHP_SELF"], "", "", "&id=".$object->id, '', $sortfield, $sortorder, 'center ');
|
||||
// print_liste_field_titre("ToConsume", $_SERVER["PHP_SELF"], "", "", "&id=".$object->id, '', $sortfield, $sortorder, 'center ');
|
||||
print_liste_field_titre("QtyAlreadyConsumed", $_SERVER["PHP_SELF"], "", "", $option."&id=".$object->id, '', $sortfield, $sortorder, 'center ');
|
||||
// print_liste_field_titre("QtyToProduce", $_SERVER["PHP_SELF"], "", "", "&id=".$object->id, '', $sortfield, $sortorder, 'center ');
|
||||
// print_liste_field_titre("QtyToProduce", $_SERVER["PHP_SELF"], "", "", "&id=".$object->id, '', $sortfield, $sortorder, 'center ');
|
||||
print_liste_field_titre("QtyAlreadyProduced", $_SERVER["PHP_SELF"], "", "", $option."&id=".$object->id, '', $sortfield, $sortorder, 'center ');
|
||||
print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "c.status", "", $option."&id=".$object->id, '', $sortfield, $sortorder, 'right ');
|
||||
print "</tr>\n";
|
||||
@ -279,9 +279,9 @@ if ($id > 0 || !empty($ref)) {
|
||||
print dol_print_date($db->jdate($objp->date_valid), 'dayhour')."</td>";
|
||||
//print "<td align=\"right\">".price($objp->total_ht)."</td>\n";
|
||||
//print '<td align="right">';
|
||||
// print '<td class="center">'.($objp->nb_toconsume > 0 ? $objp->nb_toconsume : '').'</td>';
|
||||
// print '<td class="center">'.($objp->nb_toconsume > 0 ? $objp->nb_toconsume : '').'</td>';
|
||||
print '<td class="center">'.($objp->nb_consumed > 0 ? $objp->nb_consumed : '').'</td>';
|
||||
// print '<td class="center">'.($objp->nb_toproduce > 0 ? $objp->nb_toproduce : '').'</td>';
|
||||
// print '<td class="center">'.($objp->nb_toproduce > 0 ? $objp->nb_toproduce : '').'</td>';
|
||||
print '<td class="center">'.($objp->nb_produced > 0 ? $objp->nb_produced : '').'</td>';
|
||||
//$mostatic->LibStatut($objp->statut,5).'</td>';
|
||||
print '<td class="right">'.$motmp->getLibStatut(2).'</td>';
|
||||
|
||||
@ -152,50 +152,50 @@ if ($id > 0 || !empty($ref)) {
|
||||
|
||||
echo '<br>';
|
||||
|
||||
// // Sell by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Eat by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_TRACEABOLITY)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// // print '<tr><td>'.$form->editfieldkey($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// // print '<td>'.$form->editfieldval($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// // print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Quality control
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_QUALITY_CONTROL)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer, 'numeric').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Other attributes
|
||||
// include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
|
||||
// // Sell by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('SellByDate'), 'sellby', $object->sellby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Eat by
|
||||
// if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
|
||||
// print '<tr><td>';
|
||||
// print $form->editfieldkey($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td><td>';
|
||||
// print $form->editfieldval($langs->trans('EatByDate'), 'eatby', $object->eatby, $object, $user->rights->stock->creer, 'datepicker');
|
||||
// print '</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_TRACEABOLITY)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('ManufacturingDate'), 'manufacturing_date', $object->manufacturing_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// // print '<tr><td>'.$form->editfieldkey($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// // print '<td>'.$form->editfieldval($langs->trans('FirstUseDate'), 'commissionning_date', $object->commissionning_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// // print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('DestructionDate'), 'scrapping_date', $object->scrapping_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Quality control
|
||||
// if (!empty($conf->global->PRODUCT_LOT_ENABLE_QUALITY_CONTROL)) {
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('EndOfLife'), 'eol_date', $object->eol_date, $object, $user->rights->stock->creer, 'datepicker').'</td>';
|
||||
// print '</tr>';
|
||||
// print '<tr><td>'.$form->editfieldkey($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer).'</td>';
|
||||
// print '<td>'.$form->editfieldval($langs->trans('QCFrequency'), 'qc_frequency', $object->qc_frequency, $object, $user->rights->stock->creer, 'numeric').'</td>';
|
||||
// print '</tr>';
|
||||
// }
|
||||
//
|
||||
// // Other attributes
|
||||
// include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
|
||||
|
||||
print '<table class="border centpercent tableforfield" width="100%">';
|
||||
|
||||
@ -305,7 +305,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print_liste_field_titre("SupplierCode", $_SERVER["PHP_SELF"], "s.code_fournisseur", "", $option, '', $sortfield, $sortorder);
|
||||
print_liste_field_titre("DateCreation", $_SERVER["PHP_SELF"], "recep.date_creation", "", $option, 'align="center"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Qty", $_SERVER["PHP_SELF"], "d.qty", "", $option, 'align="center"', $sortfield, $sortorder);
|
||||
// print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "d.total_ht", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
// print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "d.total_ht", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "recep.fk_statut", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print "</tr>\n";
|
||||
|
||||
@ -323,7 +323,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
$receptionstatic->id = $objp->facid;
|
||||
$receptionstatic->ref = $objp->ref;
|
||||
$societestatic->fetch($objp->socid);
|
||||
// $paiement = $receptionstatic->getSommePaiement();
|
||||
// $paiement = $receptionstatic->getSommePaiement();
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>';
|
||||
@ -334,7 +334,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print '<td class="center">';
|
||||
print dol_print_date($db->jdate($objp->date_creation), 'dayhour')."</td>";
|
||||
print '<td class="center">'.$objp->qty."</td>\n";
|
||||
// print '<td align="right">'.price($objp->total_ht)."</td>\n";
|
||||
// print '<td align="right">'.price($objp->total_ht)."</td>\n";
|
||||
print '<td align="right">'.$receptionstatic->LibStatut($objp->statut, 5).'</td>';
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user