<#-- 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 invoices?has_content> <#assign invoiceList = invoices.getCompleteList() /> <#assign eliClose = invoices.close() /> <#if invoiceList?has_content && (parameters.noConditionFind)?if_exists == 'Y'>
${uiLabelMap.AccountingRunningTotalOutstanding} :
<#assign alt_row = false> <#list invoiceList as invoice> <#assign invoicePaymentInfoList = dispatcher.runSync("getInvoicePaymentInfoList", Static["org.ofbiz.base.util.UtilMisc"].toMap("invoiceId", invoice.invoiceId, "userLogin", userLogin))/> <#assign invoicePaymentInfo = invoicePaymentInfoList.get("invoicePaymentInfoList").get(0)?if_exists> class="alternate-row"> <#-- toggle the row color --> <#assign alt_row = !alt_row>
${uiLabelMap.FormFieldTitle_invoiceId} ${uiLabelMap.FormFieldTitle_invoiceTypeId} ${uiLabelMap.AccountingInvoiceDate} ${uiLabelMap.CommonStatus} ${uiLabelMap.CommonDescription} ${uiLabelMap.AccountingVendorParty} ${uiLabelMap.AccountingToParty} ${uiLabelMap.AccountingAmount} ${uiLabelMap.FormFieldTitle_paidAmount} ${uiLabelMap.FormFieldTitle_outstandingAmount} ${uiLabelMap.CommonSelectAll}
${invoice.get("invoiceId")} <#assign invoiceType = delegator.findOne("InvoiceType", {"invoiceTypeId" : invoice.invoiceTypeId}, true) /> ${invoiceType.description?default(invoice.invoiceTypeId)} ${(invoice.invoiceDate)?if_exists} <#assign statusItem = delegator.findOne("StatusItem", {"statusId" : invoice.statusId}, true) /> ${statusItem.description?default(invoice.statusId)} ${(invoice.description)?if_exists} ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, invoice.partyIdFrom, false)?if_exists} [${(invoice.partyIdFrom)?if_exists}] ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, invoice.partyId, false)?if_exists} [${(invoice.partyId)?if_exists}] <@ofbizCurrency amount=invoicePaymentInfo.amount isoCode=defaultOrganizationPartyCurrencyUomId/> <@ofbizCurrency amount=invoicePaymentInfo.paidAmount isoCode=defaultOrganizationPartyCurrencyUomId/> <@ofbizCurrency amount=invoicePaymentInfo.outstandingAmount isoCode=defaultOrganizationPartyCurrencyUomId/>
<#else>

${uiLabelMap.AccountingNoInvoicesFound}