1.金蝶k3结账出现“本期还存在单价小于等于零的出入库单据”然后我直
select distinct 以下单据可能存在单价或金额小于等于0的记录 = t3.fname + ':'
+t1.fbillno from icstockbill t1 inner join icstockbillentry t2
on t1.finterid = t2.finterid
left join ictranstype t3 on t1.ftrantype = t3.fid where t2.famount=0
and t1.Fdate>='2013-6-1' and t1.Fdate<='2013-6-30'
and t3.fname like '%%'
在SQL数据库运行以上语句,便可查询出所有单价为0的单据类型与单据编号。