Date Wise /Companywise Addon Module control

Discussion in 'Tally Developer' started by Vikram, Jun 25, 2012.

    
Thread Status:
Not open for further replies.
  1. Vikram

    Vikram Member


    Hi ,

    Use this following code to protect your code based on company name or date .refer comments for your date.

    Please do post ,if you have a better approach.

    ;;-------------
    ;;COndition
    ;;------------

    [System:Formula]

    ;VRKLic :($$Currentcompany Contains "Test" ) ;;"Demo" OR "Test" OR "Learn") ;;limiting based on company name
    VRKLic :$$Machinedate>$$Date:"01/07/2012" ;;datewise control
    VRKLicWarn :$$Machinedate>$$Date:"01/06/2012" ;;datewise Warning

    VRKExpiryMsg :"Dear "+$$CmpuserName +"!!! \n you have an Outstanding amt payable to "+@@VrkcontactCmp+"!!\n . Plz contact "+ @@VrkcontactPerson +" to avoid this message !!!!"
    VrkcontactCmp: "Contact Company" ;; Mention Contact company here
    VrkcontactPerson: "Contact Person" ;;Mention the contact person here


    [System: Events]
    ;;------------------------------------------------------
    ;; Cmp Start Event
    ;--------------------------------------------------------

    CmpStartEvent: Load Company: @@VRKLicWarn: CALL: CMPStartFunc
    CmpEndEvent: Close Company: @@VRKLicWarn: CALL: CMPEndFunc

    [Function: CMPStartFunc]

    00: MSGBOX: "System Start": @@VRKExpiryMsg : No

    [Function: CMPEndFunc]

    00: SET FILE LOG ON
    10: LOG: $$String:mad:@VRKExpiryMsg
    20: Exec Command: "TDLFunc.LOG"

    ;;-------------------
    ;Example to control
    ;;-------------------

    [#Menu : Gateway of Tally]

    Option : GOT DL : @@VRKLic

    [!Menu : GOT DL]

    Delete : Item
    Delete : Indent
    Delete : Option: Import Direct: NOT $$IsTallyClient AND NOT $$IsTallyServer
    Delete : Option: Import InDirect: $$IsTallyClient OR $$IsTallyServer
    Delete : Option: FinalAcctsMenu: @@UseFinalAcctsMenu
    Delete : Option: MultiAccountButton: (($$LicenseInfo:IsLicensedMode) OR (($$LicenseInfo:RemoteSerialNumber) > 0))


    ;;EOF
     
    Taufeeq Shaikh and mohankumar like this.


  2. HVPatel

    HVPatel Active Member


    THANKS FOR SHARING..
    After few adding/ alteration into lines, we can do it for a company also.

    VRKLic :##SVCurrentcompany Contains "Cooker" ;;) ;;"Demo" OR "Test" OR "Learn") ;;limiting based on company name
    VRKLicWarn :##SVCurrentcompany Contains "Cooker" ;;CompanyName Warning

    ;;=====================================
    I need for tally license control for the same, what code for it.?
     


  3. admin

    admin Administrator Staff Member


    Vikram,
    You have posted a nice script. It will useful for the so many developers who wants put control for demo tcp files.

    Better you can attach the code along with post.
     


  4. admin

    admin Administrator Staff Member


    Vikram,
    You have posted a nice script. It will useful for the so many developers who wants put control for demo tcp files.

    Better you can attach the code along with post.
     


  5. HVPatel

    HVPatel Active Member


    How to control for Tally Serial License Number, work tdl only for a license.
     


  6. admin

    admin Administrator Staff Member


    You have to use Licensed version of Tally.Developer 9. In that you have feature to compile the TDL to selected Serial numbers.
     


  7. HVPatel

    HVPatel Active Member


    We can do for tally serial number , also, giving your tally license serial number works only in it.

    VRKLic :$$LicenseInfo:SerialNumber <> 123456789 ;;limiting based on company serial
    VRKLicWarn : $$LicenseInfo:SerialNumber <> 123456789 ;;Companyserial Warning
    Thanks to Admin and other Experts.
     


  8. hitarth

    hitarth Member


    Sir, Any idea for ;
    A tdl downloaded, added to tally.erp 9, not know date of add, but after adding to tally it works for 3 days only.
    meanse A demo tdl for 3days only not for a particular date.
     


Thread Status:
Not open for further replies.

Share This Page