- 打卡等级:无名新人
- 打卡总天数:5
- 打卡月天数:3
- 打卡总奖励:20
- 最近打卡:2024-11-13 21:14:02
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
×
本帖最后由 stonys 于 2021-4-10 10:49 编辑
- SELECT G.GLORGBOOKCODE 账簿编码,G.GLORGBOOKNAME 账簿名称,
- D.PREPAREDDATEV 凭证日期,
- D.NOV 凭证号,
- D.EXPLANATION 凭证分录摘要,
- D.FREE6 期间, D.PK_SYSTEMV,
- S.PK_ACCSUBJ 科目PK,
- S.SUBJCODE || '/' || S.SUBJNAME 科目,
- CREDITAMOUNT,
- DEBITAMOUNT,
- LOCALCREDITAMOUNT,
- LOCALDEBITAMOUNT
- FROM GL_DETAIL D
- LEFT OUTER JOIN BD_ACCSUBJ S ON D.PK_ACCSUBJ = S.PK_ACCSUBJ
- LEFT OUTER JOIN BD_GLORGBOOK G ON D.PK_GLORGBOOK = G.PK_GLORGBOOK
- WHERE (D.CREDITAMOUNT - TRUNC(D.CREDITAMOUNT, 2) <> 0 or
- D.Debitamount - TRUNC(D.Debitamount, 2) <> 0 or
- D.LOCALCREDITAMOUNT - TRUNC(D.LOCALCREDITAMOUNT, 2) <> 0 OR
- D.LOCALDEBITAMOUNT - TRUNC(D.LOCALDEBITAMOUNT, 2) <> 0)
- AND D.PK_GLORGBOOK = S.PK_GLORGBOOK
- AND G.GLORGBOOKCODE IN ('1-0001' )/*主体账簿编码(其他账簿类似问题,请自己替换该参数)*/
-
- AND D.YEARV = '2016' /*年份(其他年份类似问题,请自己替换该参数)*/
- AND D.DR = 0;
复制代码 |
|