1、给系统参数表增加移动平均价标记 2、给实时库存表增加当前单价字段

This commit is contained in:
jishenghua
2024-05-21 23:22:29 +08:00
parent 45176c40fa
commit 9eaffcd88e
8 changed files with 211 additions and 17 deletions

View File

@@ -1586,4 +1586,13 @@ alter table jsh_account_item change remark remark varchar(500) DEFAULT NULL COMM
-- 给系统参数表增加多账户启用标记,开启后,采购订单、采购入库等单据可以进行多账户选择,升级的时候最好给老的租户进行批量设置为启用
-- --------------------------------------------------------
alter table jsh_system_config add multi_account_flag varchar(1) DEFAULT '0' COMMENT '多账户启用标记0未启用1启用' after in_out_manage_flag;
update jsh_system_config set multi_account_flag='1' where multi_account_flag='0';
update jsh_system_config set multi_account_flag='1' where multi_account_flag='0';
-- --------------------------------------------------------
-- 时间 2024年5月21日
-- by jishenghua
-- 给系统参数表增加移动平均价标记,默认关闭,开启之后将通过移动平均来计算成本价
-- 给实时库存表增加当前单价字段
-- --------------------------------------------------------
alter table jsh_system_config add move_avg_price_flag varchar(1) DEFAULT '0' COMMENT '移动平均价启用标记0未启用1启用' after multi_account_flag;
alter table jsh_material_current_stock add current_unit_price decimal(24,6) DEFAULT NULL COMMENT '当前单价' after current_number;