Sales Order REST API  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Sales Order REST API

Postby minhhieu106 » Tue May 15, 2018 6:38 pm

Hi Mike,

I try to create New Credit Note but it always create Sales Order type.

Image

Below is the JSON with "CreditNote":true:

Code: Select all
{
   "DebtorID":"0000000061000000001V",
   "CreditNote":true,
   "InitiatedDate":"2018-04-13T00:00:00",
   "OrderNo":"STS00004",
   "SOReference":10000000000000307,
   "Lines":[ 
      { 
         "PartNo":"01140008",
         "QuantityOrdered":2.00000,
         "DiscountedPercentage":0.0,
         "DiscountedPrice":100.00000,
         "TaxRate":{ 
            "RecID":"GST02000000000000000",
            "Rate":10.00000
         }
      }
   ],
   "Payments":[ 
      { 
         "PaymentRef":"BankTransfer",
         "AmountPaid":-220.00000
      }
   ]
}


Please advise how to create Credit Note

Thanks,
Hieu
Attachments
Credit Note.PNG
minhhieu106
Occasional Contributor
Occasional Contributor
 
Posts: 49
Joined: Thu Mar 29, 2018 3:29 pm
Topics Solved: 0

Re: Sales Order REST API  Topic is solved

Postby Mike.Sheen » Wed May 16, 2018 5:41 pm

Hi Hieu,

I can confirm this is a bug - logged as DEV-6619.

I couldn't find a work-around - the fault is within the sales order business logic deserialisation.

Mike.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to REST API

Who is online

Users browsing this forum: No registered users and 1 guest