Commit 83c19d89 authored by neo's avatar neo

[bugfix] change currentperiodbo to field period for db not has that

parent a2f94e3f
......@@ -137,7 +137,7 @@ public interface ValidationInfoMapper extends MyVatMapper {
@Select("SELECT " +
" vv.VID, " +
" vv.Group, " +
" vv.CurrentPeriodBo, " +
" vv.Period, " +
" vv.CustomerCode, " +
" vv.Summary, " +
" vv.AcctCode, " +
......@@ -149,15 +149,15 @@ public interface ValidationInfoMapper extends MyVatMapper {
" JOIN " +
" (SELECT " +
" v.VID, " +
" v.CurrentPeriodBo, " +
" v.Period, " +
" v.Group, " +
" MAX(v.Date) AS `Date`, " +
" SUM(v.Debit) AS Debit, " +
" SUM(v.Credit) AS Credit " +
" FROM " +
" Voucher v " +
" GROUP BY v.VID , v.CurrentPeriodBo , v.Group " +
" HAVING Debit != Credit) q ON vv.VID = q.VID AND vv.CurrentPeriodBo = q.CurrentPeriodBo " +
" GROUP BY v.VID , v.Period , v.Group " +
" HAVING Debit != Credit) q ON vv.VID = q.VID AND vv.Period = q.Period " +
" AND vv.Group = q.Group " +
"")
List<VoucherBalanceDto>getSingleVoucherCheck();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment