Switch a logical storage variable

Discussion in 'Tally Developer' started by smitsanghvi94, Sep 10, 2022.

    
  1. smitsanghvi94

    smitsanghvi94 New Member


    [#Menu:Gateway of Tally]
    Add:Button: Switch TDL

    [Button:Switch TDL]
    TITLE:"Switch Sales Order"
    Key : Alt + S
    Action: Call: SalesOrderSwitch

    [Function: SalesOrderSwitch]

    01 : Set : $$IsSalesOrdersOn : not $$IsSalesOrdersOn





    This is the code I am using to switch sales order processing activation from gateway of tally itslef. But it is raising the error:

    Variable 'IsSalesOrdersOn' could not be found!

    Please Help
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Because it is NOT a variable...... if it were a variable double ## is to be used and not double $$.

    The Line you have used is for Variable and hence tally is returning a error message that Variable is not found.
     


  3. smitsanghvi94

    smitsanghvi94 New Member


    Thank you for your reply sir. How would I change a storage variable sir?
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    What exactly are you trying to do ? Toggle On/Off the SALES ORDER ?? or Switch a TDL ...... cuz your Button is named like that.
     


  5. smitsanghvi94

    smitsanghvi94 New Member


    Toggle On/Off the Sales Order
     


  6. Himanshu-2002

    Himanshu-2002 Active Member


    Do it like this

    1. Find the Storage/Method From Which you can enable Sales Order

    2.Check If Is true or not(If Condition)

    3. Based On the Condition Change the Value

    Note: There is one smaller method for this But I am not if it is a good one...
     


  7. smitsanghvi94

    smitsanghvi94 New Member


    Any help will be appreciated. It is part of Tally F11 Functions. I think it has been removed in tally prime. it can be found in cmpoperationsfield.tdl in default TDL under Field: CMP SalesOrder. Thank you.
     


  8. smitsanghvi94

    smitsanghvi94 New Member


    I tried to edit the code myself. Here is the new code. Still it is not doing What is intented:
    [#Menu:Gateway of Tally]
    Add : Button : Switch SalesOrderProcessing

    [Button:Switch SalesOrderProcessing]
    TITLE:"Switch Sales Order"
    Key : Alt + S
    Action: Set : SalesOrderSwitch : NOT $$IsSalesOrdersOn
     


  9. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    It is there in Prime.......... go to VchType Alteration and activate it from there.
     


Share This Page