Copy / Create Item Master from One company to All Comapnies

Discussion in 'Tally Developer' started by Nirav Merchant, Apr 7, 2015.

    
  1. Nirav Merchant

    Nirav Merchant Active Member


    Hi Experts,
    I have project where by My customer wants following thing
    They have 5 to 6 Sister Company. to control Item Creation Mistakes. they want something like once item created in one time it should create in all the other companies.

    Does Anybody has any idea regarding this.

    Pls Share

    Thanks
     



  2. write a function which will push the data to the sister company...i do have it but it doesn't work if the item masters name will get changed

    Regards,
    aaradhya
     
    Last edited by a moderator: May 12, 2015


  3. Nirav Merchant

    Nirav Merchant Active Member


    if u can share ur code to get an idea will develop from there and share
     


  4. Maulik Patel

    Maulik Patel Active Member


    Here with I am attaching code for Main Branch Payment as Receipt in other branch. You can take a reference of it.
    Code:
    [#Menu: Gateway of Tally]
    
        Item    : Payment to Receipt    : CALL        : InterCompany PymttoRcpt
    
    [Function: InterCompany PymttoRcpt]
    
        Variable : OldCompany        : String
    
        01: SET  : OldCompany         : ##SVCurrentCompany;; store current company
        02: CALL : Change and Save Voucher
        03: SET  : SVCurrent Company: ##OldCompany        ;; restore the company
    
    ;; Function Definition
    
    [Function: Change and Save Voucher]
    
        Variable    : Index    : Number
    
        01: WALK COLLECTION: Pymt Vouchers
        02:     SET             : SVCurrent Company         : "Test Target"
        03:     SET TARGET
        04:     SET VALUE         : VoucherTypeName            : "Receipt"
        05:     SET VALUE         : VoucherNumber                : $VoucherNumber
        06:     SET                : Index                        : 0
        07:     WALK COLLECTION    : LedgerEntries
        08:            INCREMENT    : Index
        09:            SET TARGET    : LedgerEntries[##Index]
        10:            SET VALUE    : Amount                    : if $$IsDr:$Amount then $$AsCrAmt:$Amount else $$AsDrAmt:$Amount
        11:            SET VALUE    : IsDeemedPositive            : NOT $IsDeemedPositive
        12:        SET TARGET    : ..
        13:     END WALK
        14:        SAVE TARGET
        15:     SET : SVCurrent Company : ##OldCompany
        16: END WALK
    
    ;; Collection Definition
    
    [Collection: Pymt Vouchers]
    
        Type    : Vouchers    : Voucher Type
        Child Of: "Payment"
    You will need to make a function in which you have to write Walk Colleciton for currently opened compnies. Inside that Walk Collection you will need to call InterCompany PymttoRcpt function. This way it will automatically insert one entry into multiple company.
    Please note that "InterCompany PymttoRcpt" function is as reference to this code only. You will need to make functions as per your requirements.
    Hope this will help you.
     
    khushbu likes this.


  5. khushbu

    khushbu New Member


    Superb...
     


  6. Mahesh Sethi

    Mahesh Sethi Member


    Moulik Bhai ,

    Hi.. Its Manish From INDORE..

    Can We talk (About SMS Module...)

    Awating for youre replay
    My Cell No. 9826026109

    Manish
     


  7. vyadav

    vyadav Member


    Dear All Expert...

    i want to need auto ledger creation in multi-company ,, please share code,,,,,
     




  8. vyadav

    vyadav Member


    basic of ledger creation multi company
     


Share This Page