AnsweredAssumed Answered

Case

Question asked by Kirk_1 on Aug 11, 2012
Latest reply on Aug 13, 2012 by philmodjunk

Title

Case

Post

Im using the case statement below.

For this example $class1 = 55.

Because im using 55, this should return the data in Discounts::DCClass55.

It does not, Why?

  • Set Variable [ $class1; Value:Quote Description::DTClass1 ]
  • Set Variable [ $class2; Value:Quote::QTClass2 ]
  • Set Variable [ $class3; Value:Quote::QTClass3 ]
  • Go to Layout [ “Discounts FAK and Assessorial ” (Customer) ]
  • Go to Field [ Discounts::DCCass50_ ]
  • Set Variable [ $fak1; Value:Case ( Quote::QTClass1 ="50" ; Discounts::DCCass50_ = $fak1 ; Quote::QTClass1 ="55" ; Discounts::DCClass55_ = $fak1 ; Quote::QTClass1 ="60" ; Discounts::DCClass60_ = $fak1 ; Quote::QTClass1 ="65" ; Discounts::DCClass65_ = $fak1 ; Quote::QTClass1 ="70" ; Discounts::DCClass70_ = $fak1 ; Quote::QTClass1 ="77" ; Discounts::DCClass77.5_ = $fak1 ; Quote::QTClass1 ="85" ; Discounts::DCClass85_ = $fak1 ; Quote::QTClass1 ="92" ; Discounts::DCCLass92.5_ = $fak1 ; Quote::QTClass1 ="100" ; Discounts::DCClass100_ = $fak1 ; Quote::QTClass1 ="110" ; Discounts::DCClass110_ = $fak1 ; Quote::QTClass1 ="125" ; Discounts::DCClass125_ = $fak1 ; Quote::QTClass1 ="150" ; Discounts::DCClass150_ = $fak1 ; Quote::QTClass1 ="175" ; Discounts::DCClass175_ = $fak1 ; Quote::QTClass1 ="200" ; Discounts::DCClass200_ = $fak1 ; Quote::QTClass1 ="225" ; Discounts::DCClass225_ = $fak1 ; Quote::QTClass1 ="250" ; Discounts::DCClass250_ = $fak1 ; Quote::QTClass1 ="300" ; Discounts::DCClass300_ = $fak1 ; Quote::QTClass1 ="400" ; Discounts::DCClass400_ = $fak1 ; Quote::QTClass1 ="500" ; Discounts::DCClass500_ = $fak1 ; ) ]

Outcomes