Collaborative messaging framework: xml has a tag missed in the xml output
Summary:
When we run Generate and Transfer XML Transaction program once with New and 2nd time with Failed transaction parameter the output xml has one tag missed when we run first time
Before :
<Descrizione>PRS gloves 1 pair</Descrizione>
<Quantita>1.00</Quantita>
<UnitaMisura>Ea</UnitaMisura>
<PrezzoUnitario>300.00</PrezzoUnitario>
<PrezzoTotale>300.00</PrezzoTotale>
<AliquotaIVA>22.00</AliquotaIVA>
After:
<Descrizione>PRS gloves 1 pair</Descrizione>
<Quantita>1.00</Quantita>
<UnitaMisura>Ea</UnitaMisura>
<PrezzoUnitario>300.00</PrezzoUnitario>
<ScontoMaggiorazione>
<Tipo>SC</Tipo>
<Percentuale>300.00</Percentuale>
</ScontoMaggiorazione>
<PrezzoTotale>300.00</PrezzoTotale>
<AliquotaIVA>22.00</AliquotaIVA>
If you see tag ScontoMaggiorazione is displayed when we run with failed transaction
Logic in xsl file
<xsl:variable name='totlineamt'>
<xsl:value-of select="$current-group/tns:LineAmount"/>