feat: standardize invoice number field, refine invoice creation logic, and update module foreign key constraints

This commit is contained in:
pbao9
2026-03-12 10:10:20 +07:00
parent 1e09ccf17b
commit 1934be9a19
10 changed files with 24 additions and 30 deletions
-11
View File
@@ -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)
*/