sales order show negative balance items

Discussion in 'Tally Developer' started by BHARATKHABAR, Dec 25, 2016.

    
  1. BHARATKHABAR

    BHARATKHABAR New Member


    I have created a sales order with following commands:


    2500 : INSERT COLLECTION OBJECT : ALLINVENTORYENTRIES
    2700 : SET VALUE : Stock Item Name : $$Tgtobject:##listabitem[##counter]
    2800 : SET VALUE : IsDeemedPositive : No
    2900 : SET VALUE : rate : $$tgtobject:$$AsRate:##listabrate[##counter]/1000
    3000 : SET VALUE : amount : $$Tgtobject:$$AsAmount:##listabamount[##counter]
    3100 : Set Value : actualqty : $$Tgtobject:$$AsQty:##listabqty[##counter]*-1
    3200 : Set Value : billedqty : $$Tgtobject:$$AsQty:##listabqty[##counter]*-1

    3500 : INSERT COLLECTION OBJECT : BATCHALLOCATIONS
    3700 : SET VALUE : godownname : $$Tgtobject:##listabgodown[##counter]
    3800 : SET VALUE : batchname : "Primary batch"
    3900 : SET VALUE : destinationgodownname : $$Tgtobject:##listabgodown[##counter]
    4000 : SET VALUE : amount : $$Tgtobject:$$AsAmount:##listabamount[##counter]
    4100 : Set Value : actualqty : $$Tgtobject:$$Asqty:##listabqty[##counter];;*-1
    4200 : Set Value : billedqty : $$Tgtobject:$$Asqty:##listabqty[##counter];;*-1
    4300 : Set Value : orderduedate : $$Tgtobject:$$DateRange:##abdate:##abdate:Yes+15


    This creates a sales order entry which shows negative balance quantity.
    How to create with positive balance quantity?
     

    Attached Files:

    Last edited: Dec 25, 2016


  2. admin

    admin Administrator Staff Member


    Send you complete code to help you
     


  3. BHARATKHABAR

    BHARATKHABAR New Member


    dear admin

    here is the code.
    thanx for your help
     

    Attached Files:



Share This Page