Dear Cedric & Sergi,
Thanks for your kind responses.
In fact, I want to access the 'counter' attribute of the 'For Each'
construct in order to populate 'Serial No.' column of a table:
S. No.
Item Description
Unit
Quantity
Unit Price
Total
<for each="line in purchase.lines">
?
<for each="line in line.description.split('\n')">
<line>
</for>
<line.unit.name>
<(format_number(line.quantity, purchase.party.lang,
digits=line.unit_digits) + (line.unit and (' ' + line.unit.symbol) or ''))
or ''>
<format_currency(line.unit_price, purchase.party.lang, purchase.currency)>
<format_currency(line.amount, purchase.party.lang, purchase.currency)>
What should I write in place of '?' under 'S. No.' column to display serial
numbers (1, 2, 3 ...)?
Regards,
Khurram.
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/CAM3N3Cx9ANMPmm9qsrEgmeh55NBkFTeCQkh%3DQmB6BomSZY7g3g%40mail.gmail.com.