I like what Chris proposes, but I think that by default we should ask - and maybe we have another service OOTB that does this type of process flow.
Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 On May 18, 2007, at 1:13 PM, Chris Howe wrote:
How about this alternative.Don't ask the customer. The first time we have an address ask UPS whatit is and store that value for next time. or Ask the customer Ask UPS Compare If match store value If !match && UPS says commercial store - store commercial If !match && UPS says residential, inform customer - store residential --- David E Jones <[EMAIL PROTECTED]> wrote:Between the options of adding a field to PostalAddress and passing it to the service, I definitely like the added field better (once we ask the customer we might as well remember it and not ask again, or not have the info later). Chris is right that UPS will do what they will anyway, but many companies probably still want to ask the customer to hopefully get it right. BTW, if our current default is commercial we should definitely change that to default to residential as that is the "safer" choice to avoid charges when it really is a residential instead of a commercial address. -David Tim Ruppert wrote:What does everyone else think? Any issues with this? Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 On May 18, 2007, at 11:17 AM, Anil Patel wrote:The two methods are refactored to the point where upsRateInquirecallsupsRateEstimateByPostalCode. The parameter set of upsRateInquireiscontrolled by calcShipmentEstimateInterface which does not have isResidentialAddress flag. As you have mentioned, even if we add this attribute to serviceinterface.Order create / invoice and for future reference we'll need toremember whysomebody was pricing is different. In order to consistently getgoodshipping estimate we will have to remember value of this flagbeyond userweb session. +1 for adding some kind of attribute to Postal Address to be able torememberthis. Regards Anil On 5/18/07, Tim Ruppert <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:Anil, I remember when this feature was added to the upsRateInquireByPostalCode method. Last I remember I thoughtthatthese two methods were refactored to clean up the code redundancy, so the isResidential flag would have been still used right? Now, your question appears to be a bit different in that you arelookingfor a way to store the isResidential flag on the Postal Addressin somemanner. My vote would be to either extend the PostalAddress ortojust pass this information along in the cart process that you're workingon.Is this a flag everyone would like to see supported by default inOFBiz?Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 On May 18, 2007, at 11:04 AM, Anil Patel wrote: Hi, There is noticeable difference in shipping estimate (definitelyin caseof UPS) if Postal Shipping address is ResidentialAddress or Not.Shippingestimate services (other then upsRateInquireByPostalCode) don'taccountfor this attribute when request is sent. In case of UPS this alwaysdefaultsto commercial. What is best to do in this case? Should we add an attribute toPostaladdress, a flag that tells me if the address isResidentialAddress. Orthere is some other better option to handle this. Regards Anil Patel
smime.p7s
Description: S/MIME cryptographic signature
