0
urlDecode("%E2%80%87");
let xlf := urlDecode("%0A");
let fsp := urlDecode("%E2%80%87");
let focus := this;
"InvoiceNo: " + InvoiceNo + xlf +
"TOTAL NET PRICE: " + 'Total net price' + xlf +
"DISCOUNTS: " + Discounts + xlf +
"IVA: " + VAT + xlf +
"TOTAL GROSS PRICE: " + 'Total gross price' + xlf +
"TOTAL GROSS PRICE + Discounts: " + 'Total gross price more Discount' + xlf
It is possible to incorporate urlDecode("%E2%80%87"); on InvoiceNo
The example don't work
"InvoiceNo: " + (InvoiceNo),15, fsp + xlf +
1 reply
-
let xlf := urlDecode("%0A"); let fsp := urlDecode("%E2%80%87"); let focus := this; let css := " <style> /* Contenedor principal de la factura */ .invoice-container { font-family: Arial, sans-serif; max-width: 600px; margin: 20px auto; padding: 20px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } /* Encabezado de la factura */ .invoice-container .invoice-header { font-size: 20px; font-weight: bold; margin-bottom: 15px; color: #333; border-bottom: 1px solid #eee; padding-bottom: 10px; text-align: center; } /* Fila genérica de la factura */ .invoice-container .invoice-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; line-height: 1.4; } /* Etiqueta (parte izquierda de cada fila) */ .invoice-container .invoice-row .invoice-label { font-weight: bold; color: #555; flex: 1; } /* Valor (parte derecha de cada fila) */ .invoice-container .invoice-row .invoice-value { color: #222; flex: 1; text-align: right; } /* Filas de totales */ .invoice-container .invoice-row.total-row { font-weight: bold; margin-top: 15px; padding-top: 10px; border-top: 1px dashed #ccc; font-size: 15px; } /* Estilo específico para el valor en filas de totales */ .invoice-container .invoice-row.total-row .invoice-value { color: #1a73e8; } /* Puedes añadir estilos para elementos específicos si necesitas */ .invoice-container #invoice-no { font-weight: bold; color: #1a73e8; } .invoice-container #total-gross { font-size: 16px; } </style> "; let invoiceContent := " <div class='invoice-container'> <div class='invoice-header'>Invoice Details</div> <div class='invoice-row'> <span class='invoice-label'>INVOICE No:</span> <span class='invoice-value'>" + InvoiceNo + "</span> </div> <div class='invoice-row'> <span class='invoice-label'>TOTAL NET PRICE:</span> <span class='invoice-value'>" + 'Total net price' + "</span> </div> <div class='invoice-row'> <span class='invoice-label'>DISCOUNTS:</span> <span class='invoice-value'>" + Discounts + "</span> </div> <div class='invoice-row'> <span class='invoice-label'>IVA:</span> <span class='invoice-value'>" + VAT + "</span> </div> <div class='invoice-row total-row'> <span class='invoice-label'>TOTAL GROSS PRICE:</span> <span class='invoice-value'>" + 'Total gross price' + "</span> </div> <div class='invoice-row total-row'> <span class='invoice-label'>TOTAL GROSS PRICE + Discounts:</span> <span class='invoice-value'>" + 'Total gross price more Discount' + "</span> </div> </div> "; html(css + invoiceContent)
Content aside
- Status Answered
- 2 wk agoLast active
- 1Replies
- 35Views
-
1
Following