Greetings All.
I know how to change a label ( .transform-invLabel_00 {
content: “Customer Name”;
Where i am struggling is finding the label to change
I am looking for the label ( Invoice Name )
Any help would be good
Is it any of these?
http://www.quickfile.co.uk/resources/language
Greetings.
Looked there but not listed
Changing the subject did you find a solution to your question on CSS ( payment terms section )
I am looking into the same thing
Not yet…I have spent so much time on it, that I can live with it for the time being. I get easily diverted by the small stuff when I have more things to setup yet!
Which specific item are you trying to change? I don’t think the field that is called “invoice name” in the invoice editing form actually appears anywhere on the customer-visible invoice document itself.
If there’s no transform
class that will cause QuickFile to change the text in the HTML then there is a trick that you can use to make the change in pure CSS. Each tr
in the details table has a unique class name that we can target (e.g. tr-invoice-details-invno
for the invoice number, tr-invoice-details-desc
for the “Invoice Name”, etc. - you can find the correct one with “inspect element” in your browser), then use the special ::after
selector to replace the text entirely within the CSS stylesheet:
/* hide the standard text by shrinking it to size zero */
table.invoice-details-tbl .tr-invoice-details-desc .invoice-details-left-td strong {
font-size: 0;
}
/* add the replacement text in an ::after, overridden back to the standard font size */
table.invoice-details-tbl .tr-invoice-details-desc .invoice-details-left-td strong::after {
font-size: 11px;
content: "Name of invoice";
}
The ::after
pseudo-element behaves as if it were the last child before the closing tag, you can imagine it as
<strong>Invoice Name<::after>Name of invoice</::after></strong>
This is why we have to explicitly countermand the font-size: 0
, otherwise the ::after
would inherit the zero size from its strong
parent.
That worked a treat, you are a star.
May i ask another question.
Ok so the invoice pdf is generated and ready to print
The invoice number lets say is 000024 ( perfectly logical to follow )
But when the invoice is saved it is 6131627195_INV_32169123_d920ff82-aca.pdf ( this bears no reference to the invoice number.
Any options to save invoice as Invoice No
Many Thanks
I don’t think that’s something you can control - the file name is <qf-account-number>_INV_<internal-invoice-id>_<random>.pdf
.
Hi @Firsfence
There is a feature request for the file name, which you may wish to add your vote to - PDF Filenames Convention
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.