cancel
Showing results for 
Search instead for 
Did you mean: 

B1iF - AP Invoice to JE

ww123
Discoverer
0 Kudos
105

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>

Accepted Solutions (0)

Answers (0)