stock module changes 3 -vadivel J
This commit is contained in:
parent
c96e12221b
commit
b614019747
@ -212,15 +212,18 @@ class StockController extends BaseController
|
||||
->where('materialCode',$materialCode)
|
||||
->first();
|
||||
|
||||
if($resultExists){
|
||||
|
||||
|
||||
if(!empty($resultExists)){
|
||||
|
||||
$this->incomingSilicaSandDetails_model
|
||||
$updated = $this->incomingSilicaSandDetails_model
|
||||
->where('igrNo_fk', $IGRNO)
|
||||
->where('materialCode', $materialCode)
|
||||
->update($dbData);
|
||||
|
||||
->set($dbData)
|
||||
->update();
|
||||
|
||||
}else{
|
||||
$this->incomingSilicaSandDetails_model->insert($dbData);
|
||||
$inserted = $this->incomingSilicaSandDetails_model->insert($dbData);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -18,8 +18,8 @@ class IncomingSilicaSandDetailsModel extends Model
|
||||
'moistureLoss', 'moistureLossQty','sieveLossQty','salableQty', 'remark',
|
||||
'is_active','created_at','updated_at'];
|
||||
|
||||
protected bool $allowEmptyInserts = true;
|
||||
protected bool $updateOnlyChanged = false;
|
||||
protected bool $allowEmptyInserts = false;
|
||||
protected bool $updateOnlyChanged = true;
|
||||
|
||||
protected array $casts = [];
|
||||
protected array $castHandlers = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user