From a2287e8f6cb3f1ebedf840bc86d99cd863d4f565 Mon Sep 17 00:00:00 2001 From: Ashish Vijaywargiya Date: Fri, 10 Jul 2009 13:23:23 +0000 Subject: [PATCH] =?UTF-8?q?Applied=20patch=20from=20jira=20issue=20OFBIZ-2?= =?UTF-8?q?713=20-=20Invoice=20generation=20from=20Commission=20Run=20Impl?= =?UTF-8?q?emented:=20=E2=80=93=20Initial=20screen=20for=20sales=20invoice?= =?UTF-8?q?=20search=20and=20list=20form.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks Amit. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792939 13f79535-47bb-0310-9956-ffa450edef68 --- .../accounting/config/AccountingUiLabels.xml | 6 ++ .../webapp/accounting/WEB-INF/controller.xml | 8 +- .../webapp/ap/invoices/CommissionRun.ftl | 83 +++++++++++++++++++ .../accounting/widget/ap/InvoiceScreens.xml | 40 +++++++++ applications/accounting/widget/ap/Menus.xml | 3 + .../widget/ap/forms/InvoiceForms.xml | 14 ++++ 6 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 applications/accounting/webapp/ap/invoices/CommissionRun.ftl 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