Refactor VM creation and configuration process

- Updated VpsServiceResource to return product UUID instead of ID.
- Modified VirtualMachineService to utilize product data for CPU, RAM, and disk settings.
- Replaced AssignIpToGuestJob with UpdateVmConfigJob in CreateVirtualMachineJob to streamline VM configuration after cloning.
- Adjusted AssignIpToGuestJob to remove unnecessary UpdateVmConfigJob dispatch and focus on IP assignment.
- Enhanced UpdateVmConfigJob to handle CPU/RAM configuration and power cycling more effectively.
- Introduced ChangeIpVMJob for handling customer-initiated IP changes asynchronously.
- Updated InvoiceRepository to set invoice due date based on maximum months instead of a fixed 7 days.
- Improved web design quote PDF layout for better readability.
- Added Times-Roman font metrics for PDF generation.
This commit is contained in:
baodev0
2026-07-24 09:29:43 +07:00
parent ccf95114f6
commit 3ed33ea7e4
10 changed files with 767 additions and 127 deletions
@@ -151,6 +151,9 @@ body {
.items-table td.summary-value { text-align: right; font-weight: bold; }
.items-table tr.total td { font-size: 12px; font-weight: bold; }
.items-table .item-desc { color: #6b7280; font-size: 9px; }
.items-table .item-desc p { margin: 2px 0; }
.items-table .item-desc ul,
.items-table .item-desc ol { margin: 2px 0; padding-left: 16px; }
.items-table { position: relative; z-index: 1; }
/* Summary */
@@ -316,7 +319,7 @@ ul.ref-list { margin: 2px 0 0 14px; }
<td>
{{ $item['name'] ?? '' }}
@if (!empty($item['description']))
<div class="item-desc">{{ $item['description'] }}</div>
<div class="item-desc">{!! $item['description'] !!}</div>
@endif
</td>
<td class="center">{{ $item['quantity'] ?? 1 }}</td>
@@ -359,13 +362,8 @@ ul.ref-list { margin: 2px 0 0 14px; }
<table class="sign-table">
<tr>
<td>
<div class="sign-title">Đại diện khách hàng</div>
<div class="sign-hint">(Ký, ghi rõ họ tên)</div>
</td>
<td>
<div class="sign-title">Đại diện {{ $companyName }}</div>
<div class="sign-hint">(Ký, ghi rõ họ tên)</div>
@if ($quote->creator)
<div style="margin-top: 16mm;">{{ $quote->creator->name }}</div>
@endif