用友的凭证update
select pk_glorgbook from bd_glorgbook where glorgbookcode='0100-0001';--0001N510000000006K4X
select no,period,year,dr,pk_voucher from gl_voucher where no='' and dr='' and period='' and year='' and
pk_glorgbook='0001N510000000006K4X';
update gl_voucher set no='' where pk_voucher='1162N51000000001YHZ3';
update gl_detail set nov=''where pk_voucher='1162N51000000001YHZ3';
凭证整理无效,修改凭证号:
select no,period,year,dr,gl_voucher.explanation, pk_voucher from gl_voucher where no in('','','','' )
and dr='' and period='' and year='' and pk_glorgbook='0001N510000000006K4X' for update;
可手工修改凭证:gl_detail有些没有no凭证,只好使用gl_voucher,下面的
select pk_voucher from gl_voucher v where v.pk_glorgbook in
(select pk_glorgbook from bd_glorgbook where glorgbookcode='012101-0001')
and v.dr=0 and v.year=2014 and v.period=12 and v.no=55 --1076N510000000004GX8 select d.explanation,d.modifyflag from gl_detail d where d.pk_voucher='1076N510000000004GX8' for update --YYYYYYYYYYYYYYYY
上面适合临时写
整合
select d.explanation, d.modifyflag,d.detailindex,d.pk_systemv
from gl_detail d
where d.pk_voucher in (select pk_voucher
from gl_voucher v
where v.pk_glorgbook in
(select pk_glorgbook
from bd_glorgbook
where glorgbookcode = '012101-0001')--账簿
and v.dr = 0
and v.year = 2014 --年月凭证号
and v.period = 12
and v.no = 55 )
for update --YYYYYYYYYYYYYYYY
2016.1.6更新结算中心
从凭证整理看到重复凭证号,之后
select v.explanation ,v.totalcredit,no
from gl_voucher v
where no in('','','','' )
and period=''
and year=''
and pk_glorgbook='0001N510000000006K4X'
for update;
以防万一的截图

用友的凭证update的更多相关文章
- Linux下基本操作
强行转Linux,开始以为会很不适应,其实还好,换汤不换药 本文只讲基本操作,足够让你愉快的打代码,想飞上天的自行百度,或找其他大神(友链) Update 6/20:由于写得太烂被学长爆踩了一顿 直接 ...
- 一个友盟BUG的思考和分析:Invalid update
1.友盟错误信息 Invalid update: invalid number of rows . The number of rows contained ) must be equal to th ...
- 用友U8年度账结转 常用凭证丢失
用友年度账结转常用凭证丢失解决方法 1.将新年度账两个表备份后清空:gl-bfreq和gl-bfreqinfo 2.复制旧年度账中gl-bfreq和gl-bfreqinfo两个表数据到新年度账即可.
- .NetCore对接各大财务软件凭证API——用友系列(1)
一.前言 今天,我们转战用友系列的第一个产品---T+/Tplus.前两篇文章讲解分享的都是金蝶的产品,因为本身公司牵涉的业务有限,后续有金蝶其他产品的API对接业务时,会继续来分享经验. T+的AP ...
- .NetCore对接各大财务软件凭证API——用友系列(2)
一. 前言 今天我们继续来分析用友系列的第二个产品--U8Cloud2.5 ,apilink方式的API.官网的API文档地址如下:U8API文档 因为我们主要是凭证对接,所以使用到的模块有总账.基础 ...
- .NetCore对接各大财务软件凭证API——用友系列(3)
一. 前言 由于前段时间项目比较集中,所以停更了好久,终于来到我们用友的系列产品3---U8Cloud2.7了. 一,2.7和2.5的api方式有什么区别? 1.2.7版本以后可以直接使用u8c登入地 ...
- 用友二次开发之科脉TOT3凭证接口
按客户的要求,根据科脉导出的数据,开发一个工具,将凭证导入T3 这个科目导出的凭证格式. 选择账套登陆,你没看错,这个是我开发的登陆界面. 选择接口文件. 软件自动进数据分类,你可以看到数据了.但只是 ...
- NC凭证接口(Java发送流和处理返回结果)
问题描述: 金融行业在系统模块分为财务和业务两个系统,我公司是负责业务模块系统,NC公司负责财务系统.但是财务有时候需要生成凭证,这时候就涉及业务模块了,我方就需要写NC凭证接口.这时候就需要三方交互 ...
- 锋友分享:国行和非国行iPhone的送修需知
锋友 hfln0829 分享了一些关于苹果 iPhone 售后服务的注意事项以及有可能的维修方式.他表示,无论是国行还是港版送修,都必须关闭查找我的 iPhone 这个功能,如果你关闭不了,售后不会受 ...
随机推荐
- js 扩展Array支持remove方法
/* * 方法:Array.remove(dx) 通过遍历,重构数组 * 功能:删除数组元素. * 参数:dx删除元素的下标. */ Array.prototype.remove = function ...
- [转]为什么不能用memcached存储Session
以下内容转自:http://www.infoq.com/cn/news/2015/01/memcached-store-session -------------------------分割线---- ...
- 用jQuery Mobile搭建一个简单的手机页面
1.新增html页面. 2.声明html5Document. 3.载入jQuery Mobile Css.jQuery与jQuery Mobile链接库. 4.使用jQuery Mobile定义的ht ...
- Huawei校招机试中的猴子吃桃问题
//============================================================================ // Name : Monkey& ...
- C语言文法的理解
<程序> -> <外部声明> | <程序> <外部声明> <外部声明> -> <函数定义> | &l ...
- NSRunLoop概述和原理
1.什么是NSRunLoop?我们会经常看到这样的代码: - (IBAction)start:(id)sender{pageStillLoading = YES;[NSThread detachNew ...
- 分享原创powershell脚本小工具ctracert.ps1
----------[脚本介绍]----------- 脚本名称:ctracert.ps1软件名称:灰主牛 跟踪路由 归属地版 V1.0脚本作用:1跟踪路由.2显示归属地.(注意不带显示时间功能)脚本 ...
- Mysql从客户端连接服务器连不上的问题
Mysql从客户端连接服务器连不上的问题 公司要用Mysql做一个测试,开始在自己的本地建一个Mysql数据库自己本地的程序再连上去,没有遇到过连接不上的问题.这次数据库在服务器上,从本地客户端连 ...
- js(function(){alert(‘’‘)})
function(){alert('sss')}是个匿名函数.没有名字.所以没有办法调用.在外面加个括号,就变成了一个值,值的内容是函数的引用.例如var a = (function(){" ...
- warning C4305: “=”: 从“int”到“unsigned char”截断解决方法[zz]
在控制台程序中定义: float x; x=22.333; 编译会出现 warning C4305: “初始化”: 从“double”到“float”截断 系统默认此浮点数是22.333是double ...