Commit Graph

229 Commits

Author SHA1 Message Date
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
DXC
4bf5a23d31 \"fix: add missing imports for db and MaterialBase in base.py\" 2026-03-11 17:10:07 +08:00
DXC
6b932f79a8 fix: Ð޸´Ԥ¾¯ÉèÖÃÖÐãÐֵΪ null µ¼Öºó¶Ë 500 ±ÀÀ£µÄÎÊÌ⣬²¢Ôö¼Óǰºó¶˰²ȫУÑé 2026-03-11 17:06:19 +08:00
dxc
b1cc280a71 feat: 重构全局搜索框为复合条件选择,支持按名称、俗名、规格进行精准查杂 2026-03-11 13:37:52 +08:00
dxc
e224a07a47 feat: 升级预警批量设置交互,引入批量操作模式切换,提升界面整洁度与体验 2026-03-11 13:28:11 +08:00
dxc
d2d9abe201 全局审计日fix: 使用鸭子类型强制安全解包 SQLAlchemy Row 对象,彻底解决 to_dict 报错志 2026-03-11 13:11:16 +08:00
DXC
ac97c6066b feat: 升级审计装饰器,支持自动抓取并记录 API 请求体作为变更明细 2026-03-10 17:36:02 +08:00
DXC
cd192624b9 fix: 统一系统生成时间为北京时间(UTC+8)并优化审计日志表格列展示 2026-03-10 17:33:14 +08:00
dxc
de0a5c8db2 全局审计日志 2026-03-10 17:27:54 +08:00