Fix fields in Finance methods (#45)
Fixed operation type field in getting transaction list Fixed fields in params for getting finance realization report
This commit is contained in:
@@ -21,12 +21,12 @@ type ReportOnSoldProductsResponse struct {
|
|||||||
core.CommonResponse
|
core.CommonResponse
|
||||||
|
|
||||||
// Query result
|
// Query result
|
||||||
Result []ReportonSoldProductsResult `json:"result"`
|
Result ReportonSoldProductsResult `json:"result"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReportonSoldProductsResult struct {
|
type ReportonSoldProductsResult struct {
|
||||||
// Report title page
|
// Report title page
|
||||||
Header []ReportOnSoldProductsResultHeader `json:"header"`
|
Header ReportOnSoldProductsResultHeader `json:"header"`
|
||||||
|
|
||||||
// Report table
|
// Report table
|
||||||
Rows []ReportOnSoldProductsResultRow `json:"rows"`
|
Rows []ReportOnSoldProductsResultRow `json:"rows"`
|
||||||
@@ -272,7 +272,7 @@ type ListTransactionsFilter struct {
|
|||||||
Date ListTransactionsFilterDate `json:"date"`
|
Date ListTransactionsFilterDate `json:"date"`
|
||||||
|
|
||||||
// Operation type
|
// Operation type
|
||||||
OperationType string `json:"operation_type"`
|
OperationType []string `json:"operation_type"`
|
||||||
|
|
||||||
// Shipment number
|
// Shipment number
|
||||||
PostingNumber string `json:"posting_number"`
|
PostingNumber string `json:"posting_number"`
|
||||||
|
|||||||
@@ -26,10 +26,8 @@ func TestReportOnSoldProducts(t *testing.T) {
|
|||||||
Date: "2022-09",
|
Date: "2022-09",
|
||||||
},
|
},
|
||||||
`{
|
`{
|
||||||
"result": [
|
"result": {
|
||||||
{
|
"header": {
|
||||||
"header": [
|
|
||||||
{
|
|
||||||
"doc_date": "2022-09-22",
|
"doc_date": "2022-09-22",
|
||||||
"num": "string",
|
"num": "string",
|
||||||
"start_date": "2022-09-02",
|
"start_date": "2022-09-02",
|
||||||
@@ -45,8 +43,7 @@ func TestReportOnSoldProducts(t *testing.T) {
|
|||||||
"doc_amount": 1,
|
"doc_amount": 1,
|
||||||
"vat_amount": 1,
|
"vat_amount": 1,
|
||||||
"currency_code": "string"
|
"currency_code": "string"
|
||||||
}
|
},
|
||||||
],
|
|
||||||
"rows": [
|
"rows": [
|
||||||
{
|
{
|
||||||
"row_number": 0,
|
"row_number": 0,
|
||||||
@@ -71,7 +68,6 @@ func TestReportOnSoldProducts(t *testing.T) {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}`,
|
}`,
|
||||||
"",
|
"",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user