u
This commit is contained in:
@@ -86,5 +86,18 @@ export const quote = {
|
||||
return http(`/api/quote/${id}/file/${fileId}`, { method: 'DELETE' });
|
||||
},
|
||||
// #endregion
|
||||
|
||||
/**
|
||||
* POST /api/quote/:id/order
|
||||
* Converts quote into sales order.
|
||||
* @param {number|string} id Quote ID
|
||||
* @param {object} [body] Optional overrides: { number, date, entityId, externalNumber, lines }
|
||||
* → 201 { order: Order }
|
||||
*/
|
||||
// #region POST /api/quote/:id/order — createOrder
|
||||
createOrder(id, body = {}) {
|
||||
return http(`/api/quote/${id}/order`, { method: 'POST', body });
|
||||
},
|
||||
// #endregion
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user