feat: standardize invoice number field, refine invoice creation logic, and update module foreign key constraints
This commit is contained in:
@@ -29,17 +29,6 @@ class Os extends Model
|
||||
default => '<span class="badge bg-danger">De-Active</span>'
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Many-to-many relationship với VPS products.
|
||||
*/
|
||||
public function vpsProducts()
|
||||
{
|
||||
return $this->belongsToMany(\App\Models\VPS::class, 'product_os', 'os_id', 'product_id')
|
||||
->withTimestamps()
|
||||
->withPivot('product_type');
|
||||
}
|
||||
|
||||
/**
|
||||
* Many-to-many relationship với Products (new table: os_product)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user