diff --git a/modules/customer-invoices/templates/alonsoysal/issued-invoice.hbs b/modules/customer-invoices/templates/alonsoysal/issued-invoice.hbs index 58f94866..827033c2 100644 --- a/modules/customer-invoices/templates/alonsoysal/issued-invoice.hbs +++ b/modules/customer-invoices/templates/alonsoysal/issued-invoice.hbs @@ -97,18 +97,8 @@ margin-bottom: 10px; } - /* Anchos por columna */ - .col-concepto { width: 75%; text-align: left; } - .col-cantidad { width: 5%; text-align: center;} - .col-precio { width: 10%; text-align: right;} - .col-total { width: 10%; text-align: right;} - table th, table td { - border-top: 0px solid; - border-left: 1px solid #000; - border-right: 1px solid #000; - border-bottom: 0px solid; padding: 3px 10px; text-align: left; vertical-align: top; @@ -132,11 +122,18 @@ font-weight: bold; } - .resume-table { - width: 100%; - border-collapse: collapse; - font-size: 9pt; - font-family: Tahoma, sans-serif; + /* Anchos por columna */ + .col-concepto { width: auto; text-align: left; } + .col-cantidad { width: 70px; text-align: center; border-right: 1px solid #000;} + .col-precio { width: 110px; text-align: right; border-right: 1px solid #000;} + .col-total { width: 110px; text-align: right; } + + .resume-table td { + background: #f0f0f0; /* gris como en la imagen */ + } + + .resume-table th { + border: transparent; /* gris como en la imagen */ } /* Columna izquierda (notas / forma de pago) */ @@ -171,12 +168,7 @@ border: 1px solid #000; } - .total { - color: #d10000; - font-weight: bold; - text-align: right; - } - + .resume-table .empty { border: 1px solid transparent; } @@ -270,14 +262,48 @@ {{#each items}} - {{description}} - {{#if quantity}}{{quantity}}{{else}} {{/if}} - {{#if unit_amount}}{{unit_amount}}{{else}} {{/if}} - {{#if taxable_amount}}{{taxable_amount}}{{else}} {{/if}} + {{description}} + {{#if quantity}}{{quantity}}{{else}} {{/if}} + {{#if unit_amount}}{{unit_amount}}{{else}} {{/if}} + {{#if taxable_amount}}{{taxable_amount}}{{else}} {{/if}} {{/each}} + + + + + + + {{#if discount_percentage}} + + + {{/if}} + + {{#each taxes}} + + {{/each}} + + + + + + + + {{#if discount_percentage}} + + + {{/if}} + + {{#each taxes}} + + {{/each}} + + + +
Importe netoDto {{discount_percentage}}Base imponible{{tax_name}}Total
{{subtotal_amount}}{{discount_amount.value}}{{taxable_amount}}{{taxes_amount}}{{total_amount}}
+ - - {{#if discount_percentage}} - - - {{else}} - - - {{/if}} - {{#if discount_percentage}} - - - - - - - - - {{/if}} - - {{#each taxes}} - - - - - {{/each}} - +
@@ -289,37 +315,12 @@

Notas: {{notes}}

{{/if}}
Importe neto{{subtotal_amount}}Base imponible{{taxable_amount}}
Dto {{discount_percentage}}{{discount_amount.value}}
Base imponible{{taxable_amount}}
{{tax_name}}{{taxes_amount}}
Total factura{{total_amount}}