How to modify the the Invoice product lines? #7869
-
Hi :-) Running latest Docker version. Trying to create a tax invoice that fits on 58mm receipt. i.e. a sales Receipt I'm a Laravel PHP JS CSS developer (no experience with Flutter, Dart) Customizing the product lines? Is it possible to do with just CSS? ... Update: I've tried this now and it looks like it's the way to go. Looks like I can have full control of the table and elements via CSS with Flex layout. Alternatively, some notes on when I was going through the code trying to see if I could override it to have control of how it is displayed... A: Dug through files and in design1.blade.php & design2.blade.php found B: Also found "product-table" in clean.html C: Where are New Design and New Invoice Design files? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can find all of the custom selectors here: https://invoiceninja.github.io/docs/custom-fields/#page-content You certainly are able to hide/show the product table columns using CSS only The invoice designs are in views/pdf-designs/ however i would suggest making your css changes using Settings > Invoice Design and customize a design there so that your changes persist any updates. We inject the product tables when building the html using the id tags, you can find the responsible class in App\Services\PdfMaker\Design.php |
Beta Was this translation helpful? Give feedback.
You can find all of the custom selectors here:
https://invoiceninja.github.io/docs/custom-fields/#page-content
You certainly are able to hide/show the product table columns using CSS only
The invoice designs are in
views/pdf-designs/
however i would suggest making your css changes using Settings > Invoice Design and customize a design there so that your changes persist any updates.
We inject the product tables when building the html using the id tags, you can find the responsible class in
App\Services\PdfMaker\Design.php