Update for Items receiving_quantity

This commit is contained in:
odiea
2017-06-17 06:42:48 -06:00
committed by FrancescoUK
parent e61e409bfe
commit e2e0ade259
4 changed files with 5 additions and 4 deletions

View File

@@ -218,7 +218,7 @@ class Receiving_lib
'in_stock' => $this->CI->Item_quantity->get_item_quantity($item_id, $item_location)->quantity,
'price' => $price,
'receiving_quantity' => $receiving_quantity!=NULL ? $receiving_quantity : $item_info->receiving_quantity,
'total' => $this->get_item_total($quantity, $price, $discount)
'total' => $this->get_item_total($quantity, $price, $discount, $receiving_quantity)
)
);
@@ -338,7 +338,7 @@ class Receiving_lib
$total = 0;
foreach($this->get_cart() as $item)
{
$total = bcadd($total, $this->get_item_total($item['quantity'], $item['price'], $item['discount']));
$total = bcadd($total, $this->get_item_total(($item['quantity']* $item['receiving_quantity']), $item['price'], $item['discount']));
}
return $total;