Do not send tag if no data
Posted: Thu Oct 01, 2015 1:47 pm
Sending XML invoice to customer
if 1%60 net 61, we send the following:
<PaymentTerm payInNumberOfDays="60">
<Discount>
<DiscountPercent percent="1.000"/>
</Discount>
</PaymentTerm>
<PaymentTerm payInNumberOfDays="61"/>
if net 60, we currently send:
<PaymentTerm payInNumberOfDays="">
<Discount>
<DiscountPercent percent=""/>
</Discount>
</PaymentTerm>
<PaymentTerm payInNumberOfDays="60"/>
They are rejecting this and they want us to send:
<PaymentTerm payInNumberOfDays="60"/>
I tried using the SkipIfEmpty = true but receiving an error.
Linoma support told me : "you cannot use the Skip If Empty function with child elements and/or elements."
Thanks in advance for the help
David
if 1%60 net 61, we send the following:
<PaymentTerm payInNumberOfDays="60">
<Discount>
<DiscountPercent percent="1.000"/>
</Discount>
</PaymentTerm>
<PaymentTerm payInNumberOfDays="61"/>
if net 60, we currently send:
<PaymentTerm payInNumberOfDays="">
<Discount>
<DiscountPercent percent=""/>
</Discount>
</PaymentTerm>
<PaymentTerm payInNumberOfDays="60"/>
They are rejecting this and they want us to send:
<PaymentTerm payInNumberOfDays="60"/>
I tried using the SkipIfEmpty = true but receiving an error.
Linoma support told me : "you cannot use the Skip If Empty function with child elements and/or elements."
Thanks in advance for the help
David