Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • minorisa-app minorisa-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Sergi Zamora
  • minorisa-appminorisa-app
  • Wiki
  • Api routes
  • Inventories

Inventories · Changes

Page history
Update Inventories authored Nov 25, 2020 by Sergi Zamora's avatar Sergi Zamora
Hide whitespace changes
Inline Side-by-side
API-Routes/Inventories.md
View page @ eb3f58ab
......@@ -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": ""}
```
Clone repository
  • API Routes
    • Deliveries
    • Expeditions
    • General
    • Inventories
    • Receptions
    • SAT
    • Search Product
  • Build App
    • Android
    • iOS
  • Development
    • Introduction
    • Start Development Environment
  • Home