fix(invoice): update wording to Payment ID, remove redundant status, and fix mobile formatting on iOS
This commit is contained in:
parent
fcb20d8fc7
commit
31359edae4
|
|
@ -557,7 +557,8 @@ class AdminPaymentService:
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
border: 1px solid #e2e8f0;
|
border: 1px solid #e2e8f0;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
overflow: hidden;
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}}
|
}}
|
||||||
table {{
|
table {{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
@ -618,6 +619,73 @@ class AdminPaymentService:
|
||||||
color: #94a3b8;
|
color: #94a3b8;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}}
|
}}
|
||||||
|
.payment-id-val {{
|
||||||
|
word-break: break-all;
|
||||||
|
display: inline-block;
|
||||||
|
}}
|
||||||
|
@media (max-width: 640px) {{
|
||||||
|
body {{
|
||||||
|
padding: 12px 8px;
|
||||||
|
}}
|
||||||
|
.no-print-bar {{
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 12px 14px;
|
||||||
|
text-align: center;
|
||||||
|
}}
|
||||||
|
.no-print-actions {{
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
width: 100%;
|
||||||
|
}}
|
||||||
|
.no-print-actions .btn {{
|
||||||
|
flex: 1;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 10px 8px;
|
||||||
|
font-size: 13px;
|
||||||
|
}}
|
||||||
|
.invoice-card {{
|
||||||
|
padding: 24px 16px;
|
||||||
|
border-radius: 12px;
|
||||||
|
}}
|
||||||
|
.header {{
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 16px;
|
||||||
|
padding-bottom: 18px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}}
|
||||||
|
.invoice-badge-box {{
|
||||||
|
text-align: left;
|
||||||
|
width: 100%;
|
||||||
|
}}
|
||||||
|
.grid-details {{
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 20px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}}
|
||||||
|
.grid-payment-overview {{
|
||||||
|
text-align: left !important;
|
||||||
|
}}
|
||||||
|
.detail-text {{
|
||||||
|
word-break: break-word;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}}
|
||||||
|
.table-wrap table {{
|
||||||
|
min-width: 480px;
|
||||||
|
}}
|
||||||
|
th, td {{
|
||||||
|
padding: 10px 12px;
|
||||||
|
font-size: 13px;
|
||||||
|
}}
|
||||||
|
.summary-wrap {{
|
||||||
|
justify-content: stretch;
|
||||||
|
}}
|
||||||
|
.summary-card {{
|
||||||
|
width: 100%;
|
||||||
|
}}
|
||||||
|
}}
|
||||||
@media print {{
|
@media print {{
|
||||||
body {{
|
body {{
|
||||||
background-color: #ffffff !important;
|
background-color: #ffffff !important;
|
||||||
|
|
@ -640,7 +708,7 @@ class AdminPaymentService:
|
||||||
<div style="font-size: 13px; color: #64748b; font-weight: 500;">
|
<div style="font-size: 13px; color: #64748b; font-weight: 500;">
|
||||||
Acupedia Official Tax Invoice • <strong>{inv_number}</strong>
|
Acupedia Official Tax Invoice • <strong>{inv_number}</strong>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; gap: 8px;">
|
<div class="no-print-actions" style="display: flex; gap: 8px;">
|
||||||
<button class="btn btn-secondary" onclick="window.close()">Close</button>
|
<button class="btn btn-secondary" onclick="window.close()">Close</button>
|
||||||
<button class="btn btn-primary" onclick="window.print()">
|
<button class="btn btn-primary" onclick="window.print()">
|
||||||
<svg width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z"></path></svg>
|
<svg width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z"></path></svg>
|
||||||
|
|
@ -672,12 +740,11 @@ class AdminPaymentService:
|
||||||
{f'<div class="detail-text">{cust_phone}</div>' if cust_phone else ''}
|
{f'<div class="detail-text">{cust_phone}</div>' if cust_phone else ''}
|
||||||
<div class="detail-text" style="color: #64748b; margin-top: 4px;">{cust_address}</div>
|
<div class="detail-text" style="color: #64748b; margin-top: 4px;">{cust_address}</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: right;">
|
<div class="grid-payment-overview" style="text-align: right;">
|
||||||
<div class="section-label">Payment Overview</div>
|
<div class="section-label">Payment Overview</div>
|
||||||
<div class="detail-text">Gateway Reference: <span class="detail-strong" style="font-family: monospace;">{payment_id}</span></div>
|
<div class="detail-text">Payment ID: <span class="detail-strong payment-id-val" style="font-family: monospace;">{payment_id}</span></div>
|
||||||
<div class="detail-text">Payment Method: <span class="detail-strong">{pay_method}</span></div>
|
<div class="detail-text">Payment Method: <span class="detail-strong">{pay_method}</span></div>
|
||||||
<div class="detail-text">Currency: <span class="detail-strong">{currency}</span></div>
|
<div class="detail-text">Currency: <span class="detail-strong">{currency}</span></div>
|
||||||
<div class="detail-text">Status: <span class="detail-strong" style="color: #059669;">Completed / Captured</span></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue