feat: implement VMware vCenter integration, enhance product pricing display, and update order processing logic.

This commit is contained in:
pbao9
2026-03-01 23:10:35 +07:00
parent 6b18c3ff12
commit 1cfcaee871
27 changed files with 1738 additions and 104 deletions
+2 -3
View File
@@ -119,12 +119,11 @@ class Product extends Model
/**
* Relationship: Product has many addons (through product type)
* Addons are linked via type_id in product_addon table
* Addons are linked via type in product_addon table
*/
public function addons()
{
// Assuming product_addon has type_id field that links to product type
return $this->hasMany(Addon::class, 'type_id', 'product_type')
return $this->hasMany(Addon::class, 'type', 'product_type')
->orderBy('sort_order');
}