~camptocamp/account-invoice-report/semantic-fix

« back to all changes in this revision

Viewing changes to invoice_webkit/report/account_invoice.mako

  • Committer: Alexandre Fayolle
  • Author(s): yannick.vaucher at camptocamp
  • Date: 2013-04-15 14:28:40 UTC
  • mfrom: (25.3.1 7.0-sync-tax-column-with-so)
  • Revision ID: alexandre.fayolle@camptocamp.com-20130415142840-idaw6iq0tgsxiak6
[IMP] invoice_webkit - synchronize with sale ordre webkit report to print the same value in tax column, we want the description as it doesn't need to be a unique value and if not set we use the mandatory name

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
                <td class="amount">${formatLang(line.quantity or 0.0,digits=get_digits(dp='Account'))}</td>
248
248
                <td class="amount">${line.uos_id and line.uos_id.name or ''}</td>
249
249
                <td class="amount">${formatLang(line.price_unit)}</td>
250
 
                <td style="font-style:italic; font-size: 10;text-align:center;" >${ ', '.join([ tax.description or '' for tax in line.invoice_line_tax_id ])}</td>
 
250
                <td style="font-style:italic; font-size: 10;text-align:center;" >${ ', '.join([ tax.description or tax.name for tax in line.invoice_line_tax_id ])}</td>
251
251
                <td class="amount" width="10%">${line.discount and formatLang(line.discount, digits=get_digits(dp='Account')) or ''} ${line.discount and '%' or ''}</td>
252
252
                <td class="amount" width="13%">${formatLang(line.price_subtotal, digits=get_digits(dp='Account'))} ${inv.currency_id.symbol}</td>
253
253
            </tr>