purchaseOrder

package
v0.0.0-...-10721fb Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJccPurchaseOrder

func AddJccPurchaseOrder(m *JccPurchaseOrder, o orm.Ormer) (id int64, err error)

func AgreePurchaseOrderById

func AgreePurchaseOrderById(orderid int64) error

func CheckExistById

func CheckExistById(params JccPurchaseOrder) error

func CheckOrder

func CheckOrder(info request.GoodsOrderInfo, orderId int) (int, error)

func CheckReturnOrder

func CheckReturnOrder(info request.GoodsOrderInfo, orderId int) (int, error)

func CompletePurchaseOrderById

func CompletePurchaseOrderById(db orm.Ormer, orderid int64) error

func QueryGoodsIdTotalByOrderId

func QueryGoodsIdTotalByOrderId(orderIds string) (total int, err error)

通过jcc_purchase_goods查询goods_id的总数

func QueryNewOrderId

func QueryNewOrderId(orderIds string, page, pageSize, isPage int) (ids []int, err error)

去重复操作并取查询中最新的一条数据

func QueryOrderCompanyIdByOrderId

func QueryOrderCompanyIdByOrderId(orderId int) (companyRoomId int, err error)

查询该订单的商品所在的仓库id

func QueryOrderIdByOrderSn

func QueryOrderIdByOrderSn(orderSn string) (int, error)

通过订单编号查询订单id

func QueryReturnOrderIdByOrderSn

func QueryReturnOrderIdByOrderSn(orderSn string) (int, error)

通过订单编号查询订单id

func RejectPurchaseOrderById

func RejectPurchaseOrderById(orderid int64) error

func UpdateGoodOrderTotalMoney

func UpdateGoodOrderTotalMoney(info request.GoodsOrderInfo, orderId int, db orm.Ormer) (int64, error)

修改订单商品总价

func UpdateLog

func UpdateLog(OrderIDs string, o orm.Ormer) error

func UpdatePurchaseGoods

func UpdatePurchaseGoods(o orm.Ormer, order_id int64, goods_id int64, goodss_id int) error

func UpdatePurchaseOrderTotleMoney

func UpdatePurchaseOrderTotleMoney(info *request.PurchaseOrderInfo, db orm.Ormer) (int64, error)

修改订单总价

func UpdateReturnGoodOrderTotalMoney

func UpdateReturnGoodOrderTotalMoney(info request.GoodsOrderInfo, orderId int, db orm.Ormer) (int64, error)

修改订单商品总价

func UpdateReturnOrderTotleMoney

func UpdateReturnOrderTotleMoney(info *request.PurchaseOrderInfo, db orm.Ormer) (int64, error)

修改退货订单总价

Types

type CheckPurchaseOrder

type CheckPurchaseOrder struct {
	Id             int    `orm:"column(id);auto"`
	Ordersn        string `orm:"column(ordersn);size(255)" description:"订单编号"`
	Printing_times int    `orm:"column(printing_times)" description:"打印次数"`
}

func CheckList

func CheckList(company_id string, orderid string, start_page int, end_page int, page int, o orm.Ormer) ([]CheckPurchaseOrder, int, error)

type JccPurchaseGoods

type JccPurchaseGoods struct {
	Id          int     `orm:"column(id);auto"`
	GoodsId     int     `orm:"column(goods_id)" description:"商品id"`
	OrderId     int     `orm:"column(order_id)" description:"订单id"`
	SupplierId  int     `orm:"column(supplier_id)" description:"供应商id"`
	BuyingPrice float64 `orm:"column(buying_price);digits(11);decimals(2)" description:"单价"`
	Num         float64 `orm:"column(num);null;digits(11);decimals(2)" description:"数量"`
	UnitId      int     `orm:"column(unit_id)" description:"单位id"`
	Discount    string  `orm:"column(discount);size(50);null" description:"折扣"`
	Money       float64 `orm:"column(money);null;digits(11);decimals(2)" description:"金额"`
	CreatedAt   int     `orm:"column(created_at);null" description:"创建时间"`
	UpdatedAt   int     `orm:"column(updated_at);null" description:"修改时间"`
	IsDel       int8    `orm:"column(is_del);null" description:"是否删除"`
}

func QueryPurchaseGoods

func QueryPurchaseGoods(order_id int64) (list []JccPurchaseGoods, err error)

type JccPurchaseOrder

type JccPurchaseOrder struct {
	Id            int64   `orm:"column(id);auto"`
	BossId        int     `orm:"column(boss_id)" description:"用户id"`
	Ordersn       string  `orm:"column(ordersn);size(255)" description:"订单编号"`
	BusinessType  int8    `orm:"column(business_type);null" description:"业务类型(0:默认为采购;-1为驳回;2:为异常)"`
	Address       string  `orm:"column(address);size(255);null" description:"收货地址"`
	Telphone      string  `orm:"column(telphone);size(30);null" description:"收货电话"`
	CompanyroomId int     `orm:"column(companyroom_id);null" description:"仓库id"`
	OrderMoney    float64 `orm:"column(order_money);null;digits(11);decimals(2)" description:"订单金额"`
	AffCompany    int     `orm:"column(aff_company);null" description:"公司id"`
	Status        int8    `orm:"column(status);null" description:"是否提交草稿箱"`
	Type          int8    `orm:"column(type);null" description:"审核入库('0':未审核;'1':待入库;'2':已完成)"`
	Approver      string  `orm:"column(approver);size(255)" description:"审批人"`
	Savetime      int     `orm:"column(savetime);null" description:"审核时间"`
	Remark        string  `orm:"column(remark);size(255);null" description:"备注"`
	CreatedAt     int     `orm:"column(created_at)" description:"创建时间"`
	UpdatedAt     int     `orm:"column(updated_at)" description:"修改时间"`
	DeletedAt     int     `orm:"column(deleted_at)" description:"删除时间"`
	IsDel         int8    `orm:"column(is_del);null" description:"是否删除"`
	Kind          string  `` /* 133-byte string literal not displayed */
}

func QueryPurchaseOrderById

func QueryPurchaseOrderById(orderid int64) (list JccPurchaseOrder, err error)

type T

type T struct {
	Data      []CheckPurchaseOrder
	Total     int
	Last_page int
}

Jump to

Keyboard shortcuts

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