mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-12 02:48:48 -04:00
Fixed "Calc avg. Price (Receiving)" config bug (#482)
This commit is contained in:
@@ -94,7 +94,7 @@ class Receiving extends CI_Model
|
||||
|
||||
// update cost price, if changed AND is set in config as wanted
|
||||
if($cur_item_info->cost_price != $item['price']
|
||||
AND $this->config->item('receiving_calculate_average_price') == 'receiving_calculate_average_price')
|
||||
AND $this->config->item('receiving_calculate_average_price') != FALSE)
|
||||
{
|
||||
$this->Item->change_cost_price($item['item_id'],
|
||||
$items_received,
|
||||
|
||||
Reference in New Issue
Block a user