auto production of finished item using bom while in negative stock

Discussion in 'Tally Developer' started by dhanapal, Sep 7, 2012.

    
  1. dhanapal

    dhanapal New Member


    tdl for auto production of finished item using bom while in negative stock
     



  2. What do you want? Help or TDL
     


  3. Girdhar

    Girdhar Member


    Plz elaborate your query.
     


  4. dhanapal

    dhanapal New Member


    Hai,


    Item a = item a1(10 nos)+itema2(10 nos)+itema3(10 nos)

    when item a is in negative stock,auto generation of manufacturing journal and item a stock to be increased and it should nullified.i think it will be clear.
    any idea or tdl is expected
     


  5. Girdhar

    Girdhar Member


    i thnk in default tally, if you press alt+c at billedqty field, then it will create mfg jrnl auto.

    u cn take an idea from it.
     
    naren1234 likes this.


  6. dhanapal

    dhanapal New Member


    when i press alt+c at billedqty field, It is going to calculator panel .need another solution
     


  7. Girdhar

    Girdhar Member


    Hello,

    Sorry for wrong key, plz press Alt+v

    Try and revert back plz.
     
    naren1234 likes this.


  8. Girdhar

    Girdhar Member


    waiting
     


  9. dhanapal

    dhanapal New Member


    alt+V going to manufaturing journal voucherType but not get details as auto
     


  10. Girdhar

    Girdhar Member


    define BOM Bill of Material
     



  11. Write a function for that where call the all negative stock which had the bom
    then use that collection as your voucher base and use New object : Voucher .
    I had it ready but first try yourself to do that. it will more easy for you to understand it after you write it yourself.
    Ex i m giving down read the process and write your code according( do not copy paste the below code it will not work)

    [#Menu : Gateway Of Tally]
    add : Item : "Auto Mfg Jrnl" : Call : SSFunctonAutoJrnl

    [Function SSFunctonAutoJrnl]
    variable : SSFunctonAutoJrnl stkname : String
    variable : SSFunctonAutoJrnl totaltomfg: quantity
    Variable : SSFunctonAutoJrnlNumToCal : Number
    010 : Walk Collection : ("Coll Of item which has bom")
    011 : New Object : Voucher
    012 : SET VALUE : [date], [SvPersistedview], [vouchernumber]
    013 : Insert Collection object : inventory entries in
    014 : Set target : inventory entries in
    015 : SET VALUE : stockitem Name : $Name
    016 : SET VALUE : [BilledQty], [Actual Qty] : [ClosingBalance]
    016a: SET : SSFunctonAutoJrnl totaltomfg : [ClosingBalance]
    017 : SET VALUE : [Other imp UDF and batch allocations]
    018 : SET TARGET :..
    020 : Walk : MultiComponenet List
    021 : SET : SSFunctonAutoJrnlNumToCal : ##SSFunctonAutoJrnl totaltomfg / $componentbasicqty
    022 : Walk : MultiComponenetItemList
    023 : insert collection object : InventoryEntriesOut
    024 : SEt TARGET : InventoryEntriesOut
    025 : SET VALUE : StockItemName : $stockitemname
    026 : SET VALUE : Actual Qty, [Same BilledQty] : ($actualQty *## SSFunctonAutoJrnlNumToCal)
    027 : SET VALUE : [Other imp UDF and batch allocations]
    030 : SET TARGET : ..
    032 : End Walk
    033 : End Walk
    034 : Create TARGET
     
    naren1234 likes this.


  12. Shamsher Singh

    Shamsher Singh New Member


    I want to open the created AUTO PRODUCTION VOUCHER after saving Dely note. How to open it just after saving Dely Note? how to do this??
     


  13. Nirav Merchant

    Nirav Merchant Active Member


    Kindly use [on form : accept : yes : call : <ur auto prodcution > report or Function]
     
    naren1234 likes this.


  14. Shamsher Singh

    Shamsher Singh New Member


    Dear Nirav,

    I tried the same, but this call my function and create production voucher. I want to open that production voucher after saving or before saving. How to do that?
     


  15. Maulik Patel

    Maulik Patel Active Member


    Dear Shamsher Singh,

    Follow below mentioned steps
    1. Modify BottomToolBarBtn2_Accept key
    2. Delete existing action
    3. Create two option for action a new action list
    3.1 One for Delivery Note
    3.2 One for other than Delivery Note
    4 Write "Action : Form Accept" in other than Delivery Note
    5 Write "Action List : Form Accept, Prev Edit Report" for Delivery Note.

    Prev Edit Report will show your last saved voucher which will be AUTO PRODUCTION VOUCHER
     
    naren1234 likes this.


  16. amitsafax

    amitsafax New Member


    dear expert,
    please complete auto bom (bill of material) for me as i am new to this
    this will save my time
    thanks in advance
     


  17. Vinay19882

    Vinay19882 New Member


    I need this tdl
     


  18. Vinay19882

    Vinay19882 New Member



  19. Mohan.S

    Mohan.S Member




    DEar Sir,

    pls send any sample working code
    to
    trichytally@gmail.com
     


  20. Vinay19882

    Vinay19882 New Member


    i need this tdl please share it with me
     


  21. Nakul_Chadak

    Nakul_Chadak New Member



Share This Page