EAMWarehouse

package
v5.1.43 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InWarehouseLog

func InWarehouseLog(args *ArgsInWarehouseLog) (err error)

InWarehouseLog 批次入库

func Init

func Init()

Init 初始化

func MoveWarehouseLog

func MoveWarehouseLog(args *ArgsMoveWarehouseLog) (err error)

MoveWarehouseLog 批次移库

func OutWarehouseLog

func OutWarehouseLog(args *ArgsOutWarehouseLog) (err error)

OutWarehouseLog 批次出库

Types

type ArgsGetWarehouseList

type ArgsGetWarehouseList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//库存产品ID
	ProductID int64 `db:"product_id" json:"productID" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `json:"isRemove" check:"bool"`
}

ArgsGetWarehouseList 获取列表参数

type ArgsGetWarehouseLog

type ArgsGetWarehouseLog struct {
}

ArgsGetWarehouseLog 获取库存批次列表参数

type ArgsInWarehouseLog

type ArgsInWarehouseLog struct {
}

ArgsInWarehouseLog 批次入库参数

type ArgsMoveWarehouseLog

type ArgsMoveWarehouseLog struct {
}

ArgsMoveWarehouseLog 批次移库参数

type ArgsOutWarehouseLog

type ArgsOutWarehouseLog struct {
}

ArgsOutWarehouseLog 批次出库参数

type FieldsWarehouse

type FieldsWarehouse struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//库存产品ID
	ProductID int64 `db:"product_id" json:"productID" check:"id"`
	//库存数量
	Count int64 `db:"count" json:"count" check:"int64Than0"`
	//当前总金额
	Total int64 `db:"total" json:"total" check:"int64Than0"`
	//单价金额
	// 平均价格
	Price int64 `db:"price" json:"price" check:"int64Than0"`
}

FieldsWarehouse 库存台帐

func GetWarehouseList

func GetWarehouseList(args *ArgsGetWarehouseList) (dataList []FieldsWarehouse, dataCount int64, err error)

GetWarehouseList 获取列表

type FieldsWarehouseLog

type FieldsWarehouseLog struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//分公司ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//库存产品ID
	ProductID int64 `db:"product_id" json:"productID" check:"id"`
	//采购订单ID
	OrderID int64 `db:"order_id" json:"orderID" check:"id"`
	//库存数量
	Count int64 `db:"count" json:"count" check:"int64Than0"`
	//当前总金额
	Total int64 `db:"total" json:"total" check:"int64Than0"`
	//单价金额
	Price int64 `db:"price" json:"price" check:"int64Than0"`
	//质保过期时间
	// 根据入库时间+产品质保时间计算
	WarrantyAt time.Time `db:"warranty_at" json:"warrantyAt"`
}

FieldsWarehouseLog 库存批次

func GetWarehouseLog

func GetWarehouseLog(args *ArgsGetWarehouseLog) (dataList []FieldsWarehouseLog, dataCount int64, err error)

GetWarehouseLog 获取库存批次列表

Jump to

Keyboard shortcuts

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