.. highlight:: xml .. _cash-flow-table-xml: Cash flow ========= The cash flow document defines the costs and incomes of harvest and sivicultural operations used. An example of the document contents is given below, for a comprehensive description of all the possible content options see the `schema document `_. Data continuation and abbreviated content expressed as …: The root level tag contains a reference to the schema document which is used to validate the content of the XML document:: In the cash flow tables a positive value refers income and negative cost. A Cash flow table named "timber_prices" is an example of table with classifiers:: … The *logged*-attribute controls whether the cash flow values from the table are stored in the database (in case price tracking is on). The classifiers for the cash flow table are used to give a different value for different variable combinations. A classifier can be a data variable like the `PRICE_REGION` attribute from ``comp_unit`` level and `SP` attribute from ``stratum`` level:: … PRICE_REGION comp_unit SP stratum If logging is set on, *to_db*-attribute for each classifier controls whether the classifier value is stored in the database together with the actual cash flow value. A variable within a operation model can also be used as a classifier. Here the `assortment`, the `diameter` and the `length` attributes are used. The `assortment` attribute can get two different values: `1` or `2`. `1` refers to `log` and `2` `pulp` wood:: … assortment within-operation diameter within-operation length within-operation Here in the table the timber prices for the certain attribute combinations are given. First five digits are classifiers and the last is the timber price:: … 1 1 1 160 370 551 1 1 160 400 551 1 2 70 270 15
A very basic cash flow table named "scarification" is used as a example of table without classifiers. In the table there is only one digit given. It is the cost of certain soil preparation, scarification:: … -250
Dated tables ************ It's possible for the base to consist of several tables. In this case the valid time period for each table can be given as attributes for the element::
Trends ****** Trend element is used for defining a trend over time for cash flow, eg. increase in the average price level over time:: Time period for a trend is given in and elements as xs:date values:: … 2007-01-01 2011-12-31 Trends can be classified like the cash flow table values, so that different attribute combinations get different trends:: … SP stratum assortment within-operation Cumulative factors for the trends are given in similar way as the cash flow table values. The value for variable y_t at year t is calculated by interpolating between years t_start and t_end, using values y_start and y_start + y_start * trend:: … 1 1 0.05 1 2 -0.02 2 1 0.12 2 2 0.03