Create New Sale Order Voucher using api data but unable to create .

Discussion in 'Requests' started by Jyoti, Jul 20, 2019.

         
  1. Jyoti

    Jyoti New Member


    Hi
    I am beginner in Tally developemnt i create a tdl file for creating sale order using api data but unable to create in this tdl i create a function that call from menu click

    Here is my code

    [Collection:Save Sale orders]
    Remote URL: "****"
    XML Object Path:"result:1:purchorderlists"
    [Collection:transpurchorder]
    Source Collection:Save Sale orders
    Walk:Transpurchorder
    By:Docid:$Docid
    By:pordid:$Pordid
    By:VDate:$VDate
    By:partyLedgerName1:$PartyName
    Search Key:$Docid
    ; Compute:transorder1:$purchorder1
    [Collection:transpurchorder1]
    Source Var : masterdocid:string:$Docid
    Source Collection:Save Sale orders
    Walk:Transpurchorder,purchorder1,Transpurchorder1
    By:Docid1:$Docid
    By:itemid:$itemid
    By:qty:$Quantity
    By:Amount:1000
    Filter:Filterlinefile
    [Function:SaveSaleorders]
    Variable:mynar:String
    00: Set : SVViewName :$$SysName:InvVchView
    01 : WALK COLLECTION:transpurchorder
    02 : Set:mynar:$Docid
    03 : NEW OBJECT:VOUCHER
    04 : SET VALUE: DATE : $VDate
    05 : SET VALUE : VoucherTypeName : $$String:$$VchTypeSalesOrder
    06 : SET VALUE : PartyLedgerName :$PartyLedgerName1
    ; 05 : SET VALUE : Partyorderno :"234"
    ; 05: Set Value:Reference:"4"
    ;06 : SET VALUE:Date:$$SysInfo:SystemDate

    07 : SET VALUE: Amount:5000
    08 : Insert Collection Object:AllLedgerEntries
    09 : SET VALUE : LedgerName : "AKSHAY RAI"
    10 : SET VALUE : Is Deemed Positive : "Yes"
    11 : SET VALUE : ISPARTYLEDGER :Yes
    12 : SET VALUE : Amount :"5000"
    13 : SET TARGET : ..
    14 : Walk Collection:transpurchorder1
    15 : Insert Collection Object:AllInventoryEntries
    16 : SET VALUE:StockItemName:$itemid
    17 : SET VALUE : IsDeemedPositive: No
    18 : SET VALUE: BilledQty :$Quantity
    19 : SET VALUE: ActualQty :$Quantity
    20 : SET VALUE: Amount:5000
    21 : SET VALUE: Orderno:10
    ;22 : SET VALUE:Date:$$SysInfo:SystemDate
    ; 23 : Set TARGET :..
    24 : End Walk
    25 : Set TARGET :..
    26 : SET VALUE : PersistedView : ##SVViewName
    27 : Save Target
    28 : END WALK

    29 : RETURN

    [System:Formula]
    Filterlinefile:$Docid1=##mynar

    Please help me as soon as possible
     
    Last edited: Jul 23, 2019


Share This Page