Community mailing list archives

Re: Invoice number in Webkit Header

Apertoso, Jos De Graeve
- 09/01/2014 04:28:16
Hello Markus,

Put the body of your invoice report in a <section> tag and the code below will print a footer with the invoice number ( aka section title becauce the number is in a <h1> tag )

Should work for the header also.


        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
            function subst() {
                var vars={};
                for(var i in x) {
                    var z=x[i].split('=',2);
                    vars[z[0]] = unescape(z[1]);
                var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
                for(var i in x) {
                    var y = document.getElementsByClassName(x[i]);
                    for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
    <body style="border:0; margin: 0;" onload="subst()">
        <div style="border-top: 1px solid black; width: 100%; text-align:center;font-size:10">
                %for part in company.rml_footer.split("\n"):
                    %if part:
        <div style="text-align:right;font-size:10;" width="95%" >
                <span class="section"> -- </span>

Jos De Graeve - Apertoso business ICT

Guido Gezellelaan 16 - B-9800 Deinze - Belgium
Direct: +32 9 381 64 51
General:+32 9 381 64 50
Mobile: +32 475 54 68 80
mail/im/skype: - apertoso

2014-09-01 9:57 GMT+02:00 Markus Schneider <>:
Hi everyone,

We need the Invoice number in the webkit header. As the header is global
if you print multi invoice it will be need to change the webkit module.
So has someone already done a patch that is possible to include invoice
number in the webkit header to print it on each page?

Just asking before we start coding.

Kind Regadrs


Dipl.-Comp.-Math. Markus Schneider

initOS GmbH & Co. KG
An der Eisenbahn 1
21224 Rosengarten

Mobil:   +49 (0)172 2303699
Phone:   +49 (0)4105 5615613
Fax:     +49 (0)4105 5615610


Dipl. Wirt.-Inf. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
Haftende Gesellschafterin: initOS Verwaltungs GmbH

Sitz der Gesellschaft: Rosengarten – Klecken
Amtsgericht Tostedt, HRA 201840
USt-IdNr: DE 275698169
Steuer-Nr: 15/205/21402

Post to: