diff --git a/applications/accounting/config/AccountingUiLabels.xml b/applications/accounting/config/AccountingUiLabels.xml index 056ac1bf0c..0d5f71f136 100644 --- a/applications/accounting/config/AccountingUiLabels.xml +++ b/applications/accounting/config/AccountingUiLabels.xml @@ -1656,6 +1656,9 @@ ความคิดเห็น 评论 + + Commission Run + شركات Firmen @@ -6848,6 +6851,9 @@ หมายเลขบัตรประกัน 卡的安全码 + + Select The Parties For Commission Invoice + تعليم الصكوك كمرسلة Mark Checks Sent diff --git a/applications/accounting/webapp/accounting/WEB-INF/controller.xml b/applications/accounting/webapp/accounting/WEB-INF/controller.xml index 0b0233f542..6698081b98 100644 --- a/applications/accounting/webapp/accounting/WEB-INF/controller.xml +++ b/applications/accounting/webapp/accounting/WEB-INF/controller.xml @@ -2158,6 +2158,11 @@ under the License. + + + + + @@ -2427,6 +2432,7 @@ under the License. - + + diff --git a/applications/accounting/webapp/ap/invoices/CommissionRun.ftl b/applications/accounting/webapp/ap/invoices/CommissionRun.ftl new file mode 100644 index 0000000000..ed6befdf88 --- /dev/null +++ b/applications/accounting/webapp/ap/invoices/CommissionRun.ftl @@ -0,0 +1,83 @@ +<#-- +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 > +
+
+ + ${uiLabelMap.OrderRunAction} +
+ + <#-- Header Begins --> + + + + + + + + + + + + + <#-- Header Ends--> + <#assign alt_row = false> + <#list invoices 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> + <#assign statusItem = invoice.getRelatedOneCache("StatusItem")> + class="alternate-row"> + + + + + + + + + + + + <#-- toggle the row color --> + <#assign alt_row = !alt_row> + +
${uiLabelMap.CommonSelectAll}${uiLabelMap.FormFieldTitle_invoiceId}${uiLabelMap.AccountingVendorParty}${uiLabelMap.CommonStatus}${uiLabelMap.AccountingReferenceNumber}${uiLabelMap.AccountingInvoiceDate}${uiLabelMap.AccountingDueDate}${uiLabelMap.AccountingAmount}${uiLabelMap.FormFieldTitle_paidAmount}${uiLabelMap.FormFieldTitle_outstandingAmount}
${invoice.get("invoiceId")}${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, invoice.partyIdFrom, false)?if_exists}${statusItem.get("description")?if_exists}${invoice.get("referenceNumber")?if_exists}${invoice.get("invoiceDate")?if_exists}${invoice.get("dueDate")?if_exists}<@ofbizCurrency amount=invoicePaymentInfo.amount isoCode=defaultOrganizationPartyCurrencyUomId/><@ofbizCurrency amount=invoicePaymentInfo.paidAmount isoCode=defaultOrganizationPartyCurrencyUomId/><@ofbizCurrency amount=invoicePaymentInfo.outstandingAmount isoCode=defaultOrganizationPartyCurrencyUomId/>
+
+<#else> +

${uiLabelMap.AccountingNoInvoicesFound}

+ diff --git a/applications/accounting/widget/ap/InvoiceScreens.xml b/applications/accounting/widget/ap/InvoiceScreens.xml index fd86da9051..1d7efbc09c 100644 --- a/applications/accounting/widget/ap/InvoiceScreens.xml +++ b/applications/accounting/widget/ap/InvoiceScreens.xml @@ -151,4 +151,44 @@ under the License. + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+
+
+
+
+
\ No newline at end of file diff --git a/applications/accounting/widget/ap/Menus.xml b/applications/accounting/widget/ap/Menus.xml index d980e8b348..2c0ed94c97 100644 --- a/applications/accounting/widget/ap/Menus.xml +++ b/applications/accounting/widget/ap/Menus.xml @@ -78,5 +78,8 @@ under the License. + + + diff --git a/applications/accounting/widget/ap/forms/InvoiceForms.xml b/applications/accounting/widget/ap/forms/InvoiceForms.xml index 6d3fc79706..3ec776e6cd 100644 --- a/applications/accounting/widget/ap/forms/InvoiceForms.xml +++ b/applications/accounting/widget/ap/forms/InvoiceForms.xml @@ -142,4 +142,18 @@ under the License. +
+ + + + + + + + + + + + +
\ No newline at end of file