-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
安全库存功能BUG #43
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
安全库存功能出现BUG,分析问题如下:
ModernWMS/backend/ModernWMS.WMS/Services/Stock/StockService.cs
文件SafetyStockPageAsync
函数这个查询通过关联 goodslocation表拿到了warehouse_id。
用这个数据集再去查询的时候
join gl in location_DBSet on sg.warehouse_id equals gl.id
如上,使用了warehouse_id 和 goodslocation.id 去关联,导致仓库显示错误。并且也可能会导致
qty_available = gl.warehouse_area_property == 5 ? 0 : (sg.qty - sg.qty_frozen - (dp.qty_locked == null ? 0 : dp.qty_locked) - (pl.qty_locked == null ? 0 : pl.qty_locked) - (m.qty_locked == null ? 0 : m.qty_locked))
数据出错。
The text was updated successfully, but these errors were encountered: