From 1c8f39c41f903d3c07e8efc8dc49ef7014b45b8e Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 02 七月 2024 18:27:01 +0800 Subject: [PATCH] 未选出入库类型的业务操作在仓库月度报表里归为其他 --- constvar/const.go | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/constvar/const.go b/constvar/const.go index f465a7e..7ddf618 100644 --- a/constvar/const.go +++ b/constvar/const.go @@ -333,9 +333,30 @@ TakeStock // 鐩樼偣绫诲瀷 ) +const ( + InputTotalHeader string = "鍏ュ簱鍚堣" + OutPutTotalHeader string = "鍑哄簱鍚堣" +) + func (t MiniDictType) Valid() bool { if t <= 0 { return false } return true } + +// BoolType 甯冨皵绫诲瀷 +type BoolType int + +const ( + BoolTypeTrue BoolType = 1 // true + BoolTypeFalse BoolType = 2 // false +) + +func (slf BoolType) IsValid() bool { + return slf == BoolTypeTrue || slf == BoolTypeFalse +} + +func (slf BoolType) Bool() bool { + return slf == BoolTypeTrue +} -- Gitblit v1.8.0