N65总账凭证管理凭证查询(sql)

--核算账簿
select code , name , pk_setofbook from org_setofbook where ( pk_setofbook in ( select pk_setofbook from org_accountingbook where 1 = 1 and ( pk_group = N'0001A11000000000037X' ) and ( accountenablestate = 2 ) ) ) order by code;--核算账簿
select code , name , pk_financeorg , pk_fatherorg , pk_accountingbook , pk_relorg , pk_group , pk_setofbook , accountenablestate , assetenablestate , materialenablestate , accounttype from ( SELECT org_accountingbook.creationtime , org_accountingbook.creator , org_accountingbook.modifiedtime , org_accountingbook.modifier , org_accountingbook.isconvert , org_accountingbook.materialenablestate , org_accountingbook.accountenablestate , org_accountingbook.accounttype , org_accountingbook.assetenablestate , org_accountingbook.code , org_accountingbook.name , org_accountingbook.name2 , org_accountingbook.name3 , org_accountingbook.name4 , org_accountingbook.name5 , org_accountingbook.name6 , org_accountingbook.mnecode , org_accountingbook.pk_accountingbook , org_accountingbook.pk_accountperiod , org_accountingbook.pk_assetperiod , org_accountingbook.pk_curraccchart , org_accountingbook.pk_exratescheme , org_accountingbook.pk_group , org_accountingbook.pk_materialperiod , org_accountingbook.pk_org , org_accountingbook.pk_relorg , org_accountingbook.pk_setofbook , org_accountingbook.shortname , org_accountingbook.shortname2 , org_accountingbook.shortname3 , org_accountingbook.shortname4 , org_accountingbook.shortname5 , org_accountingbook.shortname6 , org_accountingbook.dataoriginflag , org_accountingbook.dr , org_accountingbook.pk_taxperiod , org_accountingbook.taxenablestate , org_accountingbook.pk_setofbook + financeorg.pk_financeorg as pk_financeorg , org_accountingbook.pk_setofbook + financeorg.pk_fatherorg as pk_fatherorg FROM org_accountingbook LEFT outer JOIN ( SELECT org_corp.code , org_corp.name , org_corp.name2 , org_corp.name3 , org_corp.name4 , org_corp.name5 , org_corp.name6 , org_corp.pk_corp AS pk_financeorg , org_corp.pk_fatherorg , org_corp.pk_corp , org_corp.pk_group , org_financeorg.enablestate FROM org_corp LEFT outer JOIN org_financeorg ON org_corp.pk_corp = org_financeorg.pk_financeorg WHERE org_corp.pk_corp IN ( SELECT pk_org FROM org_orgs WHERE orgtype5 = N'Y' ) UNION SELECT org_financeorg.code , org_financeorg.name , org_financeorg.name2 , org_financeorg.name3 , org_financeorg.name4 , org_financeorg.name5 , org_financeorg.name6 , org_financeorg.pk_financeorg , org_orgs.pk_corp as pk_fatherorg , org_orgs.pk_corp , org_financeorg.pk_group , org_financeorg.enablestate FROM org_financeorg LEFT outer JOIN org_orgs ON org_financeorg.pk_financeorg = org_orgs.pk_org WHERE orgtype5 = N'Y' AND org_financeorg.pk_financeorg <> org_orgs.pk_corp ) financeorg ON org_accountingbook.pk_relorg = financeorg.pk_financeorg ) org_accountingbook where ( 1 = 1 ) and ( ( accountenablestate = 2 ) ) and ( ( pk_group = N'0001A11000000000037X' ) ) and ( pk_setofbook = N'1001A11000000001OLU9' ) order by code;--根据核算账簿以及以及相关查询条件查询凭证(制单列表数据)
select gl_voucher.pk_voucher , gl_voucher.pk_group , gl_voucher.addclass , gl_voucher.attachment , gl_voucher.checkeddate , gl_voucher.contrastflag , gl_voucher.deleteclass , gl_voucher.detailmodflag , gl_voucher.discardflag , gl_voucher.errmessage , gl_voucher.explanation , gl_voucher.adjustperiod , gl_voucher.free10 , gl_voucher.free2 , gl_voucher.free3 , gl_voucher.free4 , gl_voucher.free5 , gl_voucher.free6 , gl_voucher.free7 , gl_voucher.free8 , gl_voucher.free9 , gl_voucher.modifyclass , gl_voucher.modifyflag , gl_voucher.num , gl_voucher.period , gl_voucher.pk_casher , gl_voucher.pk_checked , gl_voucher.pk_org , gl_voucher.pk_manager , gl_voucher.pk_prepared , gl_voucher.pk_system , gl_voucher.pk_vouchertype , gl_voucher.prepareddate , gl_voucher.signdate , gl_voucher.signflag , gl_voucher.tallydate , gl_voucher.totalcredit , gl_voucher.totaldebit , gl_voucher.totaldebitgroup , gl_voucher.totalcreditgroup , gl_voucher.totaldebitglobal , gl_voucher.totalcreditglobal , gl_voucher.voucherkind , gl_voucher.year , gl_voucher.pk_accountingbook , gl_voucher.pk_sourcepk , gl_voucher.convertflag , gl_voucher.offervoucher , gl_voucher.isdifflag , gl_voucher.errmessageh , gl_voucher.billmaker , gl_voucher.approver , gl_voucher.creator , gl_voucher.tempsaveflag , gl_voucher.pk_org , gl_voucher.pk_org_v , gl_voucher.modifier , gl_voucher.modifiedtime , gl_voucher.creationtime , gl_voucher.ts from gl_voucher where ( gl_voucher.pk_accountingbook = N'1001A11000000001TSW4' ) and ( ( gl_voucher.year = N'2023' ) and ( gl_voucher.adjustperiod = N'12' ) ) and ( gl_voucher.num >= 725 ) and ( gl_voucher.num <= 725 ) and voucherkind <> 2 and voucherkind <> 255 and dr = 0 and ( voucherkind = 5 and gl_voucher.adjustperiod <> N'00' or voucherkind <> 5 );--凭证详情
select gl_detail.pk_detail , gl_detail.assid , gl_detail.bankaccount , gl_detail.checkdate , gl_detail.checkno , gl_detail.checkstyle , gl_detail.contrastflag , gl_detail.creditamount , gl_detail.creditquantity , gl_detail.debitamount , gl_detail.debitquantity , gl_detail.detailindex , gl_detail.errmessage , gl_detail.excrate1 , gl_detail.excrate2 , gl_detail.excrate3 , gl_detail.excrate4 , gl_detail.explanation , gl_detail.fraccreditamount , gl_detail.fracdebitamount , gl_detail.verifyno , gl_detail.verifydate 核销日期即业务日期, gl_detail.prepareddatev 制单日期, gl_detail.signdatev 签字日期, gl_detail.billtype , gl_detail.innerbusno , gl_detail.innerbusdate , gl_detail.localcreditamount , gl_detail.localdebitamount , gl_detail.modifyflag , gl_detail.oppositesubj , gl_detail.pk_accasoa , gl_detail.pk_org , gl_detail.pk_currtype , gl_detail.pk_innerorg , gl_detail.pk_innersob , gl_detail.pk_voucher , gl_detail.price , gl_detail.recieptclass , gl_detail.pk_accountingbook , gl_detail.pk_sourcepk , gl_detail.convertflag , gl_detail.DIRECTION ,  gl_detail.YEARV , gl_detail.adjustperiod , gl_detail.PERIODV , gl_detail.PK_VOUCHERTYPEV , gl_detail.NOV , gl_detail.PK_MANAGERV , gl_detail.VOUCHERKINDV , gl_detail.ERRMESSAGE2 , gl_detail.DISCARDFLAGV ,gl_detail.pk_systemv , gl_detail.pk_offerdetail , gl_detail.isdifflag , gl_detail.busireconno , gl_detail.errmessageh , gl_detail.pk_othercorp , gl_detail.pk_otherorgbook , gl_detail.free7 , gl_detail.free8 , gl_detail.free9 , gl_detail.free10 , gl_detail.pk_group , gl_detail.groupdebitamount , gl_detail.groupcreditamount , gl_detail.globaldebitamount , gl_detail.globalcreditamount , gl_detail.pk_org , gl_detail.pk_org_v , gl_detail.pk_unit , gl_detail.unitname , gl_detail.pk_unit_v , gl_detail.netbankflag , gl_detail.tempsaveflag , gl_dtlfreevalue.freevalue1 , gl_dtlfreevalue.freevalue2 , gl_dtlfreevalue.freevalue3 , gl_dtlfreevalue.freevalue4 , gl_dtlfreevalue.freevalue5 , gl_dtlfreevalue.freevalue6 , gl_dtlfreevalue.freevalue7 , gl_dtlfreevalue.freevalue8 , gl_dtlfreevalue.freevalue9 , gl_dtlfreevalue.freevalue10 , gl_dtlfreevalue.freevalue11 , gl_dtlfreevalue.freevalue12 , gl_dtlfreevalue.freevalue13 , gl_dtlfreevalue.freevalue14 , gl_dtlfreevalue.freevalue15 , gl_dtlfreevalue.freevalue16 , gl_dtlfreevalue.freevalue17 , gl_dtlfreevalue.freevalue18 , gl_dtlfreevalue.freevalue19 , gl_dtlfreevalue.freevalue20 , gl_dtlfreevalue.freevalue21 , gl_dtlfreevalue.freevalue22 , gl_dtlfreevalue.freevalue23 , gl_dtlfreevalue.freevalue24 , gl_dtlfreevalue.freevalue25 , gl_dtlfreevalue.freevalue26 , gl_dtlfreevalue.freevalue27 , gl_dtlfreevalue.freevalue28 , gl_dtlfreevalue.freevalue29 , gl_dtlfreevalue.freevalue30 , gl_detail.ts from gl_detail left outer join gl_dtlfreevalue on gl_detail.pk_detail = gl_dtlfreevalue.pk_detail where pk_voucher in ( N'1001A1100000000C5O4U' ) and gl_detail.dr = 0;

1、凭证业务日期是指哪个日期?刚刚发现12月725号凭证离退休这张,业务日期有问题,应该都是2023-12-31,但是出现了其他日期值。
在这里插入图片描述

答:凭证分录上记录的业务日期是反映分录所核算的业务的实际发生日期,即是核销日期而不是制单日期。

2、凭证业务日期生成规则是什么样的?
答:“业务日期显示规则是:A、新增第一条分录的业务日期默认为制单日期,其它分录默认为与上一条分录业务日期相同;B、辅助信息的 “核销信息”中的“业务日期”,默认取该条分录的“业务日期”,可编辑,编辑后同步更改分录业务日期;C、辅助信息的“结算信息”中的“票据日期”,默认取该条分录的“业务日期”,可编辑。”

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/440110.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Python(19)Excel表格操作Ⅰ

目录 导包 读取EXCEL文件 1、获取worksheet名称 2、设定当前工作表 3、输出目标单元格数据 4、工作表.rows&#xff08;行&#xff09; 5、工作表.columns&#xff08;列&#xff09; 小结 导包 要想使用 python 操作 Excel 文件&#xff0c;应当导入 openpyxl 包。在…

【习题】使用DevEco Studio高效开发

单选题 1. 用哪一种装饰器修饰的组件可作为页面入口组件&#xff1f;B A. Component B. Entry C. Preview D. Builder 回答正确 2. ArkTS Stage模型支持API Version 9&#xff0c;关于其工程目录结构说法正确的是&#xff1f;C A. oh-package.json5用于存放应用级配置信…

20240130在ubuntu20.04.6下给GTX1080安装最新的驱动和CUDA

20240130在ubuntu20.04.6下给GTX1080安装最新的驱动和CUDA 2024/1/30 12:27 缘起&#xff0c;为了在ubuntu20.4.6下使用whisper&#xff0c;以前用的是GTX1080M&#xff0c;装了535的驱动。 现在在PDD拼多多上了入手了一张二手的GTX1080&#xff0c;需要将安装最新的545的驱动程…

读书人必须知道的9个搜书引擎

各位小伙伴大家好&#xff0c;众所周知&#xff0c;现在找资源的难度要比以前高的多&#xff0c;各种网站封的封删的删&#xff0c;但大家对书籍资源的需求却越来越大。那今天我镜像哥就决定整一期电子书资源狠活儿。 这些资源都是我辛苦收集&#xff0c;并逐一验证筛选出来的的…

如何安装配置HFS并实现无公网ip远程访问本地电脑共享文件

文章目录 前言1.下载安装cpolar1.1 设置HFS访客1.2 虚拟文件系统 2. 使用cpolar建立一条内网穿透数据隧道2.1 保留隧道2.2 隧道名称2.3 成功使用cpolar创建二级子域名访问本地hfs 总结 前言 在大厂的云存储产品热度下降后&#xff0c;私人的NAS热度快速上升&#xff0c;其中最…

Fisher线性判别分析

Fisher线性判别分析 原理 LDA(Linear Discriminant Analysis&#xff09;是一种经典的线性判别方法&#xff0c;又称Fisher判别分析。该方法思想比较简单&#xff1a;给定训练集样例&#xff0c;设法将样例投影到一维的直线上&#xff0c;使得同类样例的投影点尽可能接…

Mybatis-Plus扩展

7 MybatisX插件[扩展] 7.1 MybatisX插件介绍 MybatisX 是一款基于 IDEA 的快速开发插件&#xff0c;为效率而生。 安装方法&#xff1a;打开 IDEA&#xff0c;进入 File -> Settings -> Plugins -> Browse Repositories&#xff0c;输入 mybatisx 搜索并安装。 功…

负载均衡下Webshell连接思路及难点

君衍. 一、应用场景二、环境搭建三、思路以及难点1、查看内部结构2、查看webshell3、使用蚁剑进行连接4、难点1 shell文件上传问题5、难点2 命令执行时飘逸6、难点3 大工具上传失败7、难点4 脚本失效 四、解决方式1、关闭对方节点服务器2、基于IP地址判断是否执行3、脚本实现流…

c#窗体捕捉方向键

方法1 实现方法参考代码&#xff1a; private void Form1_Load(object sender, EventArgs e){this.KeyPreview true;}protected override bool ProcessDialogKey(Keys keyData){if (keyData Keys.Left || keyData Keys.Right || keyData Keys.Up || keyData Keys.Down){s…

Linux下安装edge

edge具有及其强大的功能&#xff0c;受到很多人的喜爱&#xff0c;它也开发Linux版本&#xff0c;下面是安装方法&#xff1a; 1.去edge官网下载Linux(.deb)文件。 https://www.microsoft.com/zh-cn/edge/download?formMA13FJ 2.下载之后输入以下指令&#xff08;后面是安装…

【计算机网络】——TCP协议

&#x1f4d1;前言 本文主要是【计算机网络】——传输层TCP协议的文章&#xff0c;如果有什么需要改进的地方还请大佬指出⛺️ &#x1f3ac;作者简介&#xff1a;大家好&#xff0c;我是青衿&#x1f947; ☁️博客首页&#xff1a;CSDN主页放风讲故事 &#x1f304;每日一句…

【2023地理设计组一等奖】基于GIS的桥梁隧道三维建模与可视化

作品介绍 1 设计背景和意义 随着我国基础建设规模不断扩大和深入,构建桥梁可视化管理模型,全面推动智慧桥梁,已成为现代隧道桥梁建设行业的发展趋势。传统的桥梁建模工作需要复杂的算法设计并需要熟练编程实践技能,实现周期长。开发自主知识版权的桥梁建模软件系统或专用插…