[Document] Remaining products

[{ // ADDED "product": { "id": 1, "name": "132392 - KitKat", "uom": "PCS" }, "unissued_quantity": 2, "available_storage_bins": [ { "storage_bin": 1, "storage_bin_name": "SB1 - Storage bin 01", "available_quantity": 6 }, { "storage_bin": 2, "storage_bin_name": "SB2 - Storage bin 02", "available_quantity": 5 }, { "storage_bin": 3, "storage_bin_name": "SB3 - Storage bin 03", "available_quantity": 8 }, ] }, { // ... }]
The Sample API Response
Module name: available products of a document
Sample view: Response

**Request**
URL: "/api/sale-order/<id>/remaining-products/" which the id is the sale order's ID.
Parameters: { type, updateOfDocID } where type represents the sale order's document type and updateOfDoc is the SO document's index to be updated.
Example URL: /api/sale-order/1/remaining-products/?type=19&updateOfDocID=7
Request Method: GET

3 Responses

unit_discount_type -> unit_discount_display_type
ordered_quantity -> order_quantity
ordered_amount -> order_amount
I changed it back to ordered_quantity and ordered_amount

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.