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. CHANDRESH GAUR

    CHANDRESH GAUR New Member


    [#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. CHANDRESH GAUR

    CHANDRESH GAUR New Member


    NOT WORKING
     


  13. teja varma

    teja varma 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
     


Share This Page