Commit cfc2a84f authored by Arnaud Fontaine's avatar Arnaud Fontaine

WIP

parent 1f0bbd94
...@@ -16,10 +16,15 @@ ...@@ -16,10 +16,15 @@
<CompteAuxNum tal:content="python: third_party.getDestinationReference() or third_party.getSourceReference() or third_party.getReference() or third_party.getId()"></CompteAuxNum> <CompteAuxNum tal:content="python: third_party.getDestinationReference() or third_party.getSourceReference() or third_party.getReference() or third_party.getId()"></CompteAuxNum>
<CompteAuxLib tal:content="third_party/getTitle"></CompteAuxLib> <CompteAuxLib tal:content="third_party/getTitle"></CompteAuxLib>
</tal:block> </tal:block>
<Montantdevise tal:content="python: '%0.2f' % (line.getDestinationDebit() if line.getQuantity() >= 0 else line.getDestinationCredit())"></Montantdevise> <tal:block tal:condition="python: context.getDestinationSectionValue().getPriceCurrency() != line.getResource()">
<Idevise tal:content="line/getResourceReference">Currency</Idevise> <Montantdevise tal:content="python: '%0.2f' % (line.getDestinationDebit() if line.getQuantity() >= 0 else line.getDestinationCredit())"></Montantdevise>
<Montant tal:content="python: '%0.2f' % (line.getDestinationAssetDebit() if line.getQuantity() >= 0 else line.getDestinationAssetCredit())"></Montant> <Idevise tal:content="line/getResourceReference">Currency</Idevise>
<Sens tal:content="python: '-1' if line.getQuantity() >= 0 else '+1'"></Sens> <Montant tal:content="python: '%0.2f' % (line.getDestinationAssetDebit() if line.getQuantity() >= 0 else line.getDestinationAssetCredit())"></Montant>
</tal:block>
<tal:block tal:condition="python: context.getDestinationSectionValue().getPriceCurrency() == line.getResource()">
<Montant tal:content="python: '%0.2f' % (line.getDestinationDebit() if line.getQuantity() >= 0 else line.getDestinationCredit())"></Montant>
</tal:block>
<Sens tal:content="python: '+1' if line.getQuantity() >= 0 else '-1'"></Sens>
<tal:block tal:replace="structure line/getDescription"/> <tal:block tal:replace="structure line/getDescription"/>
</ligne></tal:block> </ligne></tal:block>
</ecriture> </ecriture>
\ No newline at end of file
...@@ -16,9 +16,14 @@ ...@@ -16,9 +16,14 @@
<CompteAuxNum tal:content="python: third_party.getDestinationReference() or third_party.getSourceReference() or third_party.getReference() or third_party.getId()"></CompteAuxNum> <CompteAuxNum tal:content="python: third_party.getDestinationReference() or third_party.getSourceReference() or third_party.getReference() or third_party.getId()"></CompteAuxNum>
<CompteAuxLib tal:content="third_party/getTitle"></CompteAuxLib> <CompteAuxLib tal:content="third_party/getTitle"></CompteAuxLib>
</tal:block> </tal:block>
<Montantdevise tal:content="python: '%0.2f' % (line.getSourceDebit() if line.getQuantity() >= 0 else line.getSourceCredit())"></Montantdevise> <tal:block tal:condition="python: context.getSourceSectionValue().getPriceCurrency() != line.getResource()">
<Idevise tal:content="line/getResourceReference">Currency</Idevise> <Montantdevise tal:content="python: '%0.2f' % (line.getSourceCredit() if line.getQuantity() >= 0 else line.getSourceDebit())"></Montantdevise>
<Montant tal:content="python: '%0.2f' % (line.getSourceAssetDebit() if line.getQuantity() >= 0 else line.getSourceAssetCredit())"></Montant> <Idevise tal:content="line/getResourceReference">Currency</Idevise>
<Montant tal:content="python: '%0.2f' % (line.getSourceAssetCredit() if line.getQuantity() >= 0 else line.getSourceAssetDebit())"></Montant>
</tal:block>
<tal:block tal:condition="python: context.getSourceSectionValue().getPriceCurrency() == line.getResource()">
<Montant tal:content="python: '%0.2f' % (line.getSourceCredit() if line.getQuantity() >= 0 else line.getSourceDebit())"></Montant>
</tal:block>
<Sens tal:content="python: '-1' if line.getQuantity() >= 0 else '+1'"></Sens> <Sens tal:content="python: '-1' if line.getQuantity() >= 0 else '+1'"></Sens>
<tal:block tal:replace="structure line/getDescription"/> <tal:block tal:replace="structure line/getDescription"/>
</ligne></tal:block> </ligne></tal:block>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment