Commit Graph

287 Commits

Author SHA1 Message Date
DXC
1ad57da2a7 chore: remove legacy inventory stocktake menu and permission configs 2026-03-20 09:34:36 +08:00
DXC
b375cbfe25 fix: add stocktake and adjustment modules to role permission assignment UI 2026-03-20 09:31:33 +08:00
DXC
4223a95f10 feat: generate permission sql for stocktake modules and implement single-device login restriction 2026-03-20 09:11:54 +08:00
DXC
faea0379da refactor: replace transfer outbound type with production outbound across frontend and backend 2026-03-19 17:13:24 +08:00
DXC
53c198f363 feat: fix stocktake deletion bug, and add pagination, search, sorting to stocktake lists 2026-03-19 16:21:09 +08:00
DXC
fa8b113f9d fix: implement sequential order_no generation and enforce UTC+8 Beijing time for adjustments 2026-03-19 15:42:36 +08:00
DXC
b37049a4d7 feat: add generate-missing logic to identify unscanned stock as inventory loss 2026-03-19 15:34:54 +08:00
DXC
6cc3d1b6e0 feat: upgrade adjustment workflow to require explicit inbound SKU or outbound tracking number and fix UTC timezone issue 2026-03-19 15:26:40 +08:00
DXC
ae63748060 feat: refactor stocktake import flow to use a preview-and-select dialog 2026-03-19 15:16:20 +08:00
DXC
50cf63414f feat: fix 401 auth error and bridge stocktake discrepancies to adjustment module 2026-03-19 14:36:56 +08:00
DXC
09869667c8 fix: add extend_existing=True to StockAdjustment model to resolve MetaData conflict 2026-03-19 14:25:43 +08:00
DXC
c55eed0d75 fix: remove duplicate StockAdjustment model from stocktake.py to fix SQLAlchemy MetaData conflict 2026-03-19 14:20:27 +08:00
DXC
d8a57ab66e feat: initialize inventory profit and loss adjustment module 2026-03-19 12:06:32 +08:00
DXC
7867fc5e40 fix: resolve TypeError between float and Decimal in stocktake excel export 2026-03-19 11:47:31 +08:00
DXC
8db1015f99 fix: implement traffic-light color warning and correct ascending sort for overdue borrow records 2026-03-19 11:45:27 +08:00
DXC
a32d4f6b65 fix: resolve 500 error on excel export by aligning headers and data row lengths for remark field 2026-03-19 11:41:53 +08:00
DXC
b74464df6b feat: add descending sort by return date and color-coded warning for impending returns 2026-03-19 11:40:38 +08:00
DXC
a19167e804 fix: add missing remark header to stocktake excel export 2026-03-19 11:36:48 +08:00
DXC
0bc0908b9b fix: ensure remark field is properly parsed and saved to database during stocktake update 2026-03-19 11:27:40 +08:00
DXC
83745caacc feat: create models and SQL schemas for stocktake remarks and inventory adjustments 2026-03-19 10:56:40 +08:00
dxc
a32acad191 Merge remote-tracking branch 'origin/2.0权限管理' into 2.0权限管理 2026-03-19 10:50:47 +08:00
DXC
6596ce2458 fix: move keyword search filter to outer query to fix outerjoin bypass bug in material list 2026-03-19 10:43:09 +08:00
DXC
ebb7969807 fix: correct targeted search logic for material/stock list to prevent unrelated results 2026-03-19 09:49:21 +08:00
DXC
878d11af28 fix: reset stock quantity color and enforce location validation for all inbound operations 2026-03-18 17:04:23 +08:00
DXC
367dceef31 feat: add master summary sheet to stocktake excel export 2026-03-18 14:57:12 +08:00
DXC
f6153fc10d feat: add unscanned items sheet to stocktake export and fix user real name mapping 2026-03-18 14:48:49 +08:00
DXC
a5f4d32306 fix: map correct user real name for stocktake excel export 2026-03-18 14:43:24 +08:00
DXC
41a4518911 fix: map correct database fields for spec and location in excel export 2026-03-18 14:37:09 +08:00
DXC
00781422eb fix: correct excel export formatting (timezone, spec, user, location) and add auto-polling for collaborative stocktake 2026-03-18 14:22:01 +08:00
DXC
ac15ef74db fix: resolve MaterialBase sku property error and add dynamic refresh after stock adjustment 2026-03-18 14:01:36 +08:00
DXC
33969b8336 fix: support stock adjustment for items without stocktake draft 2026-03-18 13:53:55 +08:00
DXC
e08012d9dd fix: add missing imports for openpyxl and patch draft resolution in stock adjustment 2026-03-18 13:24:16 +08:00
DXC
49a66f9be3 fix: resolve 500 error in excel export and 404 in stock adjust 2026-03-18 11:46:38 +08:00
DXC
54ea476206 refactor: unify variance calculation and implement backend Excel export with borrowed assets sheet 2026-03-18 11:10:54 +08:00
DXC
79d4a365e0 feat: add partial return support with returned_quantity tracking 2026-03-18 10:41:19 +08:00
DXC
11f5a1f51e fix: patch validation bypass for mandatory inspection 2026-03-17 13:26:17 +08:00
DXC
c1c494893f feat: implement dynamic inspection requirement logic based on material master data 2026-03-17 11:56:04 +08:00
DXC
332f928c78 refactor: simplify stocktake flow without DB schema changes and remove invalid field queries 2026-03-13 10:45:37 +08:00
DXC
13c7357b6f fix: resolve sqlalchemy f405 type casting error on stocktake query 2026-03-13 10:33:17 +08:00
DXC
d61de5cfc9 fix: send correct numeric user_id to stocktake draft api to prevent 500 error 2026-03-13 10:25:17 +08:00
DXC
7e23141870 refactor: redesign stocktake flow to require manual discrepancy audit and individual adjustments 2026-03-13 09:59:01 +08:00
DXC
dbe6997ca7 feat: add inventory descending as fallback sort for normal items and ensure list refresh after warning setup 2026-03-12 09:46:18 +08:00
DXC
58a519a62f fix: refactor advanced filters to use WHERE for subquery columns and rewrite warning sort in pure order_by expressions 2026-03-12 09:40:10 +08:00
dxc
d8e86959b8 fix: 基础信息排序问题 2026-03-12 09:29:50 +08:00
DXC
3ecdb121d2 \"fix: remove list brackets from case() for SQLAlchemy 2.0 compatibility\" 2026-03-12 08:56:08 +08:00
DXC
7e403a87cd \"fix: let frontend dictate warning sort flag and add SQL numeric casting\" 2026-03-12 08:53:09 +08:00
DXC
f0ec9a68d7 \"fix: use explicit labels and native text order_by to enforce strict warning logic\" 2026-03-11 17:35:27 +08:00
DXC
6bc2d2848e \"fix: rewrite warning sort logic with proper case syntax and is_(True)\" 2026-03-11 17:28:50 +08:00
DXC
d0fa474ee4 \"fix: auto enable warning sort based on permission when no manual sort specified\" 2026-03-11 17:21:31 +08:00
DXC
404577e6b5 \"fix: improve warning sort logic - red group by shortage desc, yellow group by safety distance asc\" 2026-03-11 17:17:10 +08:00