门诊对账信息
Posted thomasbc
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了门诊对账信息相关的知识,希望对你有一定的参考价值。
SELECT * from MS_SFMX,MS_MZXX
WHERE MS_SFMX.MZXH = MS_MZXX.MZXH and MS_MZXX.JGID = 1 and MS_MZXX.JZRQ
is null and MS_MZXX.MZLB = 1 and MS_MZXX.YQSB = 1 and MS_MZXX.CZGH = ‘8888‘
and MS_MZXX.SFFS = 0
上面是门诊个人汇总的信息,里面是疫苗费是门诊收款处收疫苗费产生的,
SELECT * from MS_SFMX,MS_MZXX
WHERE MS_SFMX.MZXH = MS_MZXX.MZXH and MS_MZXX.JGID = 1 and MS_MZXX.JZRQ
is null and MS_MZXX.MZLB = 1 and MS_MZXX.YQSB = 1 and MS_MZXX.CZGH = ‘8888‘
and MS_MZXX.SFFS = 0
----上面有疫苗费1872,个人账,1011,也就说1101是扣掉就诊卡里面的钱, 现金金额 账户金额
现金金额那一列,有150与0,账户金额是711+150+150=1011,
SELECT * from MS_FKXX,MS_MZXX
where MS_FKXX.MZXH = MS_MZXX.MZXH and MS_MZXX.JGID = 1 and MS_MZXX.JZRQ
is null and MS_MZXX.MZLB = 1 and MS_MZXX.YQSB = 1 and MS_MZXX.CZGH = ‘8888‘
and MS_MZXX.SFRQ <= to_Date(‘2019-08-10 20:22:18‘,‘yyyy-mm-dd hh24:mi:ss‘)
根据ms_szmx 的mzxh找到ms_fkxx里面的记录,找打fkfs,17代表支付宝,
也就是说这个报表中:1872(疫苗费)+101(开户)+60(缴款)-10(退费)=2023(收款员经手的钱)-1011(卡内的钱)=1023(扣除卡内的以外的钱,收款员需要上交的钱)---》201+711+100
以上是关于门诊对账信息的主要内容,如果未能解决你的问题,请参考以下文章