|
@@ -3101,7 +3101,7 @@ class Specialstock extends Start_Controller {
|
|
|
$gy = $this->purchase->read($value['purchase']);
|
|
$gy = $this->purchase->read($value['purchase']);
|
|
|
$purchase = $gy['title'];
|
|
$purchase = $gy['title'];
|
|
|
$cpid = '';
|
|
$cpid = '';
|
|
|
- $g = $this->specialstock->find_all($where.' and enter = "'.$value['enter'].'"','cpid');
|
|
|
|
|
|
|
+ $g = $this->specialstock->find_all($where.' and enter = "'.$value['enter'].'" '." and sku = '".$value['sku']."'",'cpid');
|
|
|
foreach ($g as $v)
|
|
foreach ($g as $v)
|
|
|
{
|
|
{
|
|
|
if($v['cpid'] != 0)
|
|
if($v['cpid'] != 0)
|