on 08-06-2023 7:50 AM
Hi,
I've been trying to create a supplier invoice with multiple items.
I've followed the sample code provided in Repository Explorer but it doesn't work.
It keeps returning the error
Also I find that when using the Create statement at Item level, it also adds another item as well.
What does the overload do here?
Does anyone have a working example?
Kind regards,
Tri
It tells you that a number of fields are missing --- something I found when doing this some time ago was that even if I specified values in the 'elementsof' variable, they were removed when creating the actual node data so needed to be set again. I suggest you follow the code in the debugger to see what's missing, I imagine it'll correspond in part to the errors you're seeing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank Lewis.
I've debugged and seen that some elements are cleared randomly.
For example, I set the gross amount at item level
SI_Item.GrossAmount.content = oItem.ItemGrossAmount.content;
then somehow it is removed after I create the item node while the description and quantity are not cleared
SI_Item1 = SI.Item.Create(SI_Item);
After trying many ways and still not working, I've given up and uses A2X way.
Regards,
Tri
User | Count |
---|---|
74 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.