Problem While Sending SMS in receipt Voucher

Discussion in 'Tally Developer' started by sakthivel, Oct 27, 2016.

    
  1. sakthivel

    sakthivel New Member


    Dear Experts

    Kindly rectify the issue,

    Can not pick up the Cheque Number From Bank Allocation when creating receipt Voucher

    Kindly enable Formal Voucher Mode in Voucher creation

    Herewith i have attached images.

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Ledger Mobile No
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [#Part: DBLLine Narration]

    Add : Line : Before : VCH NarrPrompt : VCH ReceiptMobile
    Add : Line : Before : VCH NarrPrompt : VCH AmtRcpt
    Add : Line : Before : VCH NarrPrompt : VCH ChNo
    Repeat : VCH ChNo: Bank Transaction Details

    [Line:VCH ReceiptMobile]

    Fields : Short Prompt, VCH ReceiptMobile
    Local : Field : Short Prompt : Info : $$LocaleString:"Payer Mobile No :"
    Local : Field : Short Prompt : Width : 15
    Invisible : Not @@isReceipt

    [Field: VCH ReceiptMobile]
    Type : String: Forced
    Fixed : Yes
    Skip : Yes
    Width : @@LongWidth
    Max : @@MaxNarrWidth
    Storage : VCHMobileNo
    Set as : $LedgerMobile:Ledger:$BasicVoucherChequeName
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Receipt Amount
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [Line:VCH AmtRcpt]

    Fields : Short Prompt, VCH AmtRcpt
    Local : Field : Short Prompt : Info : $$LocaleString:"Receipt Amount :"
    Local : Field : Short Prompt : Width : 15
    Invisible : Not @@isReceipt

    [Field: VCH AmtRcpt]
    Type : String: Forced
    Fixed : Yes
    Skip : Yes
    Width : @@LongWidth
    Max : @@MaxNarrWidth
    Storage : VCHAmtRcpt
    Set as : $$FilterAmtTotal:AllLedgerEntries:CashBankEntries:$Amount
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;Cheque Number
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [Line:VCH ChNo]

    Fields : Short Prompt, VCH ChNo
    Local : Field : Short Prompt : Info : $$LocaleString:"Cheque No :"
    Local : Field : Short Prompt : Width : 15
    Invisible : Not @@isReceipt

    [Field: VCH ChNo]
    Type : String: Forced
    Fixed : Yes
    Skip : Yes
    Width : @@LongWidth
    Max : @@MaxNarrWidth
    Storage : VCHchno
    Set as : $TransactionChequeNo

    [System: UDF]
    VCH Mobile No : String: 1001
    VCHAmtRcpt : String: 1002
    VCHChNo : String: 1003

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;SMS Part
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [#Form: Receipt Color]
    Add : On : At End :Form Accept : Yes : Call : PayerMobileNo

    [Function: PayerMobileNo]

    001 : Query Box : "DO YOU WANT TO SENT SMS?" : Yes : No
    002 : If : $$LastResult
    003 : Msg Box : "STATUS" : @@recpmsg2
    004 : Return
    005 : End If

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [System:Formulae]
    mobileno :$VCHMobileNo
    VchAmtSMS :$VCHAmtRcpt
    VchChNoSMS :$VCHchno
    recpmsg2 : "Thanks for your Payment of Rs."+@@VchAmtSMS+" by Ch.No.:"+@@VchChNoSMS+" It has been credited to your A/c. Subject to realisation.- Shine V"

    [​IMG]
    [​IMG]
     



  2. check with $InstrumentNumber
     


  3. NAGARAJKMAR SUBRAMANIAN

    NAGARAJKMAR SUBRAMANIAN Active Member


    Try This Sakthivel,

    ($AllLedgerEntries[Last].BankAllocations[1].InstrumentNumber)

    or

    ($AllLedgerEntries[1].BankAllocations[1].InstrumentNumber)

    Based on Single Entry Mode/ Voucher Mode
     


Share This Page