RequestInvoices.getClassificationHistory Method
It returns a datatable containing the classification history.
The following example will create a table:
The Trasaction Mode (TM) shows what classification has been made:
The Classification Post Mode (CPM) shows what method has been used for classification:
The column vatCategory will have a value different than -1, only when the CPM=1 has been used for classification.
The column vatExemptionCategory will have a value different than -1 only when the CPM=1 has been used for classification and only when the vatAmount is 0.00.
To classify a whole invoice at once and not line by line, use the Expenses Classification (whole Invoice) example.
| invoiceMark | classificationMark | entityVatNumber | transactionMode | classificationPostMode | lineNumber | amount | vatAmount | vatCategory | vatExemptionCategory | classificationCategory | classificationType | classificationVAT | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 400001887722040 | 400001901166885 | 555777001 | 0 | 0 | 1 | 100 | -1 | -1 | category2_3 | E3_585_016 | VAT_361 | expenses | |
| 400001887722135 | 400001901166886 | 555777001 | 0 | 1 | 1 | 251.57 | 60.38 | 1 | -1 | category2_3 | E3_585_016 | VAT_361 | expenses |
| 400001887722135 | 400001901166886 | 555777001 | 0 | 1 | 2 | 9.68 | 2.32 | 1 | -1 | category2_3 | E3_585_016 | VAT_361 | expenses |
| 400001887800211 | 400001901166887 | 555777001 | 0 | 0 | 1 | 55 | -1 | -1 | category2_3 | E3_585_016 | VAT_361 | expenses |
| TM | Description |
|---|---|
| 0 | Normal Classification |
| 1 | Invopice Rejection |
| 2 | Invoice Deviation |
| CPM | Description |
|---|---|
| 0 | Classification line by line |
| 1 | Classification of the whole Invoice |
The column vatExemptionCategory will have a value different than -1 only when the CPM=1 has been used for classification and only when the vatAmount is 0.00.
To classify a whole invoice at once and not line by line, use the Expenses Classification (whole Invoice) example.
DataTable classlHistory = rqd.getClassificationHistory(); DataGridView1.DataSource = classHistory;
This language is not supported or no code example is available.