← Back to team overview

openobject-italia-core-devs team mailing list archive

[Bug 1249009] Re: Stampa numero di pagina su registri iva

 

Ricordo che per poter stampare correttamente i numeri di pagina
ripartendo dall'ultimo stampato, bisogna utilizzare un footer che legga
la variabile 'fiscal_page_base'.

Ad esempio, quello distribuito coi registri IVA è:

<html>
    <head>
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
        <script>
            function subst() {
            var vars={};
            var x=document.location.search.substring(1).split('&');
            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) {
            if(x[i] == 'page') {y[j].textContent = eval(vars[x[i]]) + ${fiscal_page_base};}
            else{y[j].textContent = vars[x[i]];}
            }

                }
            }
        </script>
    </head>
    <body style="border:0; margin: 0;" onload="subst()">
        <table style="border-top: 1px solid black; width: 100%">
            <tr >
                <td style="text-align:right;font-size:12;" width="95%">Page ${objects[0].period_id and objects[0].period_id.fiscalyear_id and objects[0].period_id.fiscalyear_id.name or ''|entity}/<span class="page"/></td><td style="text-align:left;font-size:12;"></td>
            </tr>
        </table>
    </body>
</html>

-- 
You received this bug notification because you are a member of OpenERP
Italia core devs, which is subscribed to OpenERP Italia.
https://bugs.launchpad.net/bugs/1249009

Title:
  Stampa numero di pagina su registri iva

Status in OpenERP Italia:
  New

Bug description:
  Nel wizard della creazione della stampa dei registri iva e' presente il campo per inserire l'ultimo numero di pagina stampato.
  Questo dovrebbe essere utilizzato dalla stampa per numerare le pagine.
  La stampa pero' non lo considera e riparte sempre da 1.
  Provato sia in versione 7.0 che 6.1 sia per i registri acquisti che vendite.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-italia/+bug/1249009/+subscriptions


References