I have created ledger under sundry debtors so when enter details in sales voucher and print the name & address comes now the problem start when the same we enter as purchases that particular ledger the tax invoice when printed it show our name instead of Party name now that i managed but Address comes in multiple lines image attached can anyone help to resolve the same. below is my coding but it is not working ....... [Line : ABuyer] Field : Simple Field Local : Field : Simple Field : Set As : If ##SVVouchertype = "Sales - GST" then " M/s. " + $BuyerName Else " M/s. " + $PartyLedgerName Local : Field : Simple Field : Style : Normal Bold Local : Field : Simple Field : FullWidth : Yes [Line : ABuyAdd] Field : Simple Field Local : Field : Simple Field : Set As : If ##SVVouchertype = "Sales - GST" then $BuyerAddress Else $Address Local : Field : Simple Field : Style : Normal Local : Field : Simple Field : FullWidth : Yes
You should try like this Code: Local : Field : Simple Field : Set As : If ##SVVouchertype = "Sales - GST" then $$FullList:Address:$BuyerAddress Else $$FullList:Address:$Address Regards
if you don't want Address in Single Line, than have to Add Repeat Line with Address Collection and Set as in your field only with MethodName
Thanks HVPatel but this what i use is in printing invoice, when $BUYERADDRESS works it print it properly but $ADDRESS not work in print in one line but do not split like $BUYERADDRESS can any body suggest how to go about.