Dear experts & forum members I have added two fields in pos invoice voucher for party name and mobile number. I am able to create ledger using function. but i am unable to feed the same value in field "VCH POS PartyContact". here is my code: Code: [#Line: VCH POS PartyContact] Add: Field: At End: JNameTitle Add: Field: At End: JNameField Add: Field: At End: JMobileTitle Add: Field: At End: JMobileField [Field: JNameTitle] Background: yellow Info : "Name : " Width: 15 [Field: JMobileTitle] Background: yellow Info : "Mobile : " Width: 15 [Field: JNameField] Background : yellow Use : Name Field Width : 25 Style: thin cover Add: Set By Condition: (@@IsPOSInvoice AND (NOT($$IsEmpty:$PartyName OR $$IsSysNameEqual:NotApplicable:$PartyName))): $PartyName Add: Set By Condition: ($$IsEmpty:$PartyName OR $$IsSysNameEqual:NotApplicable:$PartyName) : "" Set Always: Yes Skip on: not ($$IsEmpty:$PartyName OR $$IsSysNameEqual:NotApplicable:$PartyName) ;not (##VCHPOSPartyContact contains "not applicable") [Field: JMobileField] Use : Number Field Format: "NoComma,NoDecimals" Style: thin cover Background: yellow Width : 25 Set Always: Yes Skip on: not ($$IsEmpty:$PartyName OR $$IsSysNameEqual:NotApplicable:$PartyName) ;not (##VCHPOSPartyContact contains "not applicable") On: Accept: Yes: Call: ceateledger On: Accept: Yes: Field Accept [Variable: iname] Type: String [System:Variable] iname: "" [Function : ceateledger] ;Variable: iname: String 001: Set: iname : #JNameField + " " + $$String:#JMobileField 002: If: Not $$IsEmpty:##iname ;Query Box: ##iname: Yes:NO ; 003: New Object: Ledger : ##iname : Yes 004: Set Value: Name : ##iname 005: Set Value: Parent : "SHOP CUSTOMER" ; 006: Set Value: GSTRegistrationType : "Unregistered/Consumer" 007: Set Value: LedgerMobile: $$String:#JMobileField ; 008: Set Value: StateName: "Gujarat" 009: Set Value: CountryofResidence: "India" ; 010: Set Value: LedgerPhone: $$String:#JMobileField 198: Create Target 199: Msg Box: "Ledger Creation": ("Ledger Creation Successful - " + ##iname ) 200: End If 201: Set Value: Partyname : ##iname please help... PS this is my fisrt post & i dont know forum rules & regulations so if any mistake from my side please ignore
no need to close the Thread / Topic --- we will close if the Post or Thread is offensive or against the Forum rules. All Post / Threads can help the new coders in future or as a reference point.