Start Stock_Summary

This commit is contained in:
Dany De Bontridder 2012-06-16 23:42:17 +00:00
parent adf8c9fd5d
commit 7c878ea9db
6 changed files with 261 additions and 8 deletions

View file

@ -320,4 +320,8 @@ select migrate_stock();
drop function migrate_stock();
update attr_def set ad_type='card', ad_extra='[sql] fd_id = 500000 ' where ad_id=19;
update attr_def set ad_type='card', ad_extra='[sql] fd_id = 500000 ' where ad_id=19;
create table tmp_stockgood (s_id bigserial primary key,s_date timestamp default now());
create table tmp_stockgood_detail(d_id bigserial primary key,s_id bigint references tmp_stockgood(s_id) on delete cascade,
sg_code text,s_qin numeric(20,4),s_qout numeric(20,4),r_id bigint);