WAYNE:
When CE is working on a shopping cart, the cart name needs to include the OPERATOR.
Modify LDLIB RPC$SHOPPINGCART_SAVE and RPC$SHOPPINGCARTITEM_SAVE (TIMELINE 15-1):
- Input: OPERATOR
- Modify both programs to append "*":OPERATOR when OPERATOR # ""
Wayne (timeline 15-4):
There will be a ce-only pullout drawer on each item in the active cart where ce can see and/or change:
- Display-only field of whether they should contact the customer with price discrepancies (this will someday become a checkbox for 'price discrepancy on this item' when we automate that part of the system). No backend logic is required here ... this is a customer preference that the UI knows about via CONTACT.READ info. Since this cannot be changed, there's no save required.
- 'No Overrun' - No backend logic is needed for the UI to display the preference (checked/unchecked) because this is part of the CONTACT.READ info. But if this data is changed, the flag needs to be set/unset on the quote:
- The UI will pass you setting in existing named param NOOVERRUN
- In LDLIB RPC$SHOPPINGCARTITEM_SAVE, update QUHDR.USR<5> (ALLOW.OVERRUN) - the field is defined backwards from the UI presentation. Avante expects a "1" in this field if overruns are allowed (this is the normal setting). A '0' in this field tells production that they cannot overrun this job. So if param NOOVERRUN comes back as true, set field 5 to "0". If false, set field 5 to "1". Note: You don't have to worry about locking the quote ... all quotes in the shopping cart are already locked.
- Make sure the NO.OVERRUN field gets transferred from QUHDR.USR to SOHDR.USR<19> when the quote is converted. I believe this logic should already be in place if QUOS4001.1 is being executed by the website.
6/17/14 - Make all shopping cart RPC's CE Operator Aware - (timeline 16-8):
Check the following programs for CE Operator logic. Update as needed. If param OPERATOR # "", add to SELECT or ID:
- RPC$SHOPPINGCARTITEM _GETBYFILTER
- RPC$SHOPPINGCARTITEM _GETBYID
- RPC$SHOPPINGCARTITEM _SAVE
- RPC$SHOPPINGCART_CHECKOUTENABLED
- RPC$SHOPPINGCART_CREATEORDER
- RPC$SHOPPINGCART_DELETE
RPC$SHOPPINGCART_GETBYFILTER*** Per John, do not change this program - this way CE will see contact's carts on the Shopping Cart Tab- RPC$SHOPPINGCART_GETBYID
- RPC$SHOPPINGCART_GETORDERVALUE
- RPC$SHOPPINGCART_QUICKSTOCKCHECK
- RPC$SHOPPINGCART_SAVE
- RPC$SHOPPINGCART_VALIDATECHECKOUTSTEP
- FCT.CART.STOCKVALUE
- FCT.CART.MODVALUE
- FCT.CART.PRICES
- WEB.CREATE.CUSTOMER
- WEB.LK
- RPC$SHIPMENTBUNDLING_GETBYFILTER
- RPC$MODITEM_VALIDATETOCART
- RPC$SHAREDCART_GETBYFILTER
- RPC$SHAREDCART_SAVE
- RPC$SHOPPINGCARTITEM_DELETE