... | ... | @@ -14,19 +14,43 @@ Returns a list of each inventory of a warehouse and its details |
|
|
{"status": true, "inventorys": [{"name": "passad\u00eds 1", "inventory_id": 1, "location": "Magatzem Central", "date": "20/10/2020", "filter": "none"}]}
|
|
|
```
|
|
|
|
|
|
#### /app/inventory_product
|
|
|
- **Method:** `GET`
|
|
|
- **Params**
|
|
|
- - **token**
|
|
|
- - **inventory_id**
|
|
|
- - **barcode**
|
|
|
- - **qty** (opcional)
|
|
|
- - **dbname**
|
|
|
**Return** if qty
|
|
|
- - **status**
|
|
|
|
|
|
**Return** if not qty
|
|
|
- - **status**
|
|
|
- - **product_info**
|
|
|
- - **serial**
|
|
|
- - **theorical_qty** |
|
|
# /app/inventory_product *(POST)*
|
|
|
|
|
|
Returns the information of a product or updates this product in this inventory (if qty)
|
|
|
|
|
|
**Params**
|
|
|
* `token` *(required)*
|
|
|
* `dbname` *(required)*
|
|
|
* `inventory_id` *(required)*
|
|
|
* `barcode` *(required)*
|
|
|
* `qty` *(optional)*
|
|
|
|
|
|
**Return without qty:** *JSON*
|
|
|
|
|
|
**Example return:**
|
|
|
```
|
|
|
{"status": true, "theorical_qty": 0.0, "serial": true, "product_info": "IFP0571-BROTHER MFC-L9570CDW"}
|
|
|
```
|
|
|
|
|
|
**Return with qty:** *JSON*
|
|
|
|
|
|
**Example return:**
|
|
|
```
|
|
|
{"status": true, "inventory_product": ""}
|
|
|
```
|
|
|
|
|
|
# /app/inventory_validate *(POST)*
|
|
|
|
|
|
Returns a list of each inventory of a warehouse and its details
|
|
|
|
|
|
**Params**
|
|
|
* `token` *(required)*
|
|
|
* `dbname` *(required)*
|
|
|
* `inventory_id` *(required)*
|
|
|
|
|
|
**Return:** *JSON*
|
|
|
|
|
|
**Example return:**
|
|
|
```
|
|
|
{"status": true, "inventory_product": ""}
|
|
|
``` |