[#Form:Comprehensive Invoice] Addption:Am invoice@isSales or @@isSalesOrder Or @@isCreditNote Add:Option : Am invoice : @@Cmpmailname Not Contains " SRI " [#Form:Simple Printed Invoice] Addption:Am invoice@isSales or @@isSalesOrder Or @@isCreditNote Add:Option : Am invoice : @@Cmpmailname Not Contains " SRI " [!Form:Am invoice] Delete : Part Delete : BottomPart Delete : Page Break Add : Part : RMTop1,RMTop2,RMTop3,RMTop4 Height : 100 % Page Width : 100 % Page Space Left : 2 MMS Space Right : 2 MMS ;;**************************************Top Part****************************** [Part : RMTop1] Lines : RMInvno [Line: RMInvno] Fields : Invno,INVdate [Field : Invno] ;Use : Name Field ;Set as : " No : "+$Vouchernumber Set as : if @@isSales then : " Invoice No : "+$Vouchernumber else + if @@isCreditNote then " Sales Return No : "+$Vouchernumber else + if @@isSalesOrder then " Qutotation No : "+$Vouchernumber else "" Style : Style12b Align : LEFT Width : 76 Space Left : 4 MMS [Field : INVdate] Use : Name Field Set as :"Date : "+$$String:$Date;:ShortDate Align : Right Width : 75 Space Left : 4 mms Style Style12b Please help me
IF yr Requirement Remove All parts in Simple Invoice and if u want to add your Parts Condition : If the company is not contains SRI AND VOUCHERTYPE=SALES or SALESORDER or CREDITCODE I am attaching updated the code.