in below code Consignee Additional Details i am not able to get value according to address type in sales voucher consignee addr type selected according value should be added ;[#Part: LED Contact] [#Part: LED Contact Details] ;[#Part: LED Mailing Address] ;[#Part: Consignee Additional Details] ;[#Part: LED AddrTypeOtherDtls] Line : LED Whatsapp, LED City [Line: LED Whatsapp] ADD : Fields : your field1 Fields : Medium Prompt Local : Field : Medium Prompt : Set as : $$LocaleString:"Whatsapp no." [Field: your field1] Use : Name Field Storage : whatsappno Style : Small Bold Inactive : $$IsEmpty:#LEDMailingName Invisible : ##MVInMultiMode Skip : @@SkipMailingDetails [Line: LED City] ADD : Fields : your field2 Fields : Medium Prompt Local : Field : Medium Prompt : Set as : $$LocaleString:"City." [Field: your field2] Storage : Ledgercity Use : Name Field Style : Small Bold Inactive : $$IsEmpty:#LEDMailingName Invisible : ##MVInMultiMode Skip : @@SkipMailingDetails [#Part: LED AddrTypeOtherDtls] Line : LED Whatsappa, LED Citya [Line: LED Whatsappa] ADD : Fields : your field1a Fields : Medium Prompt Local : Field : Medium Prompt : Set as : $$LocaleString:"Whatsapp no." [Field: your field1a] Use : Name Field Storage : whatsappno Style : Small Bold [Line: LED Citya] ADD : Fields : your field2a Fields : Medium Prompt Local : Field : Medium Prompt : Set as : $$LocaleString:"City." [Field: your field2a] Storage : Ledgercity Use : Name Field Style : Small Bold [System: UDF] whatsappno : string : 2001 Ledgercity : string : 2002 [#Part: Consignee Additional Details] Line : EI ConsigneeWhatsapp, EI ConsigneeCity [Line: EI ConsigneeWhatsapp] ADD : Fields : EI ConsigneeWhatsapp Fields : Medium Prompt Local : Field : Medium Prompt : Set as : $$LocaleString:"Whatsapp no." [Field: EI ConsigneeWhatsapp] Use : Short Name Field Storage : $whatsappno:Ledger@VchSuppParty Set Always : Yes [Line: EI ConsigneeCity] ADD : Fields : EI ConsigneeCity Fields : Medium Prompt Local : Field : Medium Prompt : Set as : $$LocaleString:"City." [Field: EI ConsigneeCity] Use : Short Name Field Storage : $Ledgercity:Ledger:$AddressName Set Always : Yes
Code: In your field ---- Set as : If ($$InCreateMode OR ($$InAlterMode AND $$IsEmpty:$$Value)) AND NOT $$IsEmpty:@AddrType AND NOT $$IsSysNameEqual:Primary:@AddrType + Then @val01 Else If @@InvoiceInCreate Then @val02 Else $$Value AddrType : #EIPartyAddressType val01 : $(Ledger, $PartyName).LedMultiAddressList[1, @@PartySelectedAddrType].whatsappno val02 : $whatsappno:Ledger:$PartyName Set always : yes Also make this formula ---- [system : formula] PartySelectedAddrType : $AddressName = #EIPartyAddressType
thanks for your help its taking the value from [#Part: LED Contact Details] but not from [#Part: LED AddrTypeOtherDtls] if i change address type in consignee
[Part: LED Mailing Address] is for PRIMARY address. [Part: LED AddrTypeContactDetails] is for MULTI address. [Part: Supplementary Party Details] is during SALES voucher entry. Dunno about your data setup -- but using above, it works seamlessly.