Free Code : Whatsapp From Tally

Discussion in 'Free Source Codes' started by Jay kumar tailor, May 14, 2019.

         
  1. lavneet

    lavneet New Member


    How?
     


  2. Bhupesh Jain

    Bhupesh Jain New Member


    closing balance of ledger does not come.kindly guide.
     


  3. Jay kumar tailor

    Jay kumar tailor Active Member


    $Closingbalance:Ledger:$Ledgername
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Make a button to save the report in PDF file ( you will have to make a function) (similar exists on this forum, which you can modify).
    In the above ...save the file name as a UDF.....

    make another function to send that file ( as per predefined path and filename) to the mobile number. ( Tally to whatsapp TDL also existing in this forum)

    You can make use of the same and modify as per your requirement.

    So in one button, you can export the report to PDF file via one function and then through second function....send that file to the mobile number recipient.
     


  5. Vikram Bhat

    Vikram Bhat Member



    Sir i Am Try Sales Invoice Export but Not attach Export file to send Can You Please Check This One

    Code:
    [#Form: Sales Color]
        Add : Button : WhatsApp
        On: Form Accept: $$InAlterMode: CALL: SALES Export Report
        On: Form Accept: $$InCreateMode: CALL: SALES Export Report
        On : Form Accept: @@IsSales : CALL : onformaccept
    
    [Button: WhatsApp]
        Option : SalesjayA : $$IsSales:##SVVoucherType
    
    [!Button: SalesjayA]
        Key : Alt + W
        Action : Browse URL : "http://web.whatsapp.com/send/?Phone=" + @@mobileno+ +"&text=" + @@Linemsg + @@SVPrintFileName   
    
    
    [Function:onformaccept]
        10 : QUERYBOX : "Whatsapp To Customer For Invoice Details ?" : Yes:No
        20 : IF : $$LastResult
        30 : CALL : whatsappstring
        40 : ENDIF
    
    [Function: whatsappstring]
        00 : Browse URL     :   "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg + @@SVPrintFileName   
    
    
    [Function: SALES Export Report]
        20: Set: SVExportFormat : $$SysName:PDF
        30: Set: SVPrintFileName: $$String:$PartyLedgerName + "_" + $$String:$vouchernumber + "_" + $$String:$Vouchertypename 
        40: Set: SVPrintFileName: $$MakeExportName:##SVPrintFileName:##SVExportFormat
        50: Set: SVOpenFileAfterExport: No
        60: Export Report:. : TRUE
        80: Set: SVExportFormat: $$IsSysNameEqual:English:#DSPExportLanguage
    
    [System: UDF]
        SVPrintFileName        : Logical : 1600
    
     


  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Other experts in Functions will help you.... as I do not understand much on functions.

    Also it will help if you can specify at what point your code is not working OR at what line Number your function is stopping.

    Not everyone has time to load your code and find the cause...... you also need to help the experts in this.
     


  7. lavneet

    lavneet New Member


    Please
     



  8. [#Form: Sales Color]

    On: Form Accept: $$InAlterMode: CALL: SALES Export Report
    On: Form Accept: $$InCreateMode: CALL: SALES Export Report
    On : Form Accept: @@IsSales : CALL : onformaccept
    [Function: SALES Export Report]
    20: Set: SVExportFormat : $$SysName:pDF
    30: Set: SVPrintFileName: $$String:$PartyLedgerName + "_" + $$String:$vouchernumber + "_" + $$String:$Vouchertypename
    40: Set: SVPrintFileName: $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set: SVOpenFileAfterExport: No
    60: Export Report:. : TRUE
    80: Set: SVExportFormat: $$IsSysNameEqual:English:#DSPExportLanguage
    [System: UDF]
    SVPrintFileName : Logical : 1600

    [Function:eek:nformaccept]
    10 : QUERYBOX : "Whatsapp To Customer For Invoice Details ?" : Yes:No
    20 : IF : $$LastResult
    30 : CALL : whatsappstring
    40 : ENDIF

    [Function: whatsappstring]
    ;00 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg2 + "&Attach file="+##SVPrintFileName;@@svprint;#SVPrintFileName ;@@svprint
    00 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg2 +##SVPrintFileName ;+ "&uploaded="+##SVPrintFileName;@@svprint;#SVPrintFileName ;@@svprint
    [System: Formula]
    Clbalance :$$String:mad:@clbs:"DrCr"
    clbs:$Closingbalance:Ledger:$ledgername
    Mobileno :$$String:"91" + $Ledgermobile:Ledger:$Ledgername
    jkskr: $Vouchertypename
    svprint:$SVPrintFileName
    Linemsg2 : "Dear%20Customer%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amt%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"%20has%20been%20Generated.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbs;+"%20Regards%20"+$$String:mad:@CMPMailName













    ;;;; according to this code all thing are working fine bt main problem is that it will not attach the export file in msg
     


  9. Vikram Bhat

    Vikram Bhat Member


    Yes Export file Not Attachment
     
    Last edited: Aug 28, 2019


  10. lavneet

    lavneet New Member


    Please do required changes
     


  11. hprahul

    hprahul Member


    On studying APIs of WhatApp, I found a correction to the code above

    Code:
    00 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg2 + "&source="+##SVPrintFileName
    
    May be this should work or

    Code:
    00 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg2 +"&data="+##SVPrintFileName
    
    this could work...
     



  12. NOT WORKING
     


  13. teja varma

    teja varma Active Member


    we completed the ftp project reach me at varma@apploops.com i will guide you for uploading to ftp if you want
    i dont want to post here as we put a lot of efforts to make those things work
     


  14. Amita Rajanni

    Amita Rajanni New Member


    how to attach local file in whatsapp web through tdl
     


  15. teja varma

    teja varma Active Member


    whats-app doesn't allow to send attachments via URL.
    you must have an API to send attachments by uploading to a server and then to whats-app.
     


  16. Amita Rajanni

    Amita Rajanni New Member


    then what should be the TDL for attaching document through any server?
     


  17. teja varma

    teja varma Active Member


    with TDL alone you cannot achieve this.
    in TDL we just need to export/upload the voucher/report to the server.
    its already there in forum you can search for it.
    but main aspect to send that invoice to the receiver whats-app for that you need to call the API by mentioning receiver's mobile number and title/message , link to the uploaded invoice. this should be done at your server side (for this you need an API from whats-app)
     


  18. Amita Rajanni

    Amita Rajanni New Member


    Thank You Sir...
     


  19. MithunN

    MithunN Member


    Sir can you guide me how can i do this one?
     


  20. love

    love New Member


    can we send whatsapp to a selected ledger in a report i tried but mobile no. is not reading


    [Button : luvbotton1]
    Title : "whatsapp"
    Key : Alt + W
    Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ + "&text=" + @@lovemsg4
    Scope : Selected Line
    Type: ledger
     


  21. teja varma

    teja varma Active Member


    did you have the whats-app API
     


  22. teja varma

    teja varma Active Member


    what is the formula defined for @@mobileno and from which screen you are using that button
    post the full code for analysis
     


  23. akj_om

    akj_om New Member


    I want to add original invoice no. , chq no. Bank name in receipt
    Please guide
     


  24. love

    love New Member


    i have used the same code of @Jay sir and extended /used it in trial balance and also in a outstanding report created by me and used select to focus on single selected ledger
     


  25. teja varma

    teja varma Active Member


    the method will be different in different reports
    so identify the method name of ledger name in ledger report and get contact number
     


Share This Page