feat: standardize invoice number field, refine invoice creation logic, and update module foreign key constraints
This commit is contained in:
@@ -80,7 +80,7 @@ class Product extends Model
|
||||
*/
|
||||
public function operatingSystems()
|
||||
{
|
||||
return $this->belongsToMany(Os::class, 'product_os', 'product_id', 'os_id')
|
||||
return $this->belongsToMany(Os::class, 'os_product', 'product_id', 'os_id')
|
||||
->withTimestamps();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user