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

@@ -16,9 +16,7 @@ class Product extends Model
return $this->belongsTo(ProductCategory::class, 'product_category_id');
}
public function dealers(){
return $this->belongsToMany(Dealer::class, 'stock')
->withPivot('quantity')
->withTimestamps();
public function opnameDetails(){
return $this->hasMany(OpnameDetail::class);
}
}