on 2019 Nov 16 1:16 PM
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
Youy business partner has currency in EURO. therefore when you are passing currency in USD then its giving ERROR.your business partner currency automatically come on transaction document and according to transaction document currency you can pass currency at line level.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ahmet,
Please set the currency of the BP to All Currencies.
Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Johan,
Yes, "CurSource":"C"
Request:
{"U_LGSFT_eFatNum":"ETRU201900001002","CardCode":"C000000162","CardName":"Customer ", "DocCurrency":"TRY","DocRate":1.0,"BPLId":165,"DocDate":"2019-11-27","DocDueDate":"2019-12-22", "TaxDate":"2019-11-27","Comments":"","DiscPrcnt":0,"DocStatus":"O","GroupNum":"25", "CurSource":"C","XiOperationType":"TRUCK","XiTransportDirection":"D", "xiOperationName":"","XiFirm":"164", "DocumentLines":[ {"ItemCode":"HZM10000", "Quantity":1.0,"Price":100.00, "Currency":"USD", "Rate":5.7486, "DiscPrcnt":0, "VatGroup":"S01", "TotalSumSy":100.00, "UomCode":"piece", "XiOperationType":"TRUCK"} ] }
***
Business partner
"CardCode" : "C000000162"
"Currency" : "##"
Hi Johan,
Thank you for your interest.
https://ip:50000/b1s/v1/SBOBobService_GetLocalCurrency
response: TRY
https://ip:50000/b1s/v1/SBOBobService_GetSystemCurrency
response:USD
Do you know how can I set System Currency USD to TRY ?
Maybe I can change USD exchange rate in invoice.
Regards
Ahmet Pehlivan
User | Count |
---|---|
103 | |
7 | |
7 | |
6 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.