Commit 9f228f12 authored by pborate's avatar pborate

Updated changes for dwh_sales_sum table insert


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198725 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e5229c73
...@@ -145,7 +145,7 @@ public class UpdateDWHSalesSum implements Schedule ...@@ -145,7 +145,7 @@ public class UpdateDWHSalesSum implements Schedule
.append(" TO_CHAR(INVOICE.DUE_DATE) AS DUE_DATE, " ) .append(" TO_CHAR(INVOICE.DUE_DATE) AS DUE_DATE, " )
.append(" ( " ) .append(" ( " )
.append(" CASE " ) .append(" CASE " )
.append(" WHEN COALESCE(INVOICE_TRACE.LINE_TYPE,'C') = 'F' " ) .append(" WHEN COALESCE(INVOICE_TRACE.LINE_TYPE,'C') IN ( 'F', 'V') " )
.append(" AND INVOICE_TRACE.RATE__STDUOM = 0 " ) .append(" AND INVOICE_TRACE.RATE__STDUOM = 0 " )
.append(" THEN 0 " ) .append(" THEN 0 " )
.append(" ELSE INVOICE_TRACE.QUANTITY__STDUOM " ) .append(" ELSE INVOICE_TRACE.QUANTITY__STDUOM " )
......
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