Cannot post Cash ledger during sales entry

Discussion in 'Tally Developer' started by Partha Mondal, May 4, 2019.

    
  1. Partha Mondal

    Partha Mondal Member


    Dear All,

    I am new in TDL. I customized voucher (Sales). Actually I want when user enter make sales voucher then input Payment receiving details . for Example CASH / CARD etc.
    I already create this type of module but after saving the voucher payment receiving details not posting in Cash ledger.

    Please help me anyone.

    Sales Voucher TSPL-1.jpg
     


  2. Partha Mondal

    Partha Mondal Member


    /*
    ;; Sri Ganeshji : Sri Balaji : Sri Pitreshwarji : Sri Durgaji : Sri Venkateshwara

    TDL FOR VOUCHER MODIFICATION

    */

    [#Part : VCH narration]

    Option : Part PmntDtls

    [!Part : Part PmntDtls]

    Add : Line : At Beginning : Line PmntDtls
    Add : Line : After : Line PmntDtls : LineCash
    Add : Line : After : LineCash : LineBank
    Add : Line : After : LineBank : LineCard

    [Line : Line PmntDtls]

    Fields : TitlePmnt

    [Field : TitlePmnt]

    Use : Name Field
    Width : 50
    Align : Center
    Set as : "PAYMENT DETAILS"
    Skip : Yes
    Background : yellow

    [Line : LineCash]

    Fields : Simple Prompt, CollCash, FieldCashAmt
    Right Field : Short Prompt, Balance
    Local : Field : Simple Prompt : Info : $$LocaleString:"CASH Ledger "
    Local : Field : Short Prompt : Info : $$LocaleString:"BALANCE"

    [Field : Balance]
    Use : Amount Field
    Set as : #EIValueTotal - #FieldCashAmt - #FieldBankAmt - #FieldCardAmt
    Set Always : Yes
    Skip : Yes

    [Field : FieldCashAmt]
    Use : Amount Field
    Storage : TSPLVCHCash

    [Line : LineBank]

    Fields : Simple Prompt, CollBank, FieldBankAmt
    Local : Field : Simple Prompt: Info : $$LocaleString:"BANK Ledger "

    [Field : FieldBankAmt]
    Use : Amount Field
    Storage : TSPLVCHBank

    [Line : LineCard]

    Fields : Simple Prompt, CollCard, FieldCardAmt
    Local : Field : Simple Prompt: Info : $$LocaleString:"CREDIT CARD Ledger "

    [Field : FieldCardAmt]
    Use : Amount Field
    Storage : TSPLVCHCard


    [Field : CollCash]

    Use : Name Field
    Table : ExtractCash
    Show Table : Always
    Width : 10
    Storage : CashLed


    [Field : CollBank]

    Use : Name Field
    Table : ExtractBank
    Show Table : Always
    Width : 10
    Storage : BankLed

    [Field : CollCard]

    Use : Name Field
    Table : ExtractBank
    Show Table : Always
    Width : 10
    Storage : CardLed

    [Collection: ExtractCash]

    Use : Extract Alias Collection
    Source Collection : LedgersVch Src
    Collections : Notapplicable
    Title : $$LocaleString:"List of Ledger Accounts "
    Parm Var : GroupCash : String : $$GroupCash
    Native Method : Name, Parent, ReserveName
    Keep Source : ().
    Client Only : Yes
    Filters : IsCashAccountVchRE, ClassFilter

    [Collection: ExtractBank]

    Use : Extract Alias Collection
    Source Collection : LedgersVch Src
    Collections : Notapplicable
    Title : $$LocaleString:"List of Ledger Accounts"
    Parm Var : GroupBank : String : $$GroupBank
    Parm Var : GroupBankOD : String : $$GroupBankOD
    Native Method : Name, Parent, ReserveName
    Keep Source : ().
    Client Only : Yes
    Filters : IsBankAccountVchRE, ClassFilter

    [System : UDF]

    TSPLVCHCash : Amount : 38000
    TSPLVCHBank : Amount : 38001
    TSPLVCHCard : Amount : 38002
    CashLed : String : 38003
    BankLed : String : 38004
    CardLed : String : 38005
     


  3. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    you want the values from Sales Voucher to be available in receipt voucher???
     


  4. Partha Mondal

    Partha Mondal Member


    Yes sir. I want to values from Sales Voucher to be available in receipt voucher & create receipt voucher automatically.
     


  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    so where is your code for that???

    In above code, there is nothing wrong.........

    You will need to write a function to pass auto entry.

    There is a TDL available on this forum for "Auto payment" .... search and find it and then modify it for use in auto receipt.
     


Share This Page