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"`
|
||||||
|
|||||||
@@ -25,55 +25,51 @@ func TestReportOnSoldProducts(t *testing.T) {
|
|||||||
&ReportOnSoldProductsParams{
|
&ReportOnSoldProductsParams{
|
||||||
Date: "2022-09",
|
Date: "2022-09",
|
||||||
},
|
},
|
||||||
`{
|
`{
|
||||||
"result": [
|
"result": {
|
||||||
{
|
"header": {
|
||||||
"header": [
|
"doc_date": "2022-09-22",
|
||||||
{
|
"num": "string",
|
||||||
"doc_date": "2022-09-22",
|
"start_date": "2022-09-02",
|
||||||
"num": "string",
|
"stop_date": "2022-09-22",
|
||||||
"start_date": "2022-09-02",
|
"contract_date": "2022-09-02",
|
||||||
"stop_date": "2022-09-22",
|
"contract_num": "string",
|
||||||
"contract_date": "2022-09-02",
|
"payer_name": "string",
|
||||||
"contract_num": "string",
|
"payer_inn": "string",
|
||||||
"payer_name": "string",
|
"payer_kpp": "string",
|
||||||
"payer_inn": "string",
|
"rcv_name": "string",
|
||||||
"payer_kpp": "string",
|
"rcv_inn": "string",
|
||||||
"rcv_name": "string",
|
"rcv_kpp": "string",
|
||||||
"rcv_inn": "string",
|
"doc_amount": 1,
|
||||||
"rcv_kpp": "string",
|
"vat_amount": 1,
|
||||||
"doc_amount": 1,
|
"currency_code": "string"
|
||||||
"vat_amount": 1,
|
},
|
||||||
"currency_code": "string"
|
"rows": [
|
||||||
}
|
{
|
||||||
],
|
"row_number": 0,
|
||||||
"rows": [
|
"product_id": 0,
|
||||||
{
|
"product_name": "string",
|
||||||
"row_number": 0,
|
"offer_id": "string",
|
||||||
"product_id": 0,
|
"barcode": "string",
|
||||||
"product_name": "string",
|
"price": 0,
|
||||||
"offer_id": "string",
|
"commission_percent": 0,
|
||||||
"barcode": "string",
|
"price_sale": 0,
|
||||||
"price": 0,
|
"sale_qty": 0,
|
||||||
"commission_percent": 0,
|
"sale_amount": 0,
|
||||||
"price_sale": 0,
|
"sale_discount": 0,
|
||||||
"sale_qty": 0,
|
"sale_commission": 0,
|
||||||
"sale_amount": 0,
|
"sale_price_seller": 0,
|
||||||
"sale_discount": 0,
|
"return_sale": 0,
|
||||||
"sale_commission": 0,
|
"return_qty": 0,
|
||||||
"sale_price_seller": 0,
|
"return_amount": 0,
|
||||||
"return_sale": 0,
|
"return_discount": 0,
|
||||||
"return_qty": 0,
|
"return_commission": 0,
|
||||||
"return_amount": 0,
|
"return_price_seller": 0
|
||||||
"return_discount": 0,
|
}
|
||||||
"return_commission": 0,
|
]
|
||||||
"return_price_seller": 0
|
}
|
||||||
}
|
}`,
|
||||||
]
|
"",
|
||||||
}
|
|
||||||
]
|
|
||||||
}`,
|
|
||||||
"",
|
|
||||||
},
|
},
|
||||||
// Test No Client-Id or Api-Key
|
// Test No Client-Id or Api-Key
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user