Peer review [2999808] Error in Aging Report - although pl/java is deprecated, annotating in case we go back there in future

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2999808
This commit is contained in:
Carlos Ruiz 2010-05-15 17:07:52 +00:00
parent c4747139a9
commit 6af5e06f2c
1 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,13 @@
SQLActions[ ] = { SQLActions[ ] = {
"BEGIN INSTALL "BEGIN INSTALL
/** TODO: Functions in oracle/createSQLJ.sql not implemented here: **/
/** addDays **/
/** charAt **/
/** currencyRound **/
/** daysBetween **/
/** firstOf **/
/** getdate **/
BEGIN PostgreSQL SET search_path TO adempiere END PostgreSQL; BEGIN PostgreSQL SET search_path TO adempiere END PostgreSQL;
CREATE OR REPLACE FUNCTION adempiereVersion() CREATE OR REPLACE FUNCTION adempiereVersion()
@ -138,11 +146,21 @@ SQLActions[ ] = {
AS 'org.compiere.sqlj.Invoice.open(int,int)' AS 'org.compiere.sqlj.Invoice.open(int,int)'
LANGUAGE java VOLATILE; LANGUAGE java VOLATILE;
CREATE OR REPLACE FUNCTION invoiceOpenToDate (p_C_Invoice_ID NUMERIC, p_C_InvoicePaySchedule_ID NUMERIC,p_AcctDate DATE)
RETURNS NUMERIC
AS 'org.compiere.sqlj.Invoice.openToDate(int,int,java.sql.Timestamp)'
LANGUAGE java VOLATILE;
CREATE OR REPLACE FUNCTION invoicePaid (p_C_Invoice_ID NUMERIC, p_C_Currency_ID NUMERIC, p_MultiplierAP NUMERIC) CREATE OR REPLACE FUNCTION invoicePaid (p_C_Invoice_ID NUMERIC, p_C_Currency_ID NUMERIC, p_MultiplierAP NUMERIC)
RETURNS NUMERIC RETURNS NUMERIC
AS 'org.compiere.sqlj.Invoice.paid(int,int,int)' AS 'org.compiere.sqlj.Invoice.paid(int,int,int)'
LANGUAGE java VOLATILE; LANGUAGE java VOLATILE;
CREATE OR REPLACE FUNCTION invoicePaidToDate (p_C_Invoice_ID NUMERIC, p_C_Currency_ID NUMERIC, p_MultiplierAP NUMERIC,p_AcctDate DATE)
RETURNS NUMERIC
AS 'org.compiere.sqlj.Invoice.paidToDate(int,int,int,java.sql.Timestamp)'
LANGUAGE java VOLATILE;
CREATE OR REPLACE FUNCTION invoiceDiscount (p_C_Invoice_ID NUMERIC, p_PayDate TIMESTAMP WITH TIME ZONE, p_C_InvoicePaySchedule_ID NUMERIC) CREATE OR REPLACE FUNCTION invoiceDiscount (p_C_Invoice_ID NUMERIC, p_PayDate TIMESTAMP WITH TIME ZONE, p_C_InvoicePaySchedule_ID NUMERIC)
RETURNS NUMERIC RETURNS NUMERIC
AS 'org.compiere.sqlj.Invoice.discount(int,java.sql.Timestamp,int)' AS 'org.compiere.sqlj.Invoice.discount(int,java.sql.Timestamp,int)'