crater-invoice / crater

Open Source Invoicing Solution for Individuals & Businesses
https://craterapp.com
GNU Affero General Public License v3.0
7.62k stars 1.53k forks source link

Template Invoice Total is always purple #1274

Closed anomanderrake1337 closed 7 months ago

anomanderrake1337 commented 7 months ago

Describe the bug When creating a new template, or adjust an existing template in resources/views/app/pdf/invoice/ The color of the invoice total never changes and is always purple. All other areas / items / attributes will change except the color of the toal amount of the invoice, see screenshot.

Expected behavior When editing the template the total amount attribute, the changes should be applied accordingly. From what I understand the elements are crated in @include('app.pdf.invoice.partials.table')

Screenshots

crater_example_invoice_total

This is what it looks like, when the .total-table-attribute-value color attribute is changed to yellow image

Please complete the following information:

Optional info

anomanderrake1337 commented 7 months ago

Funny how submitting a ticket works! I found the solution right after I pressed submit, but for everyone after me having similar problems:

There's another blade template in resources/views/app/pdf/invoice/partials called table.blade.php tht is included and used to generate the item and total tables.

In there the color is hard coded

            <td class="border-0 total-border-left total-table-attribute-label">
                @lang('pdf_total')
            </td>
            <td
                class="py-8 border-0 total-border-right item-cell total-table-attribute-value"
                style="color: #00659d"
            >

Changing the color here fixes the problem, I tested with #00659d as an example!