Page 2 of 2

Re: jiwa Timeout expired

PostPosted: Tue Jun 16, 2020 10:06 am
by redpoint
Hello Mike,

I think fixed the above issue, I have one more issue. We are trying to pass shipping cost from woocommerce to Jiwa. I have a partnumber which we call Freigh with a default price $15.

But somehome, I cannot override that price. Can you please tell me what is the issue?

Here is Jason example:

{"DebtorID":"XXXXXXXXX","InitiatedDate":"2017-09-20","OrderNo":"174777","SOReference":"Test order","Lines":[{"PartNo":"BRE55D23RMF","QuantityOrdered":5, "PriceExGst": 123.11},{"CommentLine":"true","CommentText":"This is a comment line"}],
"Payments":[{"PaymentRef":"S454873-J5","AmountPaid":50.00}]}

Re: jiwa Timeout expired

PostPosted: Tue Jun 16, 2020 12:53 pm
by Mike.Sheen
Instead of providing the field PriceExGST in the DTO, provide DiscountedPrice.

PriceExGST is more like the list price, but DiscountedPrice is what you actually are selling for. Omitting DiscountedPrice will cause the system to work the price out for you, based on all the pricing scheme rules.

Re: jiwa Timeout expired

PostPosted: Thu Jun 18, 2020 10:58 am
by redpoint
Great Mike, thanks its solved the issue.

I am having another issue, I am using the same Jason and having this ZRounding partno which automatically adding every time sales occurred.

Error Screenshot: http://prntscr.com/t1qs2d

Can you please hep me with this?

Thanks

Re: jiwa Timeout expired

PostPosted: Thu Jun 18, 2020 3:28 pm
by Scott.Pearce
That would occur if you add the lines normally through Jiwa, so it's not an API issue per-se. Out of the box Jiwa has a plugin called "Sales Orders - Round Cash Sales to Nearest 5c" which will add a non-inventory item called "ZRounding" to he sales order to ensure that the total of the order is a multiple of 5 cents. I suspect this plugin is enabled.