In prime 4.0 the create ledger function is not storing address, country and state names. The coding style of 4.0 has changed. Please help Code: [Function:CreateLedgers] Action:100 : New Object : Ledger : #DLEDonarName : Yes Action:101 : SET VALUE : Name : #DLEDonarName Action:102 : SET VALUE : Parent : #DonorParent Action:103 : SET VALUE : CountryName : #DLEDonarCountry Action:114 : DO IF : (Not $$IsEmpty:#DLEDonarState) : SET Value : LedStateName : #DLEDonarState;##vLEDState Action:140 : IF : Not $$IsEmpty:#DLEDonarAddress Action:141 : Insert Collection Object : Address Action:142 : SET Value : Address: #DLEDonarAddress Action:143 : SET Target : .. Action:144 : End IF
Try this way Code: [Function:CreateLedgers] 100 : New Object : Ledger : #DLEDonarName : Yes 101 : SET VALUE : Name : #DLEDonarName 102 : SET VALUE : Parent : #DonorParent 103 : Insert Collection Object : LEDMAILINGDETAILS 104: Set Target:LEDMAILINGDETAILS 105:SETVALUE:APPLICABLEFROM:@@BooksFromDate 106 : SET VALUE :pINCODE : "Your Value" 107 : SET VALUE :MAILINGNAME:#DLEDonarName 108 : SET VALUE :STATE :#DLEDonarState 109: SET VALUE :COUNTRY :#DLEDonarCountry 110 : Insert Collection Object : Address 111 : If:NOT $$isempty:#DLEDonarAddress 112 : SET VALUE : Address : #DLEDonarAddress 113 : END IF 114 : Set Target:..