阳光网驿-企业信息化交流平台【DTC零售连锁全渠道解决方案】

 找回密码
 注册

QQ登录

只需一步,快速开始

扫描二维码登录本站

手机号码,快捷登录

老司机
查看: 1749|回复: 1

[转帖] 包装物退回参照不到没有退回的包装物

[复制链接]

该用户从未签到

发表于 2008-4-9 16:04:06 | 显示全部楼层 |阅读模式
U6普及版(原u8普及版3.0)

包装物退回参照不到没有退回的包装物
问题现象: 8.11升级到普及3.0,升级后包装物做退回时看不到以前数据,看过数据库里相对应的表没有记录!
原因分析: 原老版本包装物年结不结转,升级后导致看不到上年还没有退回的包装物!
解决方案: 1、先做好数据备份 2、打开SQL查询分析器打ufdata_010_2007这个数据库 3、然后执行下面的脚本 INSERT INTO ufdata_010_2008..SA_WrapLease(bIWLType, cWLCode, cCusCode, cDLCode, cSBVCode, cInvCode, dDate, iWLAmount, iWLMoney, cReceiver, iHandBackAmount, iHandBackMoney, cMemo, cHandler, DLID, cDepCode, SBVID, cItemCode, cItem_class, iVTid) Select bIWLType, cWLCode, cCusCode, cDLCode, cSBVCode, cInvCode, dDate, iWLAmount, iWLMoney, cReceiver, iHandBackAmount, iHandBackMoney, cMemo, cHandler, DLID, cDepCode, SBVID, cItemCode, cItem_class, iVTid from SA_WrapLease where cwlcode in ( SELECT SA_WrapLease_1.cWLCode FROM SA_WrapLease AS SA_WrapLease_1 LEFT JOIN SA_WrapLease ON SA_WrapLease_1.cWLCode = SA_WrapLease.cWLCode Where SA_WrapLease.bIWLType = 1 GROUP BY SA_WrapLease_1.cWLCode having Sum([SA_WrapLease_1].[iWLAmount])-Sum([SA_WrapLease_1].[iHandBackAmount])>0 )
楼主热帖
启用邀请码注册,提高发帖质量,建设交流社区

该用户从未签到

发表于 2008-4-14 11:56:49 | 显示全部楼层
支持老大的决定
这个合理

评分

参与人数 1稿费 -1 收起 理由
worldsun -1 恶意灌水 支持的不明不白的

查看全部评分

启用邀请码注册,提高发帖质量,建设交流社区
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表