Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A patch from Pierre Smits "Add a basic VAT report with frequency sett…

…ing" https://issues.apache.org/jira/browse/OFBIZ-6225

This is a 1st stage, we will add more later, notably totals as a 1st step and then a more complete report but still basic

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674587 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 08ba1af08b506f00a384e5f48fa9d7602edf9ebc 1 parent 23f606a
Jacques Le Roux authored
View
9 applications/accounting/webapp/accounting/WEB-INF/controller.xml
@@ -1566,6 +1566,12 @@ under the License.
<response name="success" type="view" value="EditTaxAuthorityPartyInfo"/>
<response name="error" type="view" value="EditTaxAuthorityPartyInfo"/>
</request-map>
+ <request-map uri="FindTaxAuthorityReport">
+ <security https="true" auth="true"/>
+ <response name="success" type="view" value="FindTaxAuthorityReport"/>
+ <response name="error" type="view" value="FindTaxAuthorityReport"/>
+ </request-map>
+
<!-- ================ Administratvie Requests ================ -->
<request-map uri="ListCompanies">
@@ -2844,7 +2850,8 @@ under the License.
<view-map name="EditTaxAuthorityRateProducts" type="screen" page="component://accounting/widget/TaxAuthorityScreens.xml#EditTaxAuthorityRateProducts"/>
<view-map name="ListTaxAuthorityParties" type="screen" page="component://accounting/widget/TaxAuthorityScreens.xml#ListTaxAuthorityParties"/>
<view-map name="EditTaxAuthorityPartyInfo" type="screen" page="component://accounting/widget/TaxAuthorityScreens.xml#EditTaxAuthorityPartyInfo"/>
-
+ <view-map name="FindTaxAuthorityReport" type="screen" page="component://accounting/widget/TaxAuthorityScreens.xml#FindTaxAuthorityReport"/>
+
<!-- administrative pages -->
<view-map name="ListCompanies" type="screen" page="component://accounting/widget/GlSetupScreens.xml#ListCompanies"/>
<view-map name="AddCompany" type="screen" page="component://accounting/widget/GlSetupScreens.xml#AddCompany"/>
View
29 applications/accounting/widget/TaxAuthorityForms.xml
@@ -405,4 +405,33 @@ under the License.
<field use-when="partyTaxAuthInfo!=null" name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="buttontext"><submit button-type="text-link"/></field>
<field use-when="partyTaxAuthInfo==null" name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
</form>
+
+
+ <!-- Tax Authority Tax Reports forms -->
+ <form name="FindTaxAuthorityReport" type="single" target="FindTaxAuthorityReport"
+ title="Find and list VAT report for a tax authority, my month, quater or other period"
+ header-row-style="header-row" default-table-style="basic-table">
+ <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
+ <field name="hideSearch"><hidden value="Y"/></field>
+ <field name="taxAuthPartyId"><hidden/></field>
+ <field name="taxAuthGeoId"><hidden/></field>
+ <field name="invoiceDate"><date-find type="date" default-option-from="greaterThanFromDayStart" default-option-thru="upThruDay"/></field>
+ <field name="submitButton" title="${uiLabelMap.CommonSearch}" widget-style="buttontext" >
+ <submit button-type="button"/>
+ </field>
+ </form>
+
+ <form name="ListTaxAuthorityReport" list-name="listIt" title="" type="list"
+ odd-row-style="alternate-row" header-row-style="header-row-2"
+ default-table-style="basic-table hover-bar">
+ <actions>
+ <service service-name="performFind" result-map="result" result-map-list="listIt">
+ <field-map field-name="inputFields" from-field="parameters"/>
+ <field-map field-name="entityName" value="InvoiceItem"/>
+ <field-map field-name="viewIndex" from-field="viewIndex"/>
+ <field-map field-name="viewSize" from-field="viewSize"/>
+ </service>
+ </actions>
+ <auto-fields-entity entity-name="InvoiceItem" default-field-type="display"/>
+ </form>
</forms>
View
6 applications/accounting/widget/TaxAuthorityMenus.xml
@@ -59,5 +59,11 @@ under the License.
<parameter param-name="taxAuthGeoId"/>
</link>
</menu-item>
+ <menu-item name="FindTaxAuthorityReport" title="${uiLabelMap.CommonReport}">
+ <link target="FindTaxAuthorityReport">
+ <parameter param-name="taxAuthPartyId"/>
+ <parameter param-name="taxAuthGeoId"/>
+ </link>
+ </menu-item>
</menu>
</menus>
View
24 applications/accounting/widget/TaxAuthorityScreens.xml
@@ -264,4 +264,28 @@ under the License.
</widgets>
</section>
</screen>
+
+ <!-- reporting -->
+ <screen name="FindTaxAuthorityReport">
+ <section>
+ <actions>
+ <set field="headerItem" value="invoices"/>
+ <set field="titleProperty" value="TaxAuthorityReport"/>
+ <set field="tabButtonItem" value="FindTaxAuthorityReport"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="CommonTaxAuthorityDecorator" location="${parameters.taxAuthDecoratorLocation}">
+ <decorator-section name="body">
+ <screenlet title="${uiLabelMap.CommonFind}">
+ <include-form name="FindTaxAuthorityReport" location="component://accounting/widget/TaxAuthorityForms.xml"/>
+ </screenlet>
+ <screenlet title="${uiLabelMap.CommonSearchResults}" navigation-form-name="ListTaxAuthorityReport">
+ <include-form name="ListTaxAuthorityReport" location="component://accounting/widget/TaxAuthorityForms.xml"/>
+ </screenlet>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
</screens>
Please sign in to comment.
Something went wrong with that request. Please try again.