Merhaba
Rest ile satinalma faturasi olusturmak istiyorum ve asagidaki hatayi aliyorum
{
"Message": "The request is invalid.",
"ModelState": {
"OtherError": [
"Record details could not be inserted into database."
],
"DBError": [
"42000 : At least one of the following parameters must be specified. \"@recipients, @copy_recipients, @blind_copy_recipients\"."
]
}
---------------
gonerdiyim body
"DOC_NUMBER": "1120240425140350",
"ARP_CODE": "SIR.0000068",
"DATE": "2024-04-26T16:12:14.465Z",
"TYPE": 1,
"DIVISION": 1,
"SOURCE_WH": 1,
"AUXIL_CODE": "AUXIL_CODE",
"AFFECT_RISK": 0,
"transactions": {
"items": [
"TYPE": 0,
"MASTER_CODE": "000000000000000000000004",
"QUANTITY": 10.0,
"PRICE": 13.5,
"UNIT_CODE": "KQ",
"SOURCEINDEX": 0,
"VAT_INCLUDED": 1,
"VAT_RATE": 0.00,
"VAT_AMOUNT": 0.00,
"CURR_PRICE": 162,
"UNIT_CONV1": 1,
"UNIT_CONV2": 1
},
"SOURCEINDEX": 1,
"TYPE": 3,
"ADD_EXPENSES": 2.7,
"EXPENSE_RATE": 2.0
"DISCOUNT_RATE": 5.0,
"TYPE": 2,
"ADD_DISCOUNTS": 6.75
"DETAIL_LEVEL": 1,
"ADD_EXPENSES": 2.7
"ADD_DISCOUNTS": 6.75,
"DETAIL_LEVEL": 1
"company": {
"id": 1
"working_period": {
"document_type": "PURCHASE_INVOICE",
"DOC_DATE": "2024-04-24T22:03:48.000Z"
Cevap vermek için giriş yapmanız gerekmektedir.
Soru sormak için lütfen oturum açınız.
Logosphere kullanıcı ve parolası ile giriş yapabilirsiniz.
purchaseInvoices
01/05/24 08:17   Tiger/REST 2.81Merhaba
Rest ile satinalma faturasi olusturmak istiyorum ve asagidaki hatayi aliyorum
{
"Message": "The request is invalid.",
"ModelState": {
"OtherError": [
"Record details could not be inserted into database."
],
"DBError": [
"42000 : At least one of the following parameters must be specified. \"@recipients, @copy_recipients, @blind_copy_recipients\"."
]
}
}
---------------
gonerdiyim body
{
"DOC_NUMBER": "1120240425140350",
"ARP_CODE": "SIR.0000068",
"DATE": "2024-04-26T16:12:14.465Z",
"TYPE": 1,
"DIVISION": 1,
"SOURCE_WH": 1,
"AUXIL_CODE": "AUXIL_CODE",
"AFFECT_RISK": 0,
"transactions": {
"items": [
{
"TYPE": 0,
"MASTER_CODE": "000000000000000000000004",
"QUANTITY": 10.0,
"PRICE": 13.5,
"UNIT_CODE": "KQ",
"SOURCEINDEX": 0,
"VAT_INCLUDED": 1,
"VAT_RATE": 0.00,
"VAT_AMOUNT": 0.00,
"CURR_PRICE": 162,
"UNIT_CONV1": 1,
"UNIT_CONV2": 1
},
{
"SOURCEINDEX": 1,
"TYPE": 3,
"ADD_EXPENSES": 2.7,
"EXPENSE_RATE": 2.0
},
{
"DISCOUNT_RATE": 5.0,
"SOURCEINDEX": 1,
"TYPE": 2,
"ADD_DISCOUNTS": 6.75
},
{
"SOURCEINDEX": 1,
"TYPE": 3,
"DETAIL_LEVEL": 1,
"ADD_EXPENSES": 2.7
},
{
"SOURCEINDEX": 1,
"CURR_PRICE": 162,
"TYPE": 2,
"ADD_DISCOUNTS": 6.75,
"DETAIL_LEVEL": 1
}
]
},
"company": {
"id": 1
},
"working_period": {
"id": 1
},
"document_type": "PURCHASE_INVOICE",
"DOC_DATE": "2024-04-24T22:03:48.000Z"
}