zoukankan
html css js c++ java
锁定库位
有时候需要锁定某个库位不允许其出库或者入库,可以通过 库存管理->设置->库存细分->位置->其他->锁定->输入已锁定或者输出已锁定来设置.
在InventMovent的
checkLocationBlocking
方法中可以看到它的逻辑:
boolean checkLocationBlocking(InventDim inventDimLocation
=
null
)
{
boolean ret
=
true
;
WMSLocation WMSLocation;
InventDim inventDimThis;
;
if
(
!
this
.mustCheckLocationBlocking())
return
true
;
inventDimThis
=
inventDimLocation;
if
(
!
inventDimLocation.wMSLocationId)
{
inventDimThis
=
this
.inventdim();
if
(
!
inventDimThis.wMSLocationId)
return
true
;
}
WMSLocation
=
inventDimThis.WMSLocation();
if
(
!
WMSLocation)
return
true
;
if
(WMSLocation.InputBlockingCauseId
&&
this
.transQty()
>
0
)
ret
=
checkFailed(strfmt(
"
@SYS72264
"
, inventDimThis.wMSLocationId));
if
(WMSLocation.OutputBlockingCauseId
&&
this
.transQty()
<
0
)
ret
=
checkFailed(strfmt(
"
@SYS72265
"
, inventDimThis.wMSLocationId));
return
ret;
}
AX对于一些逻辑的处理,大部分通过是否来判定,比如是否过账财务库存之类的,而有一些是通过有无来判定,比如是否锁定,它就取决于是否选择了锁定库位的理由来判定,类似的还有是否过账到折扣科目也是通过是否选择了折扣科目来处理的.
个人觉得还是通过是否来判断比较好,无非加个字段而已.
查看全文
相关阅读:
枚举工具类:封装判断是否存在这个枚举
MYSQL插入emoji报错解决方法Incorrect string value
文件大小转换带上单位工具类(文件byte自动转KBMBGB)
mysql 统计七天数据并分组
mybatis plus 和 druid 版本导致LocalDateTime 不兼容问题
Layui弹框中select下拉列表赋值回显
查看环境版本
Linux 常用命令
安装jdk14的坑
modbus_tk解析
原文地址:https://www.cnblogs.com/Farseer1215/p/1085955.html
最新文章
flink爬坑记录一
flink run参数
flink-Stream解析canal-json数据
flink 自定义ProcessFunction方法
flink下沉数据到kafka
flink下沉数据到mysql
中山大学考研913电子技术数字和模拟 真题及答案 辅导及答疑
WARNING !
struct应用_1058 选择题 (20 分)
stringstream_PTA 1077 互评成绩计算 (20 分)
热门文章
C++ PTA 1035 插入与归并 (25 分)
使用python发送QQ邮件
Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available)
解决python cannot find reference xxx in imported module xxx
669. Trim a Binary Search Tree 修剪二叉搜索树 Java
213. House Robber II 打家劫舍 IIJava
springboot+mybatisplus+druid多数据源
Vue路由懒加载
VUE页面跳转,停留在上一页面的位置的解决方案
lombok的踩坑
Copyright © 2011-2022 走看看