add supplier ref for sale stats BDC part
This commit is contained in:
parent
522070b6da
commit
9bf6364b8a
@ -421,6 +421,7 @@ class AdminPrivateSalesLogistique extends AdminTab {
|
||||
$total_sale_product[(int)$id_product]['total_ht'] = 0;
|
||||
$total_sale_product[(int)$id_product]['quantiy'] = 0;
|
||||
$total_sale_product[(int)$id_product]['name'] = $current_product->name[2];
|
||||
$total_sale_product[(int)$id_product]['supplier_reference'] = $current_product->supplier_reference;
|
||||
}
|
||||
|
||||
$total_sale_product[(int)$id_product]['total_ht'] += ($wholesale_price * $quantity_to_cmd);
|
||||
@ -434,6 +435,7 @@ class AdminPrivateSalesLogistique extends AdminTab {
|
||||
$i = 1;
|
||||
foreach ($bestsales_extract as $key => $bestsalesProduct) {
|
||||
$stats->addToStats('bestsale_'.$i.'_product', $bestsalesProduct['name']);
|
||||
$stats->addToStats('bestsale_'.$i.'_ref', $bestsalesProduct['supplier_reference']);
|
||||
$stats->addToStats('bestsale_'.$i.'_quantity', $bestsalesProduct['quantiy']);
|
||||
$stats->addToStats('bestsale_'.$i.'_ca', $bestsalesProduct['total_ht']);
|
||||
$i++;
|
||||
@ -534,7 +536,7 @@ class AdminPrivateSalesLogistique extends AdminTab {
|
||||
for ($i=1; $i <= 3; $i++) {
|
||||
$html.= '<tr class="grey">';
|
||||
$html.= '<td>'.$stats->lang['bestsale_'.$i.'_product'].'</td>';
|
||||
$html.= '<td align="right">'.$stats->data_stats['bestsale_'.$i.'_product'].'</td>';
|
||||
$html.= '<td align="right">'.$stats->data_stats['bestsale_'.$i.'_product'].' - '.$stats->data_stats['bestsale_'.$i.'_ref'].'</td>';
|
||||
$html.= '</tr>';
|
||||
$html.= '<tr>';
|
||||
$html.= '<td>'.$stats->lang['bestsale_'.$i.'_quantity'].'</td>';
|
||||
|
Loading…
Reference in New Issue
Block a user