Memory Access Violation due to collection aggregation.

Discussion in 'Free Source Codes' started by Chintan987, Feb 9, 2023.

    
  1. Chintan987

    Chintan987 New Member


    Dear Sirs,

    I am getting the memory access violation in the summary collection. please advise.
    Code:
       
    [Collection: AllVouchers]
       
        Type            :     Voucher
        Fetch            :    MasterID, VoucherTypeName, Date, VoucherNumber, PartyLedgerName, AllLedgerEntries.*
        Compute            :    NewExpLed        : $AllLedgerEntries[1,@@ExpLed].LedgerName
        Compute            :    NewExpsAmt        : $AllLedgerEntries[1,@@ExpLed].Amount
        Compute            :    NewPartyLed        : $AllLedgerEntries[1,@@PartyLed].LedgerName
        Compute            :    NewPartyAmt        : $AllLedgerEntries[1,@@PartyLed].Amount
        Compute            :    NewIncomeLed    : $AllLedgerEntries[1,@@IncomeLed].LedgerName
        Compute            :    NewIncomeAmt    : $AllLedgerEntries[1,@@IncomeLed].Amount
        Compute            :    NewTDSLed        : $AllLedgerEntries[1,@@TDSLed].LedgerName
        Compute            :    NewTDSAmt        : $AllLedgerEntries[1,@@TDSLed].Amount
       
    
    [Collection: AACMVoucherLoopColl]
       
        Source Collection    : All Vouchers
        Fetch            :    MasterID, VoucherTypeName, Date, VoucherNumber, PartyLedgerName, Amount
        Fetch            :     NewExpLed, NewPartyLed, NewIncomeLed, NewTDSLed, NewExpsAmt, NewPartyAmt, NewIncomeAmt, NewTDSAmt
        Is ODBC Table    :    Yes
    
    [Collection : AACMVchSummaryColl]
        Source Collection   :     AACMVoucherLoopColl
        By                    :    MyLedName2            :    $NewPartyLed
        By                    :    MyLedName3            :    $NewExpLed
        Aggr Compute        :     ExpAmt                 : Sum : $NewExpsAmt
        Aggr Compute        :     TDSAmt                 : Sum : $NewTDSAmt
        Is ODBC Table        :    Yes
    
    
    [System : Formula]
    PartyLed             :    $$IsLedOfGrp:$LedgerName:$$GroupSundryDebtors or $$IsLedOfGrp:$LedgerName:$$GroupSundryCreditors
    ExpLed                 :    $$IsLedOfGrp:$LedgerName:$$GroupDirectExpenses or $$IsLedOfGrp:$LedgerName:$$GroupIndirectExpenses or $$IsLedOfGrp:$LedgerName:$$GroupPurchase
    IncomeLed             :    $$IsLedOfGrp:$LedgerName:$$GroupDirectIncomes or $$IsLedOfGrp:$LedgerName:$$GroupIndirectIncomes or $$IsLedOfGrp:$LedgerName:$$GroupSales
    TransVchLedFilter     :      $Name != $LedgerName
    IsnotEmptyLedger     :     Not $$IsEmpty:$DebitTotals or not $$IsEmpty:$CreditTotals
    TDSLed                :    $Ledgername contains "TDS" and $Ledgername not contains "GST" and  $Ledgername not contains "rec"
    
    
     


Share This Page