FIX : Stickler
This commit is contained in:
parent
5bf8685f72
commit
0463846df1
@ -237,11 +237,13 @@ if ($resql){
|
|||||||
print '<td class="linecolcost nowrap right" id="sub_bom_cost_'.$sub_bom_line->id.'">'.price($sub_bom_product->cost_price * $line->qty).'</td>';
|
print '<td class="linecolcost nowrap right" id="sub_bom_cost_'.$sub_bom_line->id.'">'.price($sub_bom_product->cost_price * $line->qty).'</td>';
|
||||||
$total_cost.= $sub_bom_product->cost_price * $line->qty;
|
$total_cost.= $sub_bom_product->cost_price * $line->qty;
|
||||||
}
|
}
|
||||||
|
|
||||||
// PMP if cost price isn't defined
|
// PMP if cost price isn't defined
|
||||||
else if ($sub_bom_product->pmp > 0) {
|
else if ($sub_bom_product->pmp > 0) {
|
||||||
print '<td class="linecolcost nowrap right" id="sub_bom_cost_'.$sub_bom_line->id.'">'.price($sub_bom_product->pmp * $line->qty).'</td>';
|
print '<td class="linecolcost nowrap right" id="sub_bom_cost_'.$sub_bom_line->id.'">'.price($sub_bom_product->pmp * $line->qty).'</td>';
|
||||||
$total_cost.= $sub_bom_product->pmp * $line->qty;
|
$total_cost.= $sub_bom_product->pmp * $line->qty;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Minimum purchase price if cost price and PMP aren't defined
|
// Minimum purchase price if cost price and PMP aren't defined
|
||||||
else {
|
else {
|
||||||
$sql_supplier_price = 'SELECT MIN(price) AS min_price FROM '.MAIN_DB_PREFIX.'product_fournisseur_price';
|
$sql_supplier_price = 'SELECT MIN(price) AS min_price FROM '.MAIN_DB_PREFIX.'product_fournisseur_price';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user