We wanted to make it easier to finish an Estimate or Order by having Cyrious automatically fill in the details in the description line which would create more consistent and understandable results. With several people creating Estimates and Orders, we had a motley variety of descriptions of line items whereas a good description makes a much more readable and understandable estimate and work order for others to follow.
The concept was to pull data from the variables in the pricing form to construct a description line which will work most of the time without additional editing.
This is low risk code. If it's messed up, it won't do any harm. You'll just have to enter descriptions the old fashioned way.
IF Del_CustomerPickup_YN and CallWhenReady THEN "Call When Ready; Customer Will Pick Up"
ELSEIF Del_CustomerPickup_YN THEN "Customer Will Pick Up"
ELSEIF CallWhenReady THEN "-Call When Ready"
ELSEIF commercialshipper THEN "Ship Via Commercial Carrier"
ELSEIF DisplayModifierValue("StandardUPS") = "Yes" THEN "Ship Standard UPS"
ELSEIF DisplayModifierValue("UPS") = "Yes" THEN "Next Day Air"
ELSEIF DisplayModifierValue("USMAIL") = "Yes" THEN "Ship Using US Mail"
ELSEIF DisplayModifierValue("Overnight-Rush") = "Yes" THEN "Ship 2 Day Air"
ELSEIF DisplayModifierValue("Deliver") = "Yes" THEN "Acorn Will Deliver"
ELSEIF DisplayModifierValue("UPS3DayAir") = "Yes" THEN "UPS 3 Day Air"
ELSEIF UseCustomerCarrier THEN "USE CUSTOMER's CARRIER: " + CustomerCarrier
ELSEIF givetosalesperson THEN "Give To :" + TransHeader.Salesperson1.FirstName +" "+ TransHeader.Salesperson1.LastName
ELSE "Ship As Indicated"
ENDIF
<code>
Contributor: Steve Gillispie, Acorn Sign Graphics Date: 07/11/2009 Version: Control 4.3