Question is... How do I program the LE Job_Type0 field if it contains one of these words (SHOP,PM,INSTALL,PARTS, or SERVICE) then perform the task. Below is what I thought it should be but it does not function.
Can I program it so if it says (ESTIMATE) in LE Job_Type0 then don’t do this?
Thanks for any help.
If Job_Type0 = "SHOP;PM;INSTALL;PARTS;SERVICE" { If Loc1 = "Shop" { Xpost(@fn,brp_1,"BRPINV!brp_no",Qty1,"Shopqty","SUB") } Else If Loc1 = "Trk2" { Xpost(@fn,brp_1,"BRPINV!brp_no",Qty1,"truck_2","SUB") } Else If Loc1 = "Trk3" { Xpost(@fn,brp_1,"BRPINV!brp_no",Qty1,"truck_3","SUB") } Else If Loc1 = "Trk4" { Xpost(@fn,brp_1,"BRPINV!brp_no",Qty1,"truck_4","SUB") } }
|