# TaxReductions: Fortnox Tax Reductions Retrieve a list of tax reductions - Catalog: `Fortnox` - Schema: `TaxReductions` - Primary Keys: `Id` - Label: Tax Reductions Can retrieve data and change data using insert, update and delete. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `TaxReductions`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `filter` | `` | ☐ | | possibility to filter tax reductions (Values: invoices, orders, offers) | | `financialyear` | `` | ☐ | | Selects what financial year that should be used (does not work on every table). | | `financialyeardate` | `` | ☐ | | Selects by date, what financial year that should be used (does not work on every table). | | `fromdate` | `` | ☐ | | Defines a selection based on a start date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). | | `lastmodified` | `` | ☐ | | Retrieves all records since the provided timestamp (does not work on every table). | | `todate` | `` | ☐ | | Defines a selection based on an end date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). | ## Columns of Table Function The columns of the table function `TaxReductions` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `ApprovedAmount` | `double` | Approved Amount | ☐ | | | `AskedAmount` | `double` | Asked Amount | ☐ | | | `BilledAmount` | `double` | Billed Amount | ☐ | | | `CustomerName` | `varchar2(2147483647)` | Customer Name | ☐ | | | `Id` | `int32` | ID | ☐ | | | `PropertyDesignation` | `varchar2` | Property Designation | ☐ | | | `ReferenceDocumentType` | `varchar2` | Reference Document Type | ☐ | | | `ReferenceNumber` | `int32` | Reference Number | ☐ | | | `RequestSent` | `datetime` | Request Sent | ☐ | | | `ResidenceAssociationOrganisationNumber` | `varchar2` | Residence Association Organisation Number | ☐ | | | `SocialSecurityNumber` | `varchar2(13)` | Social Security Number | ☐ | | | `TypeOfReduction` | `varchar2` | | ☐ | | | `VoucherNumber` | `varchar2` | Voucher Number | ☐ | | | `VoucherSeries` | `varchar2` | Voucher Series | ☐ | | | `VoucherYear` | `varchar2` | Voucher Year | ☐ | | | `WorkType` | `varchar2` | Work Type | ☐ | | | `c_url` | `varchar2` | Call URL | ☐ | |