ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
if {CPPCKD.SHORTDESC} in ("6% Accrual/6% V", "next to show up", "Next to show up", "etc.") then
formula = false
else
formula = true
end if
if {CPPCKD.key field} in (3, 5, 6, 7, 8) then
formula = false
else
formula = true
end if
ASKER
ASKER
ASKER
GLOBAL xperiod as number
GLOBAL xyear as number
IF tonumber ({tglSegmentCode.AcctSegValue}) in array (10, 20, 50) then
IF xperiod >3 then
IF month ({tarInvoice.PostDate}) >3 THEN
if month ({tarInvoice.PostDate}) <= xperiod then
IF year ({tarInvoice.PostDate}) = xyear then
formula = CCur({tarInvoiceDetl.ExtAmt} - {tarInvoiceDetl.TradeDiscAmt})
else
formula = CCur(0)
END IF
ELSE
Formula = CCur(0)
END IF
ELSE
formula = CCur(0)
END IF
ELSE
IF month ({tarInvoice.PostDate}) >3 THEN
IF year ({tarInvoice.PostDate}) = xyear - 1 then
formula = CCur({tarInvoiceDetl.ExtAmt} - {tarInvoiceDetl.TradeDiscAmt})
else
formula = CCur(0)
END IF
ELSE
if month ({tarInvoice.PostDate}) <= xperiod then
if year ({tarInvoice.PostDate}) = xyear then
formula = CCur({tarInvoiceDetl.ExtAmt} - {tarInvoiceDetl.TradeDiscAmt})
else
formula = CCur(0)
end if
ELSE
Formula = CCur(0)
END IF
END IF
End If
ELSE
Formula = CCur(0)
end if
Crystal Reports is a business intelligence application from SAP SE. It is used to graphically design data connections and report layouts from a wide range of data sources including Excel spreadsheets, Oracle, SQL Server databases and Access databases, BusinessObjects Enterprise business views, and local file-system information. Report designers can place fields from these sources on the report design surface, and can also deploy them in custom formulas (using either BASIC or Crystal's own syntax), which are then placed on the design surface. Crystal Reports also supports subreports, graphing, and a limited amount of GIS functionality.
TRUSTED BY