Do not send tag if no data
Post any question you may have in regards to GoAnywhere MFT and let our talented support staff and other users assist you.
If you need a quicker response, please create a support ticket via the customer portal my.goanywhere.com or contact our support team by email at [email protected].
If you need a quicker response, please create a support ticket via the customer portal my.goanywhere.com or contact our support team by email at [email protected].
2 posts
Page 1 of 1
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
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
David,
What you were told by Support is correct ... if the element contains sub-elements or attributes, then the value for "skipIfEmpty" is ignored or not allowed.
In your code, you have:
Your post also contains the following statement:
What you were told by Support is correct ... if the element contains sub-elements or attributes, then the value for "skipIfEmpty" is ignored or not allowed.
In your code, you have:
Code: Select all
"payInNumberOfDays" is an attribute of the element "PaymentTerm" that has sub-elements and attributes, which isn't allowed in that scenario by definition.<element name="PaymentTerm">
<attribute name="payInNumberOfDays" value="${dataHeader[41]}" />
<element name="Discount">
<element name="DiscountPercent">
<attribute name="percent" value="${dataHeader[42]}" trim="both" />
</element>
</element>
</element>
Your post also contains the following statement:
They are rejecting this and they want us to send:Which corresponds to this:
<PaymentTerm payInNumberOfDays="60"/>
Code: Select all
Which could utilize the option of ${system.emptyString} as the null substitute for the value so that it represents a "blank" if nothing is presented.<element name="PaymentTerm">
<attribute name="payInNumberOfDays" value="${dataHeader[43]}" />
</element>
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts
Page 1 of 1