Hello,
Sometimes I want to use different exchange rates from the ORTT table.
when I send USD rate at DocumentLines I get error.
(I don't get an error when I send the Euro rate.)
Do you have a solution?
Request:
https://ip:50000/b1s/v1/Invoices
{ "CardCode" : "C000000162", "CardName" : "CUST NAME", "DocCurrency" : "TRY", "DocRate" : "1", "BPLId" : "165", "DocDate" : "2019-11-15", "DocDueDate" : "2019-12-30", "TaxDate" : "2019-11-15", "Comments" : "", "DiscPrcnt" : "0", "DocStatus" : "O", "GroupNum" : "45", "DocumentLines" : [ { "ItemCode" : "HZM10000", "Quantity" : "1", "Price" : "100", "Currency" : "USD", "Rate" : "6", "DiscPrcnt" : "0", "VatGroup" : "S01", "TotalSumSy" : "100", "UomCode" :"piece" } ] }
Response:
{ "error": { "code": -10, "message": { "lang": "en-us", "value": "Rate in row should have matched document rate. " } } }
Best regards
Ahmet Pehlivan