partial update opnames and detail table
This commit is contained in:
@@ -23,9 +23,7 @@ class Dealer extends Model
|
||||
return $this->hasMany(Transaction::class, 'dealer_id', 'id');
|
||||
}
|
||||
|
||||
public function products(){
|
||||
return $this->belongsToMany(Product::class, 'stock')
|
||||
->withPivot('quantity')
|
||||
->withTimestamps();
|
||||
public function opnames(){
|
||||
return $this->hasMany(Opname::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user