REQUIRED HELP to FETCH UDF VALUE IN SALES ORDER REPORT

Discussion in 'Free Source Codes' started by Dilip S H, Nov 10, 2023.

    
  1. Dilip S H

    Dilip S H Member


    Dear Team,
    Please find the CODE AND SCREENSHOT FOR YOUR REFERENCE.

    please help me.

    upload_2023-11-10_18-24-3.png

    upload_2023-11-10_18-24-32.png
     

    Attached Files:



  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Find the Collection Name and Fetch that value............

    And in your FIELD -- Set As : $AllInventoryEntries[].BatchAllocations[].UDFName
     


  3. Dilip S H

    Dilip S H Member


    Thanks a lot sir I will try with ur suggestions.
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You will find your collection in this PART ----- [Part: OrderAgeWiseDetail]

    There are many OPTIONS -- based on your data / selection find the Collection.
     


  5. Dilip S H

    Dilip S H Member


    Dear Sir,

    I tried with collection but unable to fetch.

    i tried by writing below collection code sir

    [Collection: UDF1]
    Type: Vouchers: VoucherType
    Child of: $$VchTypeSalesOrder
    Belong to : Yes

    [Collection: UDF1 Summary]
    Source Collection: UDF1
    Walk: AllInventoryEntries,BatchAllocations
    Compute:StockItemName:$StockItemName
    Compute:Rate:$Rate
    Compute: StkAmount:$Amount
    Compute: ItmBrandNames:$ItmBrandNames
     


  6. Dilip S H

    Dilip S H Member


    Please give example sir.
    Thanks in advance
     


  7. Dilip S H

    Dilip S H Member


    TRIED This as well sir :-( failed to succeed Please suggest sir, when u r free please
    [Collection:SalesCollection]

    Type :vouchers:vouchertype
    Child Of :$$VchTypeSalesOrder
    Belongs To :Yes


    [Collection:SalesCollectionSource]
    Source Collection :Sales Orders
    Walk :InventoryEntries,BatchAllocations
    Fetch:ItmNoOfBagss6
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    I have given you the PART name --- from there you can find the Collection Name ---

    You need to enhance your search skills also :):cool:
     


  9. Dilip S H

    Dilip S H Member


    upload_2023-11-11_3-16-5.png


    i searched as you guided me sir but only field lines and variables i found sir.

    please request you to give sample code for understanding further sir please.
    thanks in advance.
     


  10. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In the Part Name I have given there are many options --- which re-directs the code as per your selection (SO POS, SO Cleared, SO Negative etc ) ..... When you go to that options you will find that the LINE is repeated with its own appropriate collection -- that is the Collection name.

    Capture.PNG
     


  11. Dilip S H

    Dilip S H Member


    Dear Sir,
    From morning to till now i tried using the basic knowledge what i have towards TDL programming learned from this forum.
    As you all know i just know basic things and i am unable to get this,,

    request you to please help sir so that it will help me with what collection is and also i can use this suggestions in my future reports,

    please,
    Thanks in advance
     


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [#Collection: SalePosOrderOfCompany]
    Fetch : PurcNoOfBags1
    Compute : NoOfBags : $AllInventoryEntries[].BatchAllocations[].PurcNoOfBags1
     


  13. Dilip S H

    Dilip S H Member


    Thanks a lot for your kind heart sir.

    The value is fetching but for every item its fetching same value sir
    upload_2023-11-12_7-41-51.png

    upload_2023-11-12_7-42-46.png


    upload_2023-11-12_7-43-8.png

    [Field:Sales_Brands]

    Width : 8% page
    Setas :$NoOfBags;$AllInventoryEntries[].BatchAllocations[].NoofBags
    Style : Small Bold
    Align : Center
    Skip : Yes
    Fixed : Yes
    ;Full Width:Yes


    [#Collection: SalePosOrderOfCompany]
    Fetch : ItmNoOfBagss6
    Compute : NoOfBags : $AllInventoryEntries[].BatchAllocations[].ItmNoOfBagss6


    Please suggest sir
     


  14. Dilip S H

    Dilip S H Member


    Dear sir awaiting for ur value suggestions sir
     


  15. Dilip S H

    Dilip S H Member


    Dear Team,
    Kindly suggest please
     


  16. Sai Vineeth

    Sai Vineeth Active Member


    Inventory allocations is collection, can have multiple values directly accessing without index will return only first object so you are getting same value.

    you can first filter inventory allocations based on StockItemName then you can drill down to batch allocations.
    [#Collection: SalePosOrderOfCompany]
    Compute : NoOfBags :$$FilterValue:$BATCHALLOCATIONS.ItmNoOfBagss6:InventoryEntries:First:TC_InvFilter

    [System : Formule]
    TC_InvFilter : $STOCKITEMNAME = $PARENT

    Ref - FilterValueFunction
     


  17. Dilip S H

    Dilip S H Member


    Thanks for the suggestion sir.

    Thanks both of you...
    and i have done few changes and report in fetching fine.


    Thanks a lot of kind heart and help.
     


  18. Sai Vineeth

    Sai Vineeth Active Member


    OK, what are the changes?
     
    Last edited: Nov 14, 2023


  19. Dilip S H

    Dilip S H Member


    ITEM WISE JOB CARD DATE AND SALES MAN NAME AND ALSO filtration option for sales man and JOB CARD SIR
    yet to completed working on it sir,

    once completed i will share here.
    Thank you:)
     
    Sai Vineeth likes this.


Share This Page