feat: Implement UUID-based customer routing, enhance order request validation, and refactor VM creation job with updated payment logic and ModuleVmware handling.

This commit is contained in:
pbao9
2026-03-12 16:30:02 +07:00
parent 508d5186db
commit dbd3cdafcd
11 changed files with 207 additions and 283 deletions
+6
View File
@@ -50,6 +50,12 @@ class Invoice extends Model
return $this->hasMany(Service::class, 'invoice_id');
}
public function payment()
{
return $this->belongsTo(Payment::class, 'payment_method', 'id');
}
// -------------------------------------------------------------------------
// Helpers
// -------------------------------------------------------------------------
+2 -2
View File
@@ -13,7 +13,7 @@ class ModuleVmware extends Model
protected $fillable = [
'name',
'module_ip_address_id',
'module_ip_address',
'port',
'order_id',
'first_payment',
@@ -37,7 +37,7 @@ class ModuleVmware extends Model
}
public function ipAddress()
{
return $this->belongsTo(\App\Models\ModuleIpAddress::class, 'module_ip_address_id', 'id');
return $this->belongsTo(\App\Models\ModuleIpAddress::class, 'module_ip_address', 'id');
}
public function vCenter()
{