您好,欢迎光临青岛用友软件销售公司网站! 企业邮箱:lupeng@yonyou-qdypy.com

百科问答

先进先出法仓库结转年前和年后对不上

  • 作者:网络
  • 发布时间:2019-05-04 17:34:32
  • 点击:141


问题解答:修改前请备份帐套,年结前在09年账套中,先用附件“重写计价辅助表”工具重算,重算后再执行以下脚本:update IA_valuationass set cflag='暂估记账' from IA_valuationass left join (select * from ia_subsidiary where (isnull(iainquantity,0)- isnull(iaoutquantity,0))>0 ) IA_SubT+ab on IA_SubT+ab.id=IA_valuationass.inid left join warehouse on IA_SubT+ab.cwhcode=warehouse.cwhcode where IA_valuationass.dikeepdate=IA_SubT+ab.dkeepdate and (Warehouse.cWhvaluestyle='先进先出法' or Warehouse.cWhvaluestyle='后进先出法') And (IA_SubT+ab.iMonth>0 or (IA_SubTab.iMonth=0 and IA_SubTab.cVouType='34')) and IA_SubTab.bflag=1 and cflag is null。