Implemented form to list, in the fixed asset depreciation screen, the accounting transactions created for the fixed asset.

Fixed a couple of invalid simple method operations I committed in my last commit.
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899158 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2010-01-14 10:59:44 +00:00
parent 108d37cdad
commit 01707fdddb
4 changed files with 27 additions and 2 deletions
@@ -1787,6 +1787,7 @@ under the License.
<alias entity-alias="ATR" name="receiptId"/>
<alias entity-alias="ATR" name="inventoryItemId"/>
<alias entity-alias="ATR" name="workEffortId"/>
<alias entity-alias="ATR" name="fixedAssetId"/>
<alias entity-alias="ATR" name="physicalInventoryId"/>
<alias entity-alias="ATE" name="acctgTransId"/>
<alias entity-alias="ATE" name="acctgTransEntrySeqId"/>
@@ -592,7 +592,7 @@ under the License.
</calcop>
</calculate>
<calculate field="depreciationTotal">
<calcop operator="sum">
<calcop operator="add">
<calcop operator="get" field="depreciationTotal"/>
<calcop operator="get" field="depreciation"/>
</calcop>
@@ -677,7 +677,7 @@ under the License.
</calcop>
</calculate>
<calculate field="depreciationTotal">
<calcop operator="sum">
<calcop operator="add">
<calcop operator="get" field="depreciationTotal"/>
<calcop operator="get" field="depreciation"/>
</calcop>
@@ -624,4 +624,27 @@ under the License.
<field name="depreciationTotal"><display type="currency" currency="${fixedAsset.purchaseCostUomId}"/></field>
<field name="nbv" title="Net Book Value"><display type="currency" currency="${fixedAsset.purchaseCostUomId}"/></field>
</form>
<form name="FixedAssetTransactions" type="list"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="AcctgTransAndEntries" list="fixedAssetTransactions">
<condition-expr field-name="fixedAssetId" from-field="fixedAssetId"/>
<order-by field-name="transactionDate"/>
<order-by field-name="debitCreditFlag"/>
</entity-condition>
</actions>
<field name="acctgTransId" widget-style="buttontext">
<hyperlink target="EditAcctgTrans" description="${acctgTransId}" also-hidden="false">
<parameter param-name="acctgTransId"/>
<parameter param-name="organizationPartyId"/>
</hyperlink>
</field>
<field name="transTypeDescription"><display/></field>
<field name="transactionDate"><display/></field>
<field name="accountCode"><display/></field>
<field name="accountName"><display/></field>
<field name="amount"><display type="currency" currency="${currency}"/></field>
<field name="debitCreditFlag"><display/></field>
<field name="isPosted"><display/></field>
</form>
</forms>
@@ -524,6 +524,7 @@ under the License.
<include-form name="AddFixedAssetDepMethod" location="component://accounting/widget/FixedAssetForms.xml"/>
<include-form name="ListFixedAssetDepMethods" location="component://accounting/widget/FixedAssetForms.xml"/>
<include-form name="ListFixedAssetDepreciations" location="component://accounting/widget/FixedAssetForms.xml"/>
<include-form name="FixedAssetTransactions" location="component://accounting/widget/FixedAssetForms.xml"/>
</screenlet>
</widgets>
</section>