Free Code : Whatsapp From Tally

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

         
  1. Jay kumar tailor

    Jay kumar tailor Active Member


    hi Everyone,
    Enjoy This Code.........


    This One Has Capabilities For Text Message Through Whatsapp web For Ledger Number Feeded In Ledger Master.
    (purchase,sales,receipt,payment)
    Condition:-
    Feed Mobile numbers without Country code If India.
    Feed Mobile numbers with country with Countrycode (without any symbol) If Outside/abroad.
    and use second condition (remove semicolon)
    Like:- +972356987321 Will be 972356987321



    [System: Formula]
    Clbalance :$$String:mad:@clbs:"DrCr"
    clbs:$Closingbalance:Ledger:$ledgername
    Mobileno :$$String:"91" + $Ledgermobile:Ledger:$Ledgername
    jkskr: $Vouchertypename
    ;;Mobileno :$Ledgermobile:Ledger:$Ledgername ;;When You Feed Countrycode Alongwith Mobile Number Without Symbol




    Linemsg : "Dear%20Customer%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"%20has%20been%20Generated.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"%20Regards%20"+$$String:mad:@CmpMailName

    Linemsg1 : "Dear%20Supplier%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"%20has%20been%20Credited.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"%20Regards%20"+$$String:mad:@CmpMailName

    Linemsg2 : "Dear%20,"+$$String:$Ledgername+"%20Your%20"+$$String:mad:@jkskr +"%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"%20has%20been%20Credited%20In%20Your%20Account.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"%20Regards%20"+$$String:mad:@CmpMailName

    Linemsg3 : "Dear%20,"+$$String:$Ledgername+"%20Your%20"+$$String:mad:@jkskr +"%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"%20has%20been%20Debited%20In%20Your%20Account.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"%20Regards%20"+$$String:mad:@CmpMailName
    ; [Collection : Ledmobilewhatsapp]
    ;Fetch : Ledgermobile, Ledgername,Vouchernumber,Partyledgername, Closingbalance,vchtypename



    [#Form: Sales Color]
    Add : Button : WhatsApp


    [Button: WhatsApp]
    Option : SalesjayA : $VoucherTypeName="Sales"

    [!Button: SalesjayA]
    Key : Alt + W
    Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg


    [#Form: Purchase Color]
    Add : Button : WhatsApp1
    [Button: WhatsApp1]
    Title : "Whatsapp"
    Option : SalesjayA1 : $VoucherTypeName="Purchase"

    [!Button: SalesjayA1]
    Key : Alt + W
    Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg1



    [#Form: Receipt Color]
    Add : Button : WhatsApp2
    [Button: WhatsApp2]
    Title : "Whatsapp"
    Option : SalesjayA2 : $VoucherTypeName="Receipt"

    [!Button: SalesjayA2]
    Key : Alt + W
    Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg2

    [#Form: Payment Color]
    Add : Button : WhatsApp3
    [Button: WhatsApp3]
    Title : "Whatsapp"
    Option : SalesjayA3 : $VoucherTypeName="Payment"

    [!Button: SalesjayA3]
    Key : Alt + W
    Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Linemsg3
     
    Last edited: May 14, 2019
    nasir, lumos, sattam and 1 other person like this.


  2. ONKAR

    ONKAR Member


    very good sir , but alos send pdf invoice send also , it is possible
     


  3. sattam

    sattam Active Member


    is it possible to send automatically instead of manually click send from whatsaap web
     


  4. Jay kumar tailor

    Jay kumar tailor Active Member


    It takes as a parameter. Will see
     


  5. ONKAR

    ONKAR Member


    is it possible with also send an invoice in pdf, jpg format with this text format also.
     


  6. nasir

    nasir Member


    kindly give example whre i should feed the mobile number plzzzzz
     


  7. nasir

    nasir Member


    kindly guide me plzzzz
     


  8. lumos

    lumos New Member


    I think you should be logged in whatsapp web. The mobile numbers are picked up automatically from ledgers.
     


  9. nasir

    nasir Member


    can this code will work in 9.1.1
     


  10. lumos

    lumos New Member


    I think you are using cracked version of tally. There's 70% chance it might not.
     


  11. nasir

    nasir Member


    its ok
     


  12. ONKAR

    ONKAR Member


    hi Jay sir, this code is working fine, but only send a text message, is it possible with send invoice also in pdf or jpg format, please reply.
     
    nasir likes this.


  13. nasir

    nasir Member


    how it work guide me
     


  14. ONKAR

    ONKAR Member


    @nasir First you have an update or buy or rent latest tally software from tally solution, and then try this tdl, it's working fine in the latest version [ 6.5.1 ] so please note this point.
     


  15. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    So it is working in Tally18.... great news.

    From where you got the Tally 18 demo version......any limitations?
     


  16. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Good Idea....fine utility.
     


  17. dkp_jal

    dkp_jal Member


    Its Working but error in Closing Balance & Regards MAD text display.

    Dear Customer ,Your Invoice No: SM /0170, Amount 10,010.00 Date 14-May-2019 has been Generated. Your Closing Balance Is mad Regards mad

    Plz check
     


  18. Vikram Bhat

    Vikram Bhat Member


    How can send msg two mobile no in that
     


  19. Vikram Bhat

    Vikram Bhat Member


    :mad. Change to @
     


  20. Bipin Damania

    Bipin Damania Member


    Dear Jay Kumar

    This is Too Good....

    Thank you very much for sharing...

    Keep Posting & Educating...
     


  21. Jay kumar tailor

    Jay kumar tailor Active Member


    We Can Replace Details as Requirement

    For Tax Details
    Igst,Sgst,Cgst,Cess


    ======Add This To System Formulas Section===========

    JKDISCO :$$FilterAmtTotal:LedgerEntries:DISCOSKR:$Amount
    DISCOSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"DISCOUNT"

    JKIGST :$$FilterAmtTotal:LedgerEntries:IGSTSKR:$Amount
    IGSTSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"IGST"

    JKSGST: $$FilterAmtTotal:LedgerEntries:SGSTSKR:$Amount
    SGSTSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"SGST"

    JKCGST:$$FilterAmtTotal:LedgerEntries:CGSTSKR:$Amount
    CGSTSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"CGST"

    JKCESS: $$FilterAmtTotal:LedgerEntries:CESSSKR:$Amount
    CESSSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"CESS"

    ===========Replace This===================

    Linemsg : "Dear%20Customer%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+",%20Discount:%20"+$$String:mad:@JKDISCO+",%20IGST:%20"+$$String:mad:@JKIGST+",%20CGST:%20"+$$String:mad:@JKCGST+",%20SGST:%20"+$$String:mad:@JKSGST++",%20CESS:%20"+$$String:mad:@JKCESS+",%20has%20been%20Generated.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"%20Regards%20"+$$String:mad:@CmpMailName

    Linemsg1 : "Dear%20Supplier%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+",%20Discount:%20"+$$String:mad:@JKDISCO+",%20IGST:%20"+$$String:mad:@JKIGST+",%20CGST:%20"+$$String:mad:@JKCGST+",%20SGST:%20"+$$String:mad:@JKSGST++",%20CESS:%20"+$$String:mad:@JKCESS+",%20has%20been%20Credited.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"%20Regards%20"+$$String:mad:@CmpMailName
     


  22. Sanjeev S

    Sanjeev S New Member


    Working absolutely fine. Just Replace mad: with @ for those who are getting mad :)

    Some fine tuning it also provides Bold, italic as a feature from What's app. Just add * and or "_". If you require a line break please use "%0a"

    Enjoy the unlimited possibilities.

    Thanks Jay.
     


  23. Jay kumar tailor

    Jay kumar tailor Active Member


    :mad is not included in code. it is just because of copy from this site.
    Please change it to : @
     


  24. JCTS

    JCTS Member


    Wonderful.. Thanks for this new knowledge..
     


  25. Jay kumar tailor

    Jay kumar tailor Active Member


    Updated.
    Added Taxable.
    Added Query box.

    [#Form: Sales Color]
    Add : Button : WhatsApp
    On : Form Accept: @@IsSales : CALL : onformaccept

    [Button: WhatsApp]
    Option : SalesjayA : $VoucherTypeName="Sales"

    [!Button: SalesjayA]
    Key : Alt + W
    ;;Action : Browse URL : "http://web.whatsapp.com/send/?Phone=" + @@mobileno+ +"&text=" + @@Luhariamsg
    Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Luhariamsg


    [#Form: Purchase Color]
    Add : Button : WhatsApp1
    On : Form Accept: @@IsPurchase : CALL : onformaccept1

    [Button: WhatsApp1]
    Title : "Whatsapp"
    Option : SalesjayA1 : $VoucherTypeName="Purchase"

    [!Button: SalesjayA1]
    Key : Alt + W
    Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Luhariamsg1



    [#Form: Receipt Color]
    Add : Button : WhatsApp2
    On : Form Accept: @@IsReceipt : CALL : onformaccept2

    [Button: WhatsApp2]
    Title : "Whatsapp"
    Option : SalesjayA2 : $VoucherTypeName="Receipt"

    [!Button: SalesjayA2]
    Key : Alt + W
    Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Luhariamsg2

    [#Form: Payment Color]
    Add : Button : WhatsApp3
    On : Form Accept: @@IsPayment : CALL : onformaccept3
    [Button: WhatsApp3]
    Title : "Whatsapp"
    Option : SalesjayA3 : $VoucherTypeName="Payment"

    [!Button: SalesjayA3]
    Key : Alt + W
    Action : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Luhariamsg3



    [System: Formula]
    Clbalance :$$String:mad:@clbs:"DrCr"
    clbs:$Closingbalance:Ledger:$ledgername
    Mobileno :$$String:"91" + $Ledgermobile:Ledger:$Ledgername
    jkskr: $Vouchertypename
    ;;Mobileno :$Ledgermobile:Ledger:$Ledgername ;;When You Feed Countrycode Alongwith Mobile Number Without Symbol

    gstin :$PARTYGSTIN:Ledger:$ledgername ;; If You Wants To Add Gstin

    JKDISCO :$$FilterAmtTotal:LedgerEntries:DISCOSKR:$Amount
    DISCOSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"DISCOUNT"

    JKIGST :$$FilterAmtTotal:LedgerEntries:IGSTSKR:$Amount
    IGSTSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"IGST"

    JKSGST: $$FilterAmtTotal:LedgerEntries:SGSTSKR:$Amount
    SGSTSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"SGST"

    JKCGST:$$FilterAmtTotal:LedgerEntries:CGSTSKR:$Amount
    CGSTSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"CGST"

    JKCESS: $$FilterAmtTotal:LedgerEntries:CESSSKR:$Amount
    CESSSKR :$Name:Ledger:$LedgerName Contains $$LocaleString:"CESS"

    JKTXABL:$amount - @@JKIGST - @@JKCGST - @@JKSGST - @@JKCESS

    Luhariamsg : "Dear%20Customer%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20*Amount%20"+$$String:$amount+",*%20(Taxable%20"+$$String:mad:@JKTXABL+"%20)%20"+"%20Date%20"+$$String:##VARVchDate+",%20Discount:%20"+$$String:mad:@JKDISCO+",%20IGST:%20"+$$String:mad:@JKIGST+",%20CGST:%20"+$$String:mad:@JKCGST+",%20SGST:%20"+$$String:mad:@JKSGST++",%20CESS:%20"+$$String:mad:@JKCESS+",%20has%20been%20Generated.%20"+"%20*Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"*%20Regards%20"+$$String:mad:@CmpMailName

    Luhariamsg1 : "Dear%20Supplier%20,"+"Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+",%20(Taxable%20"+$$String:mad:@JKTXABL+"%20)%20"+"%20Date%20"+$$String:##VARVchDate+",%20Discount:%20"+$$String:mad:@JKDISCO+",%20IGST:%20"+$$String:mad:@JKIGST+",%20CGST:%20"+$$String:mad:@JKCGST+",%20SGST:%20"+$$String:mad:@JKSGST++",%20CESS:%20"+$$String:mad:@JKCESS+",%20has%20been%20Credited.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"%20Regards%20"+$$String:mad:@CmpMailName

    Luhariamsg2 : "Dear%20,"+$$String:$Ledgername+"%20Your%20"+$$String:mad:@jkskr +"%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"%20has%20been%20Credited%20In%20Your%20Account.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"%20Regards%20"+$$String:mad:@CmpMailName

    Luhariamsg3 : "Dear%20,"+$$String:$Ledgername+"%20Your%20"+$$String:mad:@jkskr +"%20No:%20"+$$String:$VoucherNumber+",%20Amount%20"+$$String:$amount+"%20Date%20"+$$String:##VARVchDate+"%20has%20been%20Debited%20In%20Your%20Account.%20"+"%20Your%20Closing%20Balance%20Is%20"+$$String:mad:@Clbalance+"%20Regards%20"+$$String:mad:@CmpMailName


    ;;==============================================Function for Form accept action=====================


    [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=" + @@Luhariamsg

    [Function:eek:nformaccept1]
    10 : QUERYBOX : "Whatsapp To Supplier For Details ?" : Yes:No
    20 : IF : $$LastResult
    30 : CALL : whatsappstring1
    40 : ENDIF

    [Function: whatsappstring1]
    00 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Luhariamsg1

    [Function:eek:nformaccept2]
    10 : QUERYBOX : "Whatsapp Receipt Details ?" : Yes:No
    20 : IF : $$LastResult
    30 : CALL : whatsappstring2
    40 : ENDIF

    [Function: whatsappstring2]
    00 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Luhariamsg2

    [Function:eek:nformaccept3]
    10 : QUERYBOX : "Whatsapp Payment Details ?" : Yes:No
    20 : IF : $$LastResult
    30 : CALL : whatsappstring3
    40 : ENDIF

    [Function: whatsappstring3]
    00 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@Luhariamsg3
     

    Attached Files:

    Last edited: May 26, 2019


Share This Page