partial update opnames and detail table

This commit is contained in:
2025-06-04 18:29:05 +07:00
parent 8305e44c42
commit ff498cd98f
20 changed files with 864 additions and 174 deletions

View File

@@ -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);
}
}