Multiple stockitem control

Discussion in 'Tally Developer' started by Siddiqe Sha, Mar 1, 2013.

    
  1. Siddiqe Sha

    Siddiqe Sha New Member


    Dear Sir,
    I tried to Control for Stockitem Selection in , but it Not fine control, i don't know how to handle this,
    i have mentioned my code below, please let me know whats the wrong in it.

    [#Field: VCH StockItem]
    Control:SSRDuplicateitemEntry:($$SSRStkfunction:#VCHStockItem)

    [#Field: VCHINV StockItem]

    Control:SSRDuplicateitemEntry:($$SSRStkfunction:#VCHINVStockItem)

    [#Field: VCHACC StockItem]
    Control:SSRDuplicateitemEntry:($$SSRStkfunction:#VCHACCStockItem)

    [#Field: VCHINV StockItemNotCommon]

    Control:SSRDuplicateitemEntry:($$SSRStkfunction:#VCHINVStockItemNotCommon)

    [#Field: VCHINV StockItemCommon]
    Control:SSRDuplicateitemEntry:($$SSRStkfunction:#VCHINVStockItemNotCommon)

    [System : Formula]
    $$VCHSt
    SSRDuplicateitemEntry :" Duplicate Stockitem entry "



    [Function : SSR Stkfunction]


    Parameter: SSRSTKName:String
    Return :Logical

    00: Walk collection: Inventory entries
    05: Do If: ($StockitemName = ##SSRSTKName) :Return:True
    20: End walk
    30: REturn:False
     


  2. Nirav Merchant

    Nirav Merchant Active Member


    Hi Pls explain what control you are trying to put - u want to get read of Duplicate Item entry ?
     


  3. Siddiqe Sha

    Siddiqe Sha New Member


    I Try to control in sales entry. For example In sales Entry Stockitem " Item A " Selected , Again I select Stockitem " tally allow . But I try control for Second time selecting stockitem Control " Duplicate stockitem entry"
     


  4. Arun Prasath

    Arun Prasath Member


    Hi Siddqe,

    Try this code

    [#Field: VCH StockItem]

    Unique : yes
     
    laxman likes this.


  5. Siddiqe Sha

    Siddiqe Sha New Member


    Hi Arun ji,

    I Know that Unique . But I am trying control in Invoice while selecting Item A More than one item , it show Message control duplicate stockitem entry. Kindly help me

    Regards

    Siddiqe Sha B
     


  6. Nirav Merchant

    Nirav Merchant Active Member


    Pls tell what is the purpose - that u want to allow them to enter the stock item twice and show warning ? pls explain ? Thanks
     


  7. Siddiqe Sha

    Siddiqe Sha New Member


    while user did not select twice stockitem . if select twice it warn Message " Duplicate entry ". sometimes the user wrongly enter twice the stockitem thats why i try control

    Thanks

    Siddiqe
     


  8. mpal2311

    mpal2311 Active Member


    This control is already available in cost center, use the codes from there.
     
    Pritam Krishna likes this.


Share This Page