Hi VinceIt's not that simple I'm afraid, each service runs in it's own context and you'd need to manually pass the parameter down through the chain of services that quick ship triggers. You'd be better off modifying the invoice separately once it's been created.
Regards Scott On 14/08/2009, at 2:46 AM, Vince Clark wrote:
I did that. I added an IN parameter to the quickShipEntireOrder definition, then added the new value to the in-map before calling the service. The value doesn't seem to be making it all the way to invoice generation.Vince Clark www.globalera.com vcl...@globalera.com (303) 493-6723 office (303) 523-4843 cell ----- Original Message ----- From: "Adrian Crum" <adri...@hlmksw.com> To: user@ofbiz.apache.orgSent: Thursday, August 13, 2009 8:33:13 AM GMT -07:00 US/Canada MountainSubject: Re: scope of parameters in the context You will need to change the service definition of the service being called, to accept the additional parameter. Then call the service with the additional parameter. -Adrian Vince Clark wrote:I have a custom simple method that loops thru a result set of orders in a legacy system and imports them into OFBiz. With each order I am first calling the storeOrder service, then quickShipEntireOrder.quickShipEntireOrder generates shipments, which triggers the generation of invoices. I would like to set a parameter in my simple method that is visible in the invoice generation code.Vince Clark www.globalera.com vcl...@globalera.com (303) 493-6723 office (303) 523-4843 cell
smime.p7s
Description: S/MIME cryptographic signature