设计:
  库存明细表中增加是否分公司入库的标记IsBranchIn,初始值为零。只有经过分公司入库才改变其值。
所涉及的表:tbl_stockdetail.通过sql语句:
1.根据仓库日期
select top 12 * from tbl_stockdetail where billtype = 2 and branchno = {0}
and stockdate = {} and stockbillid in
(select stockbillid form tbl_stock where department = {2} and billtype = 2)
stockbillid = {1}
2.
update tbl_stockdetail set IsBranchIn = 1
where pkid = {0} and billtype = 2 and branchno = {2}

相关文章:

  • 2021-09-30
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-04-07
  • 2021-10-12
猜你喜欢
  • 2021-12-10
  • 2021-12-16
  • 2021-10-16
  • 2021-10-25
  • 2021-08-03
  • 2021-10-18
  • 2021-10-25
相关资源
相似解决方案