pjohns
4th January 2013, 12:26
Hello,
I'm sure this will be very easy to solve for you experts.
I have a case statement which checks the company number from which a document is printed from. If company = 208 and the document type = 210 then select a layout. If the document type <> 210 then use default layout.
If company <> 208 then use other case statement.
I am printing from company 208, document <> 210 so I would expect the STD-IRE-MS.pdf and TAC-SALE.pdf to be used. But this is being ignored and going to the case "MAC" section.
fd.back = ""
fd.tac = ""
fd.stamp =""
on case comp
case 208:
|* Layout for 208 PO
on case i.doct
case 210: |*Purchase Order
fd.back = "PUR-MSL.pdf"
fd.tac = "TAC-PUR.pdf"
break
default: |* Sales Layouts
fd.back = "STD-IRE-MS.pdf"
fd.tac = "TAC-SALE.pdf"
break
endcase
break
endcase
on case i.cotp
case "MAC":
fd.back = "STD-UK.pdf"
fd.tac = "TAC-SALE.pdf"
Thanks in advance
PJ
I'm sure this will be very easy to solve for you experts.
I have a case statement which checks the company number from which a document is printed from. If company = 208 and the document type = 210 then select a layout. If the document type <> 210 then use default layout.
If company <> 208 then use other case statement.
I am printing from company 208, document <> 210 so I would expect the STD-IRE-MS.pdf and TAC-SALE.pdf to be used. But this is being ignored and going to the case "MAC" section.
fd.back = ""
fd.tac = ""
fd.stamp =""
on case comp
case 208:
|* Layout for 208 PO
on case i.doct
case 210: |*Purchase Order
fd.back = "PUR-MSL.pdf"
fd.tac = "TAC-PUR.pdf"
break
default: |* Sales Layouts
fd.back = "STD-IRE-MS.pdf"
fd.tac = "TAC-SALE.pdf"
break
endcase
break
endcase
on case i.cotp
case "MAC":
fd.back = "STD-UK.pdf"
fd.tac = "TAC-SALE.pdf"
Thanks in advance
PJ