whatsapp massage error from pos invoice

Discussion in 'Requests' started by mryogi261176, Mar 6, 2022.

    
  1. mryogi261176

    mryogi261176 New Member


    Dear sir
    i try for following tdl code, This code is perfectly working in tax invoice and sending whatsapp properly, but in pos it shows error for phone number, i try a lot but unable to find and solve. so please request you to help and assist.
    following is the tdl code........

    [#Form:pOS invoice]

    On : Form Accept: @@Issales: CALL : SendWhatsAppSMS2


    [Function: SendWhatsAppSMS2]
    10 : QUERYBOX : "Send WhatsApp to the Customer... Sure (y/n) ?" : Yes:No
    20 : IF : $$LastResult
    30 : CALL : SendWhatsAppMessege2
    40 : ENDIF

    [Function: SendWhatsAppMessege2]
    10 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@SmsMesseges



    [#Form:sales color]
    On : Form Accept: @@Issales: CALL : SendWhatsAppSMS1



    [Function: SendWhatsAppSMS1]
    10 : QUERYBOX : "Send WhatsApp to the Customer... Sure (y/n) ?" : Yes:No
    20 : IF : $$LastResult
    30 : CALL : SendWhatsAppMessege1
    40 : ENDIF

    [Function: SendWhatsAppMessege1]
    10 : Browse URL : "http://web.whatsapp.com/send?Phone=" + @@mobileno+ +"&text=" + @@SmsMesseges

    [System: Formula]
    Mobileno : $$String:"91" + $Ledgermobile:Ledger:$Ledgername
    SmsMesseges : "Dear,%20"+$$string:$partyname +"%20Your%20Invoice%20No:%20"+$$String:$VoucherNumber+",%20Amount%20Rs.%20"+$$String:$amount+"%20Date%20:%20"+$$String:##VARVchDate+"%20Qty:%20"+$$string:$BilledQty+",%20Has%20Been%20Generated.%20"+"Your%20Outstanding(Payment%20Due)%20Is%20Rs.%20"+$$string:$partyclbalance+"%20If Any Quarry Please Contact 9427509237 Urgently,%20"+"%20Regards :%20"+$$String:$companyName
     

    Attached Files:



  2. RaylongTale

    RaylongTale New Member


    Add the Contact Number you are trying to send message to in your Mobile contacts and try again.
     


Share This Page