Purchase order import XML Import gives error  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Purchase order import XML Import gives error

Postby indikad » Tue Aug 18, 2015 4:06 pm

I am trying to import a Purchase order using import from XML ( manually using the utilities tab )
The PO lines gets populated correctly however there are a couple of issues

1. The Creditor Name does not appear
2. The Product descriptions do not appear

when I hit Save , I get the following error

"Error : The parameterised query '(@OrderNo varchar(6) , @CreditorId char(2) , @OrderType smallint , @Or expects parameter
@Header1 ' which was not supplied .
module onerror"

I have attached the simple xml file I am using.

any help is appreciated.
Attachments
PO.xml
PO File
(2.12 KiB) Downloaded 642 times
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

Re: Purchase order import XML Import gives error

Postby Mike.Sheen » Tue Aug 18, 2015 5:02 pm

I've found this to be 3 separate bugs.

I have taken the liberty of testing this and logging the 3 separate bugs for you - they are 11964, 11965 and 11966
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Purchase order import XML Import gives error

Postby indikad » Tue Aug 25, 2015 1:48 pm

Hi Mike,

Noting the bugs have been marked as fixed I have downloaded the latest patch 134 and tested.
The reported 3 bugs are gone but have a couple of new ones. Appreciate your attention.

the new findings. As below.
A sample xml file is attached.
1. The PO reference does not show on the screen after import but shows after hitting the save ( minor
issue but could confuse the user as they will think the reference did not come through ).
Can live educate the user on this for now.
2. Major issue - The tag <cost> is used to import the ExPrice and Jiwa Rounds off this. Such as
38.5 becomes 39 and 31.4 becomes 31
Attachments
HasPriceAndRefErros_Sams_5031_25_8_2015.xml
HasPriceAndRefErros
(2.69 KiB) Downloaded 707 times
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

Re: Purchase order import XML Import gives error  Topic is solved

Postby Mike.Sheen » Mon Aug 31, 2015 10:43 am

indikad wrote:2. Major issue - The tag <cost> is used to import the ExPrice and Jiwa Rounds off this. Such as
38.5 becomes 39 and 31.4 becomes 31


FYI this was fixed in bug 12002, and there is a workaround. When you export a PO to XML, you'll note there is a "HomeCurrencyDecimalPlaces" tag for each PO Line. The Import of a PO from XML assumes this tag to be present - and incorrectly does not fallback to the local currency decimal places if not supplied. The bug addresses this, but for now just supply the tag and you'll have your price precision back.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Purchase order import XML Import gives error

Postby indikad » Mon Aug 31, 2015 11:11 am

tested the workaround on patch 134. Working.
Thanks Mike.
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 0 guests