Laddawn.com : Programming Specs-Checkout Bundling Validations/Defaults

STEP.NBR = 2 Shipping & Packaging (Bundling)

Add the following validations for Ship Date, Freight Terms and Ship Via to LDLIB RPC$SHOPPINGCART_VALIDATECHECKOUTSTEP for the Shipping & Packaging screen (step 2).  Note:  Some of this logic can be found in current LDLIB RPC$VALIDATECHECKOUTSTEP for CHECKOUT.STEP=2.  This logic will be executed only when user clicks 'save & continue'

  • Ship Date:
    • Don't need shipto # ASAP logic - we won't use this going forward
    • Keep Maximum Days in future logic (from SYSCON)
    • Keep check for 'Non Shipping Day' logic
    • Make sure date isn't < current bundle date
  • Freight Terms:
    • if Ship Via = CPU then Freight Terms must also be CPU
    • If Ship Via = BW then Freight Terms can't be CPU
    • If zip code outside of continental U.S., can't be PPD
    • If the Cart Stock  ItemTotal < $500 - can't be PPD.  To calculate the total$ for all stock items in the cart:
      • create new program FCT.CART.STOCKVALUE using LD.INCLUDES SHOPPINGCARTITEM.READ as a starting point.  This new program will be a global program that can be called from anywhere.  This process must only look at stock items in the shopping cart (Quote# in SHOPPINGCART.USR<6>='') so change the logic for variable TOTAL.ITEMS (which currently sums the shopping cart qtys).
    • If Freight Terms = COL, freight account# is required
    • If Freight Terms = 3PB, freight account & freight billing address are required 
  • Ship Via:
    • If Laddawn is paying (PPD), ship via must be "BW" except when authorized CE person, who can override
    • If Ship Via = "TR", the trucker name is required
    • Do we need validation based on bundle weight (ie, > xxx lbs cannot go small package)???  Make sure lbs are in a table somewhere.
 
04/14/14 - DEFAULTS:
  • Ship Date: Shouldn't need a default.  This date is determined by the user, and must be > the current bundle date
  • Freight Terms:
    • If MOD Bundle, default to Paid by Laddawn (PPD) if Frt Option = Included else default to Paid by Customer (P&A)
    • If Stock Bundle and the Total of all Stock Items in the Cart >= $500, default to Paid by Laddawn (PPD) else default to Paid by Customer (P&A)
    • If Cart is defined as Customer Pick Up, default to "CPU"
    • What if customer currently has a default FOB Code (ie, COL) - do we have a customer preference for this?
  • Ship Via:
    • If Freight Terms are PPD (Paid by Laddawn), default to "BW"
    • If Freight Terms are CPU (customer pickup), default to "CPU"
    • If Freight Terms are P&A, 3PB or COL (paid by customer), default to customer's carrier preference.  If none, default to "BW"