Free Code : Copy & Paste : Use Ctrl+C & Ctrl+V

Discussion in 'Free Source Codes' started by drive, Jan 2, 2019.

    
  1. drive

    drive Active Member


    /*
    This code use for TallyErp9 Copy Paste any field in any forms use both for Copy Ctrl+C or Ctrl+Alt+C and for Paste Ctrl+V or Ctrl+Alt+V
    From : Drive
    Any query Email To : "Drive@outlook.in"
    */

    [#Form: Master Accounting Form]
    Delete: Bottom Buttons : Master Group, Master Ledger, Master VchType, Blank Button ;, Master Company Operations, Master Configure
    Delete: Option : CstCat Buttons : $$IsCostCategoryOn
    Delete: Option : CstCtr Buttons : $$IsCostCentresOn
    Delete: Option : Employee Buttons : ($$AddOnInfo:payrollEnabled) AND $$IsPayrollOn
    Delete: Option : Budget Buttons : $$IsBudgetsOn
    Delete: Option : Currency Buttons : $$IsMultiCurrencyOn

    [#Form: Master Inventory Form]
    Delete: Bottom Buttons : Master Stock Group, Master Stock Item, Master Units, Master VchType, Blank Button ;, Master Company Operations, Master Configure
    Delete: Option : StockCat Buttons : $$IsStockCategoryOn
    Delete: Option : Godown Buttons : $$IsMultiGodownOn
    [#Form: Multi Master Accounting Form]
    Delete: Bottom Buttons : Multi Master Group, Multi Master Ledger, Blank Button ;, Master Company Operations
    Delete: Option : Multi CstCat Buttons : $$IsCostCategoryOn
    Delete: Option : Multi CstCtr Buttons : $$IsCostCentresOn
    Delete: Option : Multi Employee Buttons : ($$AddOnInfo:payrollEnabled) AND $$IsPayrollOn
    [#Form: Multi Master Inventory Form]
    Delete: Bottom Buttons : Multi Master Stock Group, Multi Master Stock Item, Blank Button;, Master Company Operations
    Delete: Option : Multi StockCat Buttons : $$IsStockCategoryOn
    Delete: Option : Multi Godown Buttons : $$IsMultiGodownOn

    [#Button : ChqConfigFill]
    Delete : Key
    Add: Key: Ctrl+D
    Title : $$LocaleString:"Copy From"
    Action : Alter : ChqConfigFillRep

    [#Button: Master CstCtr]
    Key: Ctrl+Alt+C
    Action : Replace : Cost Centres
    Title : $$LocaleString:"Cost Centre"
    Inactive: NOT $IsCostCentresOn:Company:##SVCurrentCompany
    Option : Sec Master CstCtr : $$InExecuteMode

    [#Button: Master StockCat]
    Delete : Key
    Add: Key: Ctrl+Alt+C
    Action : Replace : Stock Category
    Title : $$LocaleString:"Category"
    Inactive: NOT $IsStockCategoryOn:Company:##SVCurrentCompany
    Option : Sec Master StockCat : $$InExecuteMode

    [#Button: Multi Master CstCtr]
    Delete : Key
    Add: Key: Ctrl+Alt+C
    Action : Replace : Multi Cost Centre
    Title : $$LocaleString:"Cost Centre"
    Inactive: NOT $IsCostCentresOn:Company:##SVCurrentCompany

    [#Button: Multi Master StockCat]
    Delete : Key
    Add: Key: Ctrl+Alt+C
    Action : Replace : Multi Stock Category
    Title : $$LocaleString:"Category"
    Inactive: NOT $IsStockCategoryOn:Company:##SVCurrentCompany

    ;
    [#Button: Invoice Button]
    Key : Ctrl+F
    Action : Set : InvoicingModeFlag : NOT ##InvoicingModeFlag
    ;;Action List : view name key, invoice mode flag key
    Title : if ##InvoicingModeFlag then $$LocaleString:"As Voucher" else $$LocaleString:"As Invoice"
    Inactive : (NOT $$IsInvoicingOn AND NOT ##InvoicingModeFlag) OR +
    (NOT @@IsSales AND NOT @@IsCreditNote AND NOT @@IsDebitNote AND NOT @@IsPurchase)

    [#Button: Master VchType]
    Key: Ctrl+F

    [#Key: AL Voucher Type]
    Key: Ctrl+F


    [System: Form Keys]
    Key : Field Copy C, Field Paste V

    [Key : Field Copy C]
    Key : Ctrl+C
    Action : Field Copy

    [Key : Field Paste V]
    Key : Ctrl+V
    Action : Field Paste

    [#Form: List of Accounts]
    Delete: Button: AL CstCtr
    Add: Button: AL CstCtr New

    [Button: AL CstCtr New]
    Key : Ctrl+D
    Title : $$LocaleString:"Cost Centres"
    Action : Set : AccountType : $$SysName:CostCentres
    Inactive: $$IsSysNameEqual:CostCentres:##AccountType OR NOT $$IsCostCentresOn:$$CurrentCompany
     
    sekharchana and RamRaju like this.



  2. Thanks a lot for this code.......
     


  3. RamRaju

    RamRaju New Member


    thanks for the code sir...
     


  4. Umashankar

    Umashankar Member


    In Sales voucher, we are using ctrl+V for sales without inventory. This code intrude the sales voucher. Please guide experts. Thanks in advance.
     


  5. tulip

    tulip New Member


    You can use Ctrl+F instead of Ctrl+V.
     


  6. Umashankar

    Umashankar Member


    While on altering ctrl+V to Ctrl+F, sales voucher without inventory i.e., ctrl+V is not working. Please help.
     


  7. drive

    drive Active Member


    You should use
    As follows
    code


    ;;Visible in AlterMode
    [#Button: SVAcctsInvoice]
    Delete: Inactive: NOT @@InvoiceInCreate OR NOT $$IsInventoryOn
    Add: Inactive: NOT $$IsInventoryOn
     


  8. Umashankar

    Umashankar Member


    Dear Drive, now it is working fine. Thank you.
     


  9. rmraja

    rmraja Active Member


    Nice Thanks for sharing
     


  10. jaykay

    jaykay New Member


    Ctrl C is not working in sale order, In Sale Order Ctrl + C Shortcut key is going for Pre-Close Order Completely
    Pls Share the Code I Want Ctrl C is working only for copy command I don't want pre-close order shortcut

    And also Ctrl C is not working in Sales Invoice Customer Name or any Stock Item (Only Ctrl + Alt + C) is workingg

    Pls correct the above code fine
    Thanks in Advance
     


Share This Page