KevinJ of Kansas
07/06/2020, 4:26 PMcase when {reversaldate} is null
then case when decode({accounttype},'Operating Revenue',{amount},'Non-Operating Revenue',{amount},'Non-Operating Expense',-{amount},'Operating Expense',-{amount},'Cost Of Goods Sold',-{amount},0) = nvl({custcol_bpc_pending_po_plus_actuals},0)
then 1 else 0 end else
case when trunc(add_months({reversaldate},3),'YYYY') = trunc(add_months({trandate},3),'YYYY')
then
case when 0 = nvl({custcol_bpc_pending_po_plus_actuals},0)
then 1 else 0 end
else case when decode({accounttype},'Operating Revenue',-{amount},'Non-Operating Revenue',-{amount},'Non-Operating Expense',{amount},'Operating Expense',{amount},'Cost Of Goods Sold',{amount},0) = nvl({custcol_bpc_pending_po_plus_actuals},0)
then 1 else 0 end end endGeorge McMullen
07/06/2020, 9:06 PMtrunc(add_months({reversaldate},3),'YYYY') = trunc(add_months({trandate},3),'YYYY')George McMullen
07/06/2020, 9:07 PMGeorge McMullen
07/06/2020, 9:08 PMKevinJ of Kansas
07/06/2020, 9:28 PMKevinJ of Kansas
07/06/2020, 9:29 PM