Orders and Deliveries
So wierdly after months of setup issues I discovered our inbox was finally working with our supplier ie we were recieving delivery notices.
My question
When I recieve a delivery say for lets say 9 products
5 of them are linked to products on our system
1 is a flyer that our supplier has sent listed with a 0 cost line item
1 is frieght
1 is a in hospital use item I never charge out
1 is a new product
The new product I currently have to go into the product workspace and create and new product then go to deliveries and link it.
IF I try and finalize and some items are not linked I get
Failed to validate property Product: Product is required
the In hospital use item I need to go and create an item for as well I guess
what do I do with the flyer and freight (which has a charge)
And why when I finalize the delivery does it ask me if I want to "INVOICE the supplier"
Cheers all
Thanks
Re: Orders and Deliveries
Hi Ben
All items in a Delivery need to be linked to a product (via the supplier stock code). I would add freight as a product as you will have this on each delivery and this also allows you to see the invoice total on your paper invoice matches your delivery invoice.
Regarding the Invoice Supplier option, just cancel. Im not 100% sure but I think this was set up originally so you could pay your supplier for that delivery but dont know any practices who do this.
Cath
Re: Orders and Deliveries
Hi
Sorry forgot this bit, with items such as a flyer you can just edit the delivery and delete this line.
Cath
Re: Orders and Deliveries
How annyoying is it when the supplier doesnt use a reorder code for things like FRIEGHT...hence u need to edit the order EVERY time to product match it...!!!
Other than that
THANKS CATH!
Re: Orders and Deliveries
The freight issue is actually a limitation of OpenVPMS, not ESCI. OpenVPMS doesn't support charges that aren't product related, so they need to be mapped to dummy products.
There is a JIRA to enhance this: https://openvpms.atlassian.net/browse/OVPMS-1252
This would allow both discounts and freight to be supported.
-Tim
Re: Orders and Deliveries
This Esci stuff is seriously like the bugbear of my year...so after having setup issues...our system magically started just working...the deliveries downloaded and we could use the internal ordering section.
Then 3 days ago...it just stopped again
However the ESCI testing tools connect to the inbox fine with the password etc, does anyone know how to enable
httptransport dump in openvpms...
I tried adding -Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true to my tomcat startup options but dont seem to get any output
my inbox request is producing so I know there are invoices(deliveries) awaiting download its just that the OPENVPMS jvm isnt able to access them...I need to see the transpor pipe to undestand the failure point.
Re: Orders and Deliveries
Are you hosting two instances of OpenVPMS within the one Tomcat server - perhaps a test and production instance?
If so, and both are configured for ESCI, then you can get a conflict between which instance is called to submit passwords to ESCI.
This is because all HTTP authentication in Java is handled through a single point; whichever app registers its authentication handler last is responsible for submitting passwords to the server requiring credentials.
If the last to register app doesn't know how to submit the right credentials, then access will be rejected.
(Its a bizarre limitation, and a PITA).
How are you specifying -Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true ?
You should be able to do:
set JAVA_OPTS=-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true catalina.bat run
-Tim
Re: Orders and Deliveries
Well bugger me....that is a royal PITA
I was using the production server to host a training server.....I have just undeployed it. Mind you it wasnt configured to have ESCI...
but the problems did start concurrently with its deployment. (and I deployed it by copying my existing
webapp and then renaming as per the guide.) I specified a different mysql database though, that didnt have ESCI...
As far as specifying httptransport dump (win32) starting as a service. so I had added it to the startup options under the tomcat7w monitor.
So they ended up looking like:
I thought the set command could only be used in scripts...I'll investigate further.
Thanks again TimA
Re: Orders and Deliveries
Removed the training deployment...and restarted tomcat --- no dice still errors inside the application
Restarted the PC -- no dice still errors inside the application..
Still not getting a transport dump...working on that
Re: Orders and Deliveries
According to this post, the property could be either:
or
Any output will go to the console (and captured by the catalina logs rather than the openvpms logs).
Re: Orders and Deliveries
I swear some sort of connection caching is occuring...2 days after a reboot and it all started working with no further tweaking...its like a naughty dog you just reprimanded...eventually it pops its head out of the kennel and starts to play nice!!....
Re: Orders and Deliveries
Ben, were there any stack traces in openvpms-full.log for the ESCIA-0004 and ESCIA-0005 error messages?