读取帐套是否集团版帐套失败
2016-6-17 0:0:0 用友NC小编读取帐套是否集团版帐套失败
读取帐套是否集团版帐套失败问题号: | 4626 |
---|---|
解决状态: | 临时解决方案 |
软件版本: | 其他 |
软件模块: | 系统管理 |
行业: | 通用 |
关键字: | 读取帐套是否集团版帐套失败 |
适用产品: | U8 |
问题名称: | 读取帐套是否集团版帐套失败 |
问题现象: | 001帐套1996-2004 9个年度,其中2001,2002年注册进入时,总提示:读取帐套001是否集团版帐套失败,可能是数据库没有升级。其他年度正常。 |
问题原因: | 缺少成本视图。 |
解决方案: | 重新升级数据后正常,升级前执行: ——————————————————————————————- CREATE view caq_serviceprice as select max(iperiod) as iperiod, max(cprocedureid) as cprocedureid, sum(itotalamo)/sum(iqua) as price from ca_samoct group by cprocedureid go ——————————————————————————————- CREATE view caq_predepdata as select ‘专用’ as cType,a.iperiod,a.cdeptid,0 as amotypeno,’0′ as amotype , a.cmatid as amoid,a.iqua as curqua,a.imatqua as curamo,b.irestqua as endqua, b.iprice * b.irestqua as endamo from ca_mabsw a left join ca_enmmc b on a.cdeptid=b.cdeptid and a.cmatid=b.cmatid and a.iperiod = b.iperiod where a.cppid is null union SELECT ‘共用’ ,a.iperiod, a.cdeptid, 0 AS amotypeno, ‘0’ AS amotype, a.cmatid AS amoid, a.iqua AS curqua, a.imatqua AS curamo, b.irestqua AS endqua,b.iprice * b.irestqua AS endamo FROM ca_mabsw a LEFT JOIN ca_enmom b ON a.cdeptid = b.cdeptid AND a.cmatid = b.cmatid AND a.iperiod = b.iperiod where a.cppid is not null Union select ‘废品’ ,max(a.iperiod),max(b.cdepcode),1,’0′,’-1′,0,sum(irecamo),0,0 from ca_waspr a,productstructureex b where a.cppid = b.cpspcode group by cdepcode Union select ” ,iperiod,cdeptid,2,’3′,camoid,0,imanamo,0,0 from ca_manct Union select ” ,a.iperiod,a.cdeptid,3,’2′,a.cprocedureid,a.iqua,a.iqua* b.price,0,0 from ca_asscw a , caq_serviceprice b where a.iperiod=b.iperiod and a.cprocedureid=b.cprocedureid Union select ” ,max(iperiod),max(cdeptid),4,’4′,max(cothamoid),0,sum(iothamo),0,0 from ca_onlia group by cdeptid,iperiod,cothamoid Union select ” ,iperiod,cdeptid,5,’1′,”,0,iDirectPay,0,0 from ca_dirma go ——————————————————————————————- CREATE VIEW ca_inventory AS SELECT Inventory.cInvCode, Inventory.cInvName, Inventory.cInvStd,Inventory.iInvRCost, Inventory.cInvCCode, ComputationUnit.cComUnitName AS cInvM_Unit,InventoryClass.cInvCName FROM Inventory LEFT OUTER JOIN InventoryClass ON Inventory.cInvCCode = InventoryClass.cInvCCode LEFT OUTER JOIN ComputationUnit ON Inventory.cComunitCode = ComputationUnit.cComunitCode go ——————————————————————————————- CREATE view caq_amoname as select distinct 1 as amotypeno,’0′ as amotype,’材料费用’ as amotypename,b.cinvcode as amoid, b.cinvname as amoname,b.cinvccode as cinvccode ,b.cinvcname as cinvcname, b.cinvstd as cinvstd,b.cinvm_unit as cunit from ca_amoct a,ca_inventory b where a.camoid= b.cinvcode Union select 2 as amotypeno,’0′,’材料费用’,’-1′,’废品回收’,”,”,”,” Union select 3 as amotypeno,’3′,’制造费用’,camoid,camoname,”,”,”,” from caq_manufacture Union select 4 as amotypeno,’2′,’辅助费用’,cprocedureid,cprocedurename,”,”,”,” from ca_predf where bisauxi0 Union select 5 as amotypeno,’4′,’其他费用’,camoid,camoname,”,”,”,” from caq_others Union select 6 as amotypeno,’1′,’人工费用’,”,’直接人工’,”,”,”,” go ——————————————————————————————- CREATE view caq_depdata as select a.iperiod as 期间,a.cdeptid as 部门编码,b.cdepname as 部门名称, a.amotypeno as 费用类型序号,a.amotype as 费用类型编码,c.amotypename as 费用类型名称, a.cType as 材料类别, c.cinvccode as 存货分类编码,c.cinvcname as 存货分类名称, a.amoid as 费用明细编码,c.amoname as 费用明细名称, a.curqua as 本期发生数量, a.curamo as 本期发生金额, a.endqua as 期末盘存数量,a.endamo as 期末盘存金额 from caq_predepdata a,department b,caq_amoname c Where a.cdeptid = b.cDepCode and a.amotype=c.amotype and a.amoid=c.amoid go ——————————————————————————————- if exists (select * from dbo.sysobjects where id = object_id(N’[dbo].[CA_IDMAC]‘) and OBJECTPROPERTY(id, N’IsUserTable’) = 1) drop table [dbo].[CA_IDMAC] GO CREATE TABLE [dbo].[CA_IDMAC] ( [cOutID] [varchar] (5) COLLATE Chinese_PRC_CI_AS NOT NULL , [cOutName] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL , [bType] [bit] NULL ) ON [PRIMARY] GO ALTER TABLE [dbo].[CA_IDMAC] ADD CONSTRAINT [aaaaaCA_IDMAC_PK] PRIMARY KEY NONCLUSTERED ( [cOutID] ) ON [PRIMARY] GO ——————————————————————————————- |
补丁编号: | |
录入日期: | 2016-03-16 15:23:45 |
最后更新时间: |
如果您的问题还没有解决,可以到 T+搜索>>上找一下
相关阅读
- 刚建帐怎么填期初余额2018-11-23 7:18:20
- 期初余额录入不对,想要修改,怎么办?2018-11-22 18:22:41
- 登记银行日记账的要求是什么2016-9-18 11:10:33
- 登入用友T3软件提示错误;“内存溢出”?2016-9-7 12:51:29
- 登陆系统管理提示IIS配置不正确 _02016-8-30 11:28:58
- 电费保证金是否征收增值税?2016-8-30 11:12:30
- 电算化条件下高校的内部会计控制2016-8-30 11:10:0
- 登陆企业门户提示“无法登陆服务器”2016-8-30 11:8:15
- 防治禽流感有哪些税收优惠政策2016-8-30 11:4:43
- 登录界面没有操作员2016-8-22 16:10:5
最新信息
- 程序检测到“T3产品服务”没有开启,请问您是否开启?这是什么问题
- 采购入库生单,选择采购到货单时,到货数量800,入库数量800时,老是提示:入库数量不能大于所参照到货单的数量,不能保存! 实际入库数量和到货数量是相等的。当把入库数量改成100之后,又可以生单成功!但是入库数量改成700,也是不能成功的。不知道什么原因??
- 采购分开流程,存货启用该了部门辅助项,参照进货单生成凭证,存货科目不能带出部门辅助项。但是进货单是录入了部门的。
- 采购到货单做好了,采购检验单生单时还是没有
- 采购发票制单的时候提示供应商被锁定
- 采购发票如何控制重复做单,现在发现有的采购发票有重复的单据,已经结账如何处理?可以做红字发票冲掉重复的蓝字发票吗?
- 采购批量 都影响那些单据啊?是只影响采购订单吗
- 采购期初记账是在什么情况下需要记账呢,在什么时候记账?
- 采购管理中的采购订单中的单价能否设置不录入,或者默认为0
- 采购管理中进货页面打开后出现脚本错误,其他控件都无法选择访问。
发挥审计监督作用为新农村建设服务 发挥审计监督作用为新农村建设服务
建设社会主义新农村,是贯彻落实科学发展观的内在需要,是全国建设小康社会和推进现代化建设的必然选择,对全面建设小康社会和国家长治久安具有重要意义。黑龙江省作为农业大省,建设社会主义新农村任务艰巨,任重道远。审计作为监督职能部门,必须服务和服从于社会主义新农村建设,牢固树立大农业审计观念,通过扎实有效的审计监督,在新农村建设中发挥积极作用。
全省审计机关要充分认识建设社会主义新农村的重大意义,以科学发展观为指导,结合贯彻落实省委、省政府关于新农村建设和各项方针政策,围绕推动《黑龙江省新农村建设规划》的落实,确定审计项目计划;把新农村建设涉及的与审计工作有关的问题,都纳入审计和审计调查的范围。