Skip to Content
0
Former Member
Jun 25, 2015 at 06:12 PM

Issue with header UDFs when creating document using Baseentry, BaseLine

24 Views

I am creating delivery documents based on a sales order via the XML API. Everything works fine and my delivery is created and properly linked to the correct sales order. I have one issue with my header UDFs not getting populated with the values from my XML. They are actually carrying forward the sales order UDF values.

Is this by design? Is there some way to not have this happen on inserts?

I set my document lines like this:

<Document_Lines>

<row>

<BaseType>17</BaseType>

<BaseEntry>386</BaseEntry>

<BaseLine>2</BaseLine>

<Quantity>2.000000</Quantity>

</row>

<row>

<BaseType>17</BaseType>

<BaseEntry>386</BaseEntry>

<BaseLine>1</BaseLine>

<Quantity>6.000000</Quantity>

</row>

<row>

<BaseType>17</BaseType>

<BaseEntry>386</BaseEntry>

<BaseLine>3</BaseLine>

<Quantity>4.000000</Quantity>

</row>

<row>

<BaseType>17</BaseType>

<BaseEntry>386</BaseEntry>

<BaseLine>0</BaseLine>

<Quantity>36.000000</Quantity>

</row>

</Document_Lines>