Daybook taking lot of time to load.

Discussion in 'Tally Developer' started by Sohail Khan, Dec 15, 2020.

    
  1. Sohail Khan

    Sohail Khan Member


    After adding Additional Fields to the purchase and sales register my daybook takes a lot of time to load. Is this how it will be or is there a way to improve it. Please help.

    ;;;;;;;;;;;Voucher Register Columns;;;;;;;;



    [#Line: DSP VchDybkDetail]
    Add: Right Fields :After : DSP VchNumber : MyQtytotal

    [Field: MyQtytotal]
    Use : Name Field
    Align : Right
    Width : @@VCHQtyWidth
    Style : small bold italic
    Set as:$$CollectionField:$Qty:1:sumMcoll
    Set always : Yes
    Skip : Yes
    Invisible: Not $$IsPurchase:##VoucherTypeName
    Inactive:Not $$IsPurchase:##VoucherTypeName
    [Collection:Collec]
    type: vouchers: vouchertype
    Child Of: $$VchTypePurchase
    Belongs To:Yes

    [Collection:sumMcoll]
    Source Collection :Collec
    Walk :AllINVENTORYENTRIES
    By :vch:$vouchernumber
    Aggr Compute:qty:Sum:$BilledQty
    Filter:fltr
    [System:Formula]
    fltr:$vch=#dspVchNumber


    ;;;;;;; Collection;;;;;;
    [#Collection: NRM Vouchers of Company]
    Fetch : Reference,EICheckPost,BasicShipVesselNo,BasicPurchaseOrderNo

    [#Field: EI ConsigneeGSTIN]
    Set as: #EIBuyerGSTIN
     
    Last edited: Dec 18, 2020


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Do not understand or know wot your requirement is.......

    According to that....use a proper filter............. right now your filter is going through all vouchers...... hence time taken as per your data load.
     


  3. Sohail Khan

    Sohail Khan Member


    It is happening due to Quantity Field. How do i Filter it through only Purchase Vouchers?
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Do you want above FIELDS in Daybook or not ???
     


  5. Sohail Khan

    Sohail Khan Member


    I dont want in daybook. I want qty field in purchase register.
     


  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Compute your QTY in the default collection... i.e. NRM Vouchers of Company

    Use $$CollQtyTotal to derive your values....... (Refer to COLL- InventoryEntries)...... it is easy...you can do it.........

    Delete your 2 collections...........

    Also in all the Invisible and Inactive Field attributes ........... add at the end ......... AND ##IsDaybook

    I think, above will solve your issues.
     
    Jaydeep Shah likes this.


  7. Sohail Khan

    Sohail Khan Member


    K sir. I will try that tomorrow.
     


  8. Sohail Khan

    Sohail Khan Member


    Sir, I did through $$CollQtyTotal the loading time is improved, but it is showing quantity only when I am exploding the report.
     


  9. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Cannot say without seeing your code.... it is working fine for me....... without explode......
     


  10. Sohail Khan

    Sohail Khan Member


    [Field: MyQtytotal]
    Use : Name Field
    Align : Right
    Width : @@VCHQtyWidth
    Style : small bold italic
    Set as : $$CollQtyTotal:InventoryEntries:$BilledQty
    Set always : Yes
    Skip : Yes
    Invisible: Not $$IsPurchase:##VoucherTypeName AND ##ISDAYBOOK
    Inactive:Not $$IsPurchase:##VoucherTypeName AND ##ISDAYBOOK

    [#Collection: NRM Vouchers of Company]
    Fetch : Reference,EICheckPost,BasicShipVesselNo,BasicPurchaseOrderNo,BilledQty

    [#Collection : DayBook Vouchers Of Company]

    Fetch : Reference,EICheckPost,BasicShipVesselNo,BasicPurchaseOrderNo,BilledQty
    [#Collection: Daybook ExplodeColl]
    Fetch : *.*
     


  11. Sohail Khan

    Sohail Khan Member


    its working now. i forgot to compute. thank you sir
     


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Great.....u are a good learner.........
     


  13. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    All other collections are irrelevant........ only "NRM Vouchers of Company" is relevant...........
     


  14. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Actual and best way is...........

    [#Collection: NRM Vouchers of Company]
    Compute : MyQty : $$CollQtyTotal:InventoryEntries:$BilledQty

    [Field: MyQtytotal]
    Use : Name Field
    Align : Right
    Width : @@VCHQtyWidth
    Style : small bold italic
    Set as : $MyQty
    Set always : Yes
    Skip : Yes
    Invisible: Not $$IsPurchase:##VoucherTypeName AND ##ISDAYBOOK
    Inactive:Not $$IsPurchase:##VoucherTypeName AND ##ISDAYBOOK
     
    Jaydeep Shah likes this.


  15. Sohail Khan

    Sohail Khan Member


    yes Sir, That is how i Have done. But since now the data is loading fast so i have added quantity Field to daybook also. for that i have Computed the same in the [#Collection : DayBook Vouchers Of Company].
     


  16. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Ok...nice.....

    hope u learned a good lesson from this experience........... good luck buddy.
     


Share This Page