<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->
<#if finAccountTransList?has_content && parameters.noConditionFind?exists && parameters.noConditionFind == 'Y'> <#if !grandTotal?exists>
${uiLabelMap.AccountingRunningTotal} :
<#if !grandTotal?exists> <#assign glReconciliations = delegator.findByAnd("GlReconciliation", {"glAccountId" : finAccount.postToGlAccountId?if_exists, "statusId" : "GLREC_CREATED"}, Static["org.ofbiz.base.util.UtilMisc"].toList("reconciledDate DESC"))> <#if (glReconciliationId?has_content && (glReconciliationId == "_NA_" && finAccountTransList?has_content)) || !grandTotal?exists>
<#if grandTotal?exists> <#if glReconciliations?has_content> <#else> ${uiLabelMap.AccountingNoGlReconciliationExists} ${uiLabelMap.CommonClickHere} <#else>
<#-- Header Begins --> <#if grandTotal?exists> <#if !grandTotal?exists> <#if (parameters.glReconciliationId?has_content && parameters.glReconciliationId != "_NA_")> <#if ((glReconciliationId?has_content && glReconciliationId == "_NA_") && (glReconciliations?has_content && finAccountTransList?has_content)) || !grandTotal?exists> <#-- Header Ends--> <#assign alt_row = false> <#list finAccountTransList as finAccountTrans> <#assign payment = ""> <#assign payments = ""> <#assign status = ""> <#assign paymentType = ""> <#assign paymentMethodType = ""> <#assign glReconciliation = ""> <#assign partyName = ""> <#if finAccountTrans.paymentId?has_content> <#assign payment = delegator.findOne("Payment", {"paymentId" : finAccountTrans.paymentId}, true)> <#else> <#assign payments = delegator.findByAnd("Payment", {"finAccountTransId" : finAccountTrans.finAccountTransId})> <#assign finAccountTransType = delegator.findOne("FinAccountTransType", {"finAccountTransTypeId" : finAccountTrans.finAccountTransTypeId}, true)> <#if finAccountTrans.statusId?has_content> <#assign status = delegator.findOne("StatusItem", {"statusId" : finAccountTrans.statusId}, true)> <#if payment?has_content && payment.paymentTypeId?has_content> <#assign paymentType = delegator.findOne("PaymentType", {"paymentTypeId" : payment.paymentTypeId}, true)> <#if payment?has_content && payment.paymentMethodTypeId?has_content> <#assign paymentMethodType = delegator.findOne("PaymentMethodType", {"paymentMethodTypeId" : payment.paymentMethodTypeId}, true)> <#if finAccountTrans.glReconciliationId?has_content> <#assign glReconciliation = delegator.findOne("GlReconciliation", {"glReconciliationId" : finAccountTrans.glReconciliationId}, true)> <#if finAccountTrans.partyId?has_content> <#assign partyName = (delegator.findOne("PartyNameView", {"partyId" : finAccountTrans.partyId}, true))!> class="alternate-row"> <#if grandTotal?exists> <#if glReconciliationId?has_content && glReconciliationId != "_NA_"> <#if !(grandTotal?exists)> <#if (parameters.glReconciliationId?has_content && parameters.glReconciliationId != "_NA_")> <#if finAccountTrans.statusId == "FINACT_TRNS_CREATED"> <#if ((glReconciliationId?has_content && glReconciliationId == "_NA_") && (glReconciliations?has_content && finAccountTransList?has_content)) || !grandTotal?exists> <#if finAccountTrans.statusId == "FINACT_TRNS_CREATED"> <#-- toggle the row color --> <#assign alt_row = !alt_row>
${uiLabelMap.FormFieldTitle_finAccountTransId} ${uiLabelMap.FormFieldTitle_finAccountTransTypeId} ${uiLabelMap.PartyParty} ${uiLabelMap.FormFieldTitle_glReconciliationName} ${uiLabelMap.FormFieldTitle_transactionDate} ${uiLabelMap.FormFieldTitle_entryDate} ${uiLabelMap.CommonAmount} ${uiLabelMap.FormFieldTitle_paymentId} ${uiLabelMap.OrderPaymentType} ${uiLabelMap.FormFieldTitle_paymentMethodTypeId} ${uiLabelMap.CommonStatus} ${uiLabelMap.CommonComments}${uiLabelMap.AccountingCancelTransactionStatus} ${uiLabelMap.AccountingRemoveFromGlReconciliation} ${uiLabelMap.CommonSelectAll}
<#if payments?has_content> ${finAccountTrans.finAccountTransId} ${uiLabelMap.AccountingDepositSlip} <#else> ${finAccountTrans.finAccountTransId} ${finAccountTransType.description?if_exists} <#if partyName?has_content>${(partyName.firstName)!} ${(partyName.lastName)!} ${(partyName.groupName)!}[${(partyName.partyId)!}] <#if glReconciliation?has_content>${glReconciliation.glReconciliationName?if_exists}[${glReconciliation.glReconciliationId?if_exists}] ${finAccountTrans.transactionDate?if_exists} ${finAccountTrans.entryDate?if_exists} ${finAccountTrans.amount?if_exists} <#if finAccountTrans.paymentId?has_content> ${finAccountTrans.paymentId} <#if paymentType?has_content>${paymentType.description?if_exists} <#if paymentMethodType?has_content>${paymentMethodType.description?if_exists} <#if status?has_content>${status.description?if_exists} ${finAccountTrans.comments?if_exists} <#if finAccountTrans.statusId?has_content && finAccountTrans.statusId == 'FINACT_TRNS_CREATED'> ${uiLabelMap.CommonCancel} ${uiLabelMap.CommonRemove}
<#list finAccountTransList as finAccountTrans>
<#if grandTotal?exists> <#list finAccountTransList as finAccountTrans> <#if finAccountTrans.statusId?has_content && finAccountTrans.statusId == 'FINACT_TRNS_CREATED'>
${uiLabelMap.FormFieldTitle_grandTotal} / ${uiLabelMap.AccountingNumberOfTransaction} ${uiLabelMap.AccountingCreatedGrandTotal} / ${uiLabelMap.AccountingNumberOfTransaction} ${uiLabelMap.AccountingApprovedGrandTotal} / ${uiLabelMap.AccountingNumberOfTransaction} ${uiLabelMap.AccountingCreatedApprovedGrandTotal} / ${uiLabelMap.AccountingNumberOfTransaction}
${grandTotal} / ${searchedNumberOfRecords} ${createdGrandTotal} / ${totalCreatedTransactions} ${approvedGrandTotal} / ${totalApprovedTransactions} ${createdApprovedGrandTotal} / ${totalCreatedApprovedTransactions}
<#else>
${uiLabelMap.AccountingRunningTotal} / ${uiLabelMap.AccountingNumberOfTransaction} ${uiLabelMap.AccountingOpeningBalance} ${uiLabelMap.FormFieldTitle_reconciledBalance} ${uiLabelMap.FormFieldTitle_closingBalance}
/ <@ofbizCurrency amount=glReconciliation.openingBalance?default('0')/> <@ofbizCurrency amount=glReconciliation.reconciledBalance?default('0')/> <@ofbizCurrency amount=glReconciliationApprovedGrandTotal?if_exists/>
<#else>

${uiLabelMap.CommonNoRecordFound}