| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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. |
| --> |
| |
| <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd"> |
| <screen name="CommonBillingAccountDecorator"> |
| <section> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <!-- do check for ACCOUNTING, _VIEW permission --> |
| <condition> |
| <if-has-permission permission="ACCOUNTING" action="_VIEW"/> |
| </condition> |
| <widgets> |
| <platform-specific> |
| <html><html-template location="component://accounting/webapp/accounting/billingaccount/BillingAccountTabBar.ftl"/></html> |
| </platform-specific> |
| |
| <decorator-section-include name="body"/> |
| |
| </widgets> |
| <fail-widgets> |
| <label style="head3">${uiLabelMap.AcccountingViewPermissionError}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="FindBillingAccount"> |
| <section> |
| <actions> |
| <set field="title" value="Find Billing Account(s)"/> |
| <set field="titleProperty" value="PageTitleFindBillingAccount"/> |
| <set field="headerItem" value="billingaccount"/> |
| |
| <script location="component://accounting/webapp/accounting/WEB-INF/actions/billingaccount/FindBillingAccount.bsh"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://accounting/webapp/accounting/billingaccount/FindBillingAccount.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditBillingAccount"> |
| <section> |
| <actions> |
| <set field="title" value="Edit Billing Account"/> |
| <set field="titleProperty" value="PageTitleEditBillingAccount"/> |
| <set field="headerItem" value="billingaccount"/> |
| <set field="tabButtonItem" value="EditBillingAccount"/> |
| <property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD" /> |
| <set field="billingAccountId" from-field="parameters.billingAccountId"/> |
| <entity-one entity-name="BillingAccount" value-name="billingAccount"/> |
| <set field="partyId" from-field="parameters.partyId"/> |
| <set field="roleTypeId" from-field="parameters.roleTypeId"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonBillingAccountDecorator"> |
| <decorator-section name="body"> |
| <include-form name="EditBillingAccount" location="component://accounting/widget/BillingAccountForms.xml"/> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditBillingAccountRoles"> |
| <section> |
| <actions> |
| <set field="title" value="Edit Billing Account Roles"/> |
| <set field="titleProperty" value="PageTitleEditBillingAccountRoles"/> |
| <set field="headerItem" value="billingaccount"/> |
| <set field="tabButtonItem" value="EditBillingAccountRoles"/> |
| |
| <set field="billingAccountId" from-field="parameters.billingAccountId"/> |
| <entity-one entity-name="BillingAccount" value-name="billingAccount"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonBillingAccountDecorator"> |
| <decorator-section name="body"> |
| <include-form name="ListBillingAccountRoles" location="component://accounting/widget/BillingAccountForms.xml"/> |
| <include-form name="AddBillingAccountRole" location="component://accounting/widget/BillingAccountForms.xml"/> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditBillingAccountTerms"> |
| <section> |
| <actions> |
| <set field="title" value="Edit Billing Account Terms"/> |
| <set field="titleProperty" value="PageTitleEditBillingAccountTerms"/> |
| <set field="headerItem" value="billingaccount"/> |
| <set field="tabButtonItem" value="EditBillingAccountTerms"/> |
| |
| <script location="component://accounting/webapp/accounting/WEB-INF/actions/billingaccount/EditBillingAccountTerms.bsh"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonBillingAccountDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://accounting/webapp/accounting/billingaccount/EditBillingAccountTerms.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="BillingAccountInvoices"> |
| <section> |
| <actions> |
| <set field="title" value="Billing Account Invoices"/> |
| <set field="titleProperty" value="PageTitleEditBillingAccountInvoices"/> |
| <set field="headerItem" value="billingaccount"/> |
| <set field="tabButtonItem" value="BillingAccountInvoices"/> |
| |
| <script location="component://accounting/webapp/accounting/WEB-INF/actions/billingaccount/BillingAccountInvoices.bsh"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonBillingAccountDecorator"> |
| <decorator-section name="body"> |
| <include-form name="ListInvoices" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="BillingAccountPayments"> |
| <section> |
| <actions> |
| <set field="title" value="Billing Account Payments"/> |
| <set field="titleProperty" value="PageTitleEditBillingAccountPayments"/> |
| <set field="headerItem" value="billingaccount"/> |
| <set field="tabButtonItem" value="BillingAccountPayments"/> |
| |
| <script location="component://accounting/webapp/accounting/WEB-INF/actions/billingaccount/BillingAccountPayments.bsh"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonBillingAccountDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://accounting/webapp/accounting/billingaccount/BillingAccountPayments.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |