controller

package
v0.0.0-...-91ffa7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableStock

func AvailableStock(c *gin.Context)

download available product in inventory

func CreateMinventory

func CreateMinventory(c *gin.Context)

Create Inventory location

func CreateMproduct

func CreateMproduct(c *gin.Context)

Create Product

func DeleteMinventory

func DeleteMinventory(c *gin.Context)

remove a inventory location

func DeleteMproduct

func DeleteMproduct(c *gin.Context)

delete product

func DoInout

func DoInout(p InoutParam) error

the main function of the inventory application Automatically update stock data in the warehouse and record the history of product IN and OUT Automatically detect it's sales order / purchase order

IN = Put the product into the warehouse OUT = Eject product from the warehouse P = Purchase Order S = Sales Order

func FetchAllMinventory

func FetchAllMinventory(c *gin.Context)

fetch all inventory location

func FetchAllMproduct

func FetchAllMproduct(c *gin.Context)

fetch all product

func GoodReceipt

func GoodReceipt(c *gin.Context)

download good receipt

func GoodShipment

func GoodShipment(c *gin.Context)

download good shipment

func Inout

func Inout(c *gin.Context)

the main function of the inventory application this API Serve to update the stock of goods out / in from the warehouse please use IN / OUT for inout type IN = Put the product into the warehouse OUT = Eject product from the warehouse

func IssetProduct

func IssetProduct(id string) error

func SalesOrder

func SalesOrder(c *gin.Context)

download report sales order

func UpdateMinventory

func UpdateMinventory(c *gin.Context)

update a inventory location

func UpdateMproduct

func UpdateMproduct(c *gin.Context)

update a product

func UploadStock

func UploadStock(c *gin.Context)
Migration data inventory

this migration process takes several steps: 1. creating order dummy so system can get information about product, purchase price & last stock 2. move order data to inventory

func ValueofProduct

func ValueofProduct(c *gin.Context)

download report value of product

Types

type InoutParam

type InoutParam struct {
	Inout_type      string
	M_inventory_id  string
	M_product_id    string
	T_order_line_id int
	Inout_qty       int
	Description     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL