mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 16:28:40 -04:00
Update for Items receiving_quantity
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user