on 2023 Apr 27 8:37 PM
Hi, Im writing a scenario to rebook Jurnal Entry created from the AP Invoice document, ( it will create a Journal Entry for the correct amount)
The scenario works if I have 1 line on the AP invoice
Do you have any tips on how it should look if I have more items on the AP invoice?
</vpf:Msg></xsl:template><xsl:template name="transform">
<xsl:variable name="DocEntry">
<xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[@Role='S']/BOM/BO/Documents/row/DocEntry"></xsl:value-of>
</xsl:variable>
<BOM>
<BO>
<AdmInfo>
<Object>30</Object>
<Version>2</Version>
</AdmInfo>
<JournalEntries>
<row>
<ReferenceDate>
<xsl:value-of select="//DocDate"></xsl:value-of>
</ReferenceDate>
<TaxDate>
<xsl:value-of select="//DocDate"></xsl:value-of>
</TaxDate>
<DueDate>
<xsl:value-of select="//DocDate"></xsl:value-of>
</DueDate>
</row>
</JournalEntries>
<JournalEntries_Lines>
<xsl:for-each select="/vpf:Msg/vpf:Body/vpf:Payload[@Role='S']/BOM/BO/Document_Lines/row">
<row>
<AccountCode>
<xsl:value-of select="//AccountCode"></xsl:value-of>
</AccountCode>
<Debit>0.000000</Debit>
<Credit>
<xsl:value-of select="//LineTotal"></xsl:value-of>
</Credit>
<ProjectCode>
<xsl:value-of select="//ProjectCode"></xsl:value-of>
</ProjectCode>
</row>
<row>
<AccountCode>
<xsl:value-of select="//jdbc:xACC"></xsl:value-of>
</AccountCode>
<Debit>
<xsl:value-of select="//LineTotal"></xsl:value-of>
</Debit>
<Credit>0.000000</Credit>
<ProjectCode>
<xsl:value-of select="//ProjectCode"></xsl:value-of>
</ProjectCode>
</row>
User | Count |
---|---|
105 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.