merging development into release-2.1
This commit is contained in:
commit
0a148188f9
|
@ -61,7 +61,7 @@ BEGIN
|
|||
FROM (
|
||||
SELECT C_ConversionType_ID
|
||||
FROM C_ConversionType
|
||||
WHERE IsDefault='Y'
|
||||
WHERE IsActive='Y' AND IsDefault='Y'
|
||||
AND AD_Client_ID IN (0,p_Client_ID)
|
||||
ORDER BY AD_Client_ID DESC
|
||||
)
|
||||
|
@ -137,7 +137,7 @@ BEGIN
|
|||
CURSOR CUR_Rate IS
|
||||
SELECT MultiplyRate
|
||||
FROM C_Conversion_Rate
|
||||
WHERE C_Currency_ID=v_CurrencyFrom AND C_Currency_ID_To=v_CurrencyTo
|
||||
WHERE IsActive='Y' AND C_Currency_ID=v_CurrencyFrom AND C_Currency_ID_To=v_CurrencyTo
|
||||
AND C_ConversionType_ID=v_ConversionType_ID
|
||||
AND v_ConvDate BETWEEN ValidFrom AND ValidTo
|
||||
AND AD_Client_ID IN (0,p_Client_ID) AND AD_Org_ID IN (0,p_Org_ID)
|
||||
|
|
|
@ -25,15 +25,16 @@ AS
|
|||
v_GrandTotal NUMBER;
|
||||
v_TotalLines NUMBER;
|
||||
v_C_PaymentTerm_ID NUMBER(10);
|
||||
v_C_Currency_ID NUMBER(10);
|
||||
v_DocDate DATE;
|
||||
v_PayDate DATE := SysDate;
|
||||
v_IsPayScheduleValid CHAR(1);
|
||||
|
||||
BEGIN
|
||||
SELECT ci.IsDiscountLineAmt, i.GrandTotal, i.TotalLines,
|
||||
i.C_PaymentTerm_ID, i.DateInvoiced, i.IsPayScheduleValid
|
||||
i.C_PaymentTerm_ID, i.DateInvoiced, i.IsPayScheduleValid, C_Currency_ID
|
||||
INTO v_IsDiscountLineAmt, v_GrandTotal, v_TotalLines,
|
||||
v_C_PaymentTerm_ID, v_DocDate, v_IsPayScheduleValid
|
||||
v_C_PaymentTerm_ID, v_DocDate, v_IsPayScheduleValid, v_C_Currency_ID
|
||||
FROM AD_ClientInfo ci, C_Invoice i
|
||||
WHERE ci.AD_Client_ID=i.AD_Client_ID
|
||||
AND i.C_Invoice_ID=p_C_Invoice_ID;
|
||||
|
@ -58,13 +59,13 @@ BEGIN
|
|||
INTO v_Amount
|
||||
FROM C_InvoicePaySchedule
|
||||
WHERE C_InvoicePaySchedule_ID=p_C_InvoicePaySchedule_ID
|
||||
AND DiscountDate <= v_PayDate;
|
||||
AND DiscountDate >= v_PayDate;
|
||||
--
|
||||
RETURN v_Amount;
|
||||
END IF;
|
||||
|
||||
-- return discount amount
|
||||
RETURN paymentTermDiscount (v_Amount, 0, v_C_PaymentTerm_ID, v_DocDate, p_PayDate);
|
||||
RETURN paymentTermDiscount (v_Amount, v_C_Currency_ID, v_C_PaymentTerm_ID, v_DocDate, p_PayDate);
|
||||
|
||||
-- Most likely if invoice not found
|
||||
EXCEPTION
|
||||
|
|
|
@ -33,6 +33,8 @@ SELECT C_InvoicePaySchedule_ID, DueAmt FROM C_InvoicePaySchedule WHERE C_Invoice
|
|||
************************************************************************/
|
||||
AS
|
||||
v_Currency_ID NUMBER(10);
|
||||
v_Precision NUMBER := 0;
|
||||
v_Min NUMBER := 0;
|
||||
v_TotalOpenAmt NUMBER := 0;
|
||||
v_PaidAmt NUMBER := 0;
|
||||
v_Remaining NUMBER := 0;
|
||||
|
@ -70,6 +72,13 @@ BEGIN
|
|||
END;
|
||||
-- DBMS_OUTPUT.PUT_LINE('== C_Invoice_ID=' || p_C_Invoice_ID || ', Total=' || v_TotalOpenAmt || ', AP=' || v_MultiplierAP || ', CM=' || v_MultiplierCM);
|
||||
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = v_Currency_ID;
|
||||
|
||||
SELECT POWER(1/10,v_Precision) INTO v_Min FROM DUAL;
|
||||
|
||||
-- Calculate Allocated Amount
|
||||
FOR a IN Cur_Alloc LOOP
|
||||
v_Temp := a.Amount + a.DisCountAmt + a.WriteOffAmt;
|
||||
|
@ -104,12 +113,13 @@ BEGIN
|
|||
-- DBMS_OUTPUT.PUT_LINE('== Total=' || v_TotalOpenAmt);
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_TotalOpenAmt BETWEEN -0.00999 AND 0.00999) THEN
|
||||
IF (v_TotalOpenAmt > -v_Min AND v_TotalOpenAmt < v_Min) THEN
|
||||
v_TotalOpenAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to penny
|
||||
v_TotalOpenAmt := ROUND(COALESCE(v_TotalOpenAmt,0), 2);
|
||||
-- Round to currency precision
|
||||
v_TotalOpenAmt := ROUND(COALESCE(v_TotalOpenAmt,0), v_Precision);
|
||||
|
||||
RETURN v_TotalOpenAmt;
|
||||
END invoiceOpen;
|
||||
/
|
||||
|
|
|
@ -34,6 +34,8 @@ SELECT C_InvoicePaySchedule_ID, DueAmt FROM C_InvoicePaySchedule WHERE C_Invoice
|
|||
************************************************************************/
|
||||
AS
|
||||
v_Currency_ID NUMBER(10);
|
||||
v_Precision NUMBER := 0;
|
||||
v_Min NUMBER := 0;
|
||||
v_TotalOpenAmt NUMBER := 0;
|
||||
v_PaidAmt NUMBER := 0;
|
||||
v_Remaining NUMBER := 0;
|
||||
|
@ -73,6 +75,13 @@ BEGIN
|
|||
END;
|
||||
-- DBMS_OUTPUT.PUT_LINE('== C_Invoice_ID=' || p_C_Invoice_ID || ', Total=' || v_TotalOpenAmt || ', AP=' || v_MultiplierAP || ', CM=' || v_MultiplierCM);
|
||||
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = v_Currency_ID;
|
||||
|
||||
SELECT POWER(1/10,v_Precision) INTO v_Min FROM DUAL;
|
||||
|
||||
-- Calculate Allocated Amount
|
||||
FOR a IN Cur_Alloc LOOP
|
||||
v_Temp := a.Amount + a.DisCountAmt + a.WriteOffAmt;
|
||||
|
@ -107,12 +116,13 @@ BEGIN
|
|||
-- DBMS_OUTPUT.PUT_LINE('== Total=' || v_TotalOpenAmt);
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_TotalOpenAmt BETWEEN -0.00999 AND 0.00999) THEN
|
||||
IF (v_TotalOpenAmt > -v_Min AND v_TotalOpenAmt < v_Min) THEN
|
||||
v_TotalOpenAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to penny
|
||||
v_TotalOpenAmt := ROUND(COALESCE(v_TotalOpenAmt,0), 2);
|
||||
-- Round to currency precision
|
||||
v_TotalOpenAmt := ROUND(COALESCE(v_TotalOpenAmt,0), v_Precision);
|
||||
|
||||
RETURN v_TotalOpenAmt;
|
||||
END InvoiceopenToDate;
|
||||
/
|
||||
|
|
|
@ -33,6 +33,8 @@ RETURN NUMBER
|
|||
*
|
||||
************************************************************************/
|
||||
AS
|
||||
v_Precision NUMBER := 0;
|
||||
v_Min NUMBER := 0;
|
||||
v_MultiplierAP NUMBER := 1;
|
||||
v_PaymentAmt NUMBER := 0;
|
||||
CURSOR Cur_Alloc IS
|
||||
|
@ -44,6 +46,13 @@ AS
|
|||
WHERE al.C_Invoice_ID = p_C_Invoice_ID
|
||||
AND a.IsActive='Y';
|
||||
BEGIN
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = p_C_Currency_ID;
|
||||
|
||||
SELECT POWER(1/10,v_Precision) INTO v_Min FROM DUAL;
|
||||
|
||||
-- Default
|
||||
IF (p_MultiplierAP IS NOT NULL) THEN
|
||||
v_MultiplierAP := p_MultiplierAP;
|
||||
|
@ -54,7 +63,15 @@ BEGIN
|
|||
+ currencyConvert(a.Amount + a.DisCountAmt + a.WriteOffAmt,
|
||||
a.C_Currency_ID, p_C_Currency_ID, a.DateTrx, null, a.AD_Client_ID, a.AD_Org_ID);
|
||||
END LOOP;
|
||||
--
|
||||
RETURN ROUND(NVL(v_PaymentAmt,0), 2) * v_MultiplierAP;
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_PaymentAmt > -v_Min AND v_PaymentAmt < v_Min) THEN
|
||||
v_PaymentAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to currency precision
|
||||
v_PaymentAmt := ROUND(COALESCE(v_PaymentAmt,0), v_Precision);
|
||||
|
||||
RETURN v_PaymentAmt * v_MultiplierAP;
|
||||
END invoicePaid;
|
||||
/
|
|
@ -34,6 +34,8 @@ RETURN NUMBER
|
|||
*
|
||||
************************************************************************/
|
||||
AS
|
||||
v_Precision NUMBER := 0;
|
||||
v_Min NUMBER := 0;
|
||||
v_MultiplierAP NUMBER := 1;
|
||||
v_PaymentAmt NUMBER := 0;
|
||||
CURSOR Cur_Alloc IS
|
||||
|
@ -46,6 +48,13 @@ AS
|
|||
AND a.IsActive='Y'
|
||||
AND a.DateAcct <= p_DateAcct;
|
||||
BEGIN
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = p_C_Currency_ID;
|
||||
|
||||
SELECT POWER(1/10,v_Precision) INTO v_Min FROM DUAL;
|
||||
|
||||
-- Default
|
||||
IF (p_MultiplierAP IS NOT NULL) THEN
|
||||
v_MultiplierAP := p_MultiplierAP;
|
||||
|
@ -56,7 +65,15 @@ BEGIN
|
|||
+ Currencyconvert(a.Amount + a.DisCountAmt + a.WriteOffAmt,
|
||||
a.C_Currency_ID, p_C_Currency_ID, a.DateTrx, NULL, a.AD_Client_ID, a.AD_Org_ID);
|
||||
END LOOP;
|
||||
--
|
||||
RETURN ROUND(NVL(v_PaymentAmt,0), 2) * v_MultiplierAP;
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_PaymentAmt > -v_Min AND v_PaymentAmt < v_Min) THEN
|
||||
v_PaymentAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to currency precision
|
||||
v_PaymentAmt := ROUND(COALESCE(v_PaymentAmt,0), v_Precision);
|
||||
|
||||
RETURN v_PaymentAmt * v_MultiplierAP;
|
||||
END InvoicepaidToDate;
|
||||
/
|
||||
|
|
|
@ -24,6 +24,9 @@ RETURN NUMBER
|
|||
************************************************************************/
|
||||
|
||||
AS
|
||||
v_Precision NUMBER := 0;
|
||||
v_Currency NUMBER := 0;
|
||||
v_Min NUMBER := 0;
|
||||
Discount NUMBER := 0;
|
||||
CURSOR Cur_PT IS
|
||||
SELECT *
|
||||
|
@ -34,6 +37,23 @@ AS
|
|||
Add1Date NUMBER := 0;
|
||||
Add2Date NUMBER := 0;
|
||||
BEGIN
|
||||
v_Currency := Currency_ID;
|
||||
IF (v_Currency = 0) THEN
|
||||
SELECT COALESCE(MAX(C_Currency_ID),0)
|
||||
INTO v_Currency
|
||||
FROM AD_ClientInfo ci, C_AcctSchema s, C_PaymentTerm pt
|
||||
WHERE ci.AD_Client_ID = s.AD_Client_ID
|
||||
AND ci.AD_Client_ID = pt.AD_Client_ID
|
||||
AND pt.C_PaymentTerm_ID = PaymentTerm_ID;
|
||||
END IF;
|
||||
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = v_Currency;
|
||||
|
||||
SELECT POWER(1/10,v_Precision) INTO v_Min FROM DUAL;
|
||||
|
||||
-- No Data - No Discount
|
||||
IF (Amount IS NULL OR PaymentTerm_ID IS NULL OR DocDate IS NULL) THEN
|
||||
RETURN 0;
|
||||
|
@ -60,7 +80,15 @@ BEGIN
|
|||
Discount := Amount * p.Discount2 / 100;
|
||||
END IF;
|
||||
END LOOP;
|
||||
--
|
||||
RETURN ROUND(NVL(Discount,0), 2); -- fixed rounding
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (Discount > -v_Min AND Discount < v_Min) THEN
|
||||
Discount := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to currency precision
|
||||
Discount := ROUND(COALESCE(Discount,0), v_Precision);
|
||||
|
||||
RETURN Discount;
|
||||
END paymentTermDiscount;
|
||||
/
|
|
@ -26,6 +26,8 @@ RETURN NUMBER
|
|||
|
||||
************************************************************************/
|
||||
AS
|
||||
v_Precision NUMBER := 0;
|
||||
v_Min NUMBER := 0;
|
||||
v_AllocatedAmt NUMBER := 0;
|
||||
v_PayAmt NUMBER;
|
||||
CURSOR Cur_Alloc IS
|
||||
|
@ -36,6 +38,13 @@ AS
|
|||
AND a.IsActive='Y';
|
||||
-- AND al.C_Invoice_ID IS NOT NULL;
|
||||
BEGIN
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = p_C_Currency_ID;
|
||||
|
||||
SELECT POWER(1/10,v_Precision) INTO v_Min FROM DUAL;
|
||||
|
||||
-- Charge - nothing available
|
||||
SELECT MAX(PayAmt)
|
||||
INTO v_PayAmt
|
||||
|
@ -50,8 +59,15 @@ BEGIN
|
|||
v_AllocatedAmt := v_AllocatedAmt
|
||||
+ currencyConvert(a.Amount, a.C_Currency_ID, p_C_Currency_ID, a.DateTrx, null, a.AD_Client_ID, a.AD_Org_ID);
|
||||
END LOOP;
|
||||
-- Round to penny
|
||||
v_AllocatedAmt := ROUND(NVL(v_AllocatedAmt,0), 2);
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_AllocatedAmt > -v_Min AND v_AllocatedAmt < v_Min) THEN
|
||||
v_AllocatedAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to currency precision
|
||||
v_AllocatedAmt := ROUND(COALESCE(v_AllocatedAmt,0), v_Precision);
|
||||
|
||||
RETURN v_AllocatedAmt;
|
||||
END paymentAllocated;
|
||||
/
|
|
@ -18,6 +18,8 @@ RETURN NUMBER
|
|||
************************************************************************/
|
||||
AS
|
||||
v_Currency_ID NUMBER(10);
|
||||
v_Precision NUMBER := 0;
|
||||
v_Min NUMBER := 0;
|
||||
v_AvailableAmt NUMBER := 0;
|
||||
v_IsReceipt C_Payment.IsReceipt%TYPE;
|
||||
v_Amt NUMBER := 0;
|
||||
|
@ -45,18 +47,28 @@ BEGIN
|
|||
WHERE C_Payment_ID = p_C_Payment_ID;
|
||||
-- DBMS_OUTPUT.PUT_LINE('== C_Payment_ID=' || p_C_Payment_ID || ', PayAmt=' || v_AvailableAmt || ', Receipt=' || v_IsReceipt);
|
||||
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = v_Currency_ID;
|
||||
|
||||
SELECT POWER(1/10,v_Precision) INTO v_Min FROM DUAL;
|
||||
|
||||
-- Calculate Allocated Amount
|
||||
FOR a IN Cur_Alloc LOOP
|
||||
v_Amt := currencyConvert(a.Amount, a.C_Currency_ID, v_Currency_ID, a.DateTrx, null, a.AD_Client_ID, a.AD_Org_ID);
|
||||
v_AvailableAmt := v_AvailableAmt - v_Amt;
|
||||
-- DBMS_OUTPUT.PUT_LINE(' Allocation=' || a.Amount || ' - Available=' || v_AvailableAmt);
|
||||
END LOOP;
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_AvailableAmt BETWEEN -0.00999 AND 0.00999) THEN
|
||||
IF (v_AvailableAmt > -v_Min AND v_AvailableAmt < v_Min) THEN
|
||||
v_AvailableAmt := 0;
|
||||
END IF;
|
||||
-- Round to penny
|
||||
v_AvailableAmt := ROUND(NVL(v_AvailableAmt,0), 2);
|
||||
|
||||
-- Round to currency precision
|
||||
v_AvailableAmt := ROUND(COALESCE(v_AvailableAmt,0), v_Precision);
|
||||
|
||||
RETURN v_AvailableAmt;
|
||||
END paymentAvailable;
|
||||
/
|
||||
|
|
|
@ -31,18 +31,26 @@ as
|
|||
v_Saturday number := TO_CHAR(TO_DATE('2000-01-01', 'YYYY-MM-DD'), 'D');
|
||||
v_Sunday number := (case when v_Saturday = 7 then 1 else v_Saturday + 1 end);
|
||||
v_isHoliday boolean := true;
|
||||
v_country c_country.c_country_id%type;
|
||||
|
||||
cursor nonBusinessDays(pp_Date date) is
|
||||
cursor nonBusinessDays(pp_Date date, pp_country c_country.c_country_id%type) is
|
||||
select nbd.Date1 from C_NonBusinessDay nbd
|
||||
where AD_Client_ID=p_AD_Client_ID and IsActive ='Y' and Date1>=pp_Date
|
||||
AND COALESCE(C_Country_ID,0) IN (0, pp_country)
|
||||
order by Date1;
|
||||
begin
|
||||
v_isHoliday := true;
|
||||
SELECT COALESCE(MAX(co.c_country_id), 100)
|
||||
INTO v_country
|
||||
FROM ad_client cl
|
||||
JOIN ad_language l ON cl.ad_language = l.ad_language
|
||||
JOIN c_country co ON l.countrycode = co.countrycode
|
||||
WHERE cl.ad_client_id = p_ad_client_id;
|
||||
loop
|
||||
SELECT DECODE(TO_CHAR(v_nextDate,'D'), v_Saturday, 2, v_Sunday, 1, 0) INTO v_offset FROM DUAL;
|
||||
v_nextDate := TRUNC(v_nextDate + v_offset);
|
||||
v_isHoliday := false;
|
||||
for nbd in nonBusinessDays(v_nextDate) loop
|
||||
for nbd in nonBusinessDays(v_nextDate, v_country) loop
|
||||
exit when v_nextDate <> TRUNC(nbd.Date1);
|
||||
v_nextDate := v_nextDate + 1;
|
||||
v_isHoliday := true;
|
||||
|
|
|
@ -6,7 +6,7 @@ CREATE OR REPLACE VIEW AD_TAB_V
|
|||
AD_IMAGE_ID, TABLEVEL, WHERECLAUSE, ORDERBYCLAUSE, COMMITWARNING,
|
||||
READONLYLOGIC, DISPLAYLOGIC, AD_COLUMN_ID, AD_PROCESS_ID, ISSORTTAB,
|
||||
ISINSERTRECORD, ISADVANCEDTAB, AD_COLUMNSORTORDER_ID, AD_COLUMNSORTYESNO_ID,
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU)
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU, TREEDISPLAYEDON)
|
||||
AS
|
||||
SELECT t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, t.Name, t.Description,
|
||||
t.Help, t.SeqNo, t.IsSingleRow, t.HasTree, t.IsInfoTab, tbl.ReplicationType,
|
||||
|
@ -16,7 +16,7 @@ SELECT t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, t.Name, t.Description,
|
|||
t.WhereClause, t.OrderByClause, t.CommitWarning, t.ReadOnlyLogic, t.DisplayLogic,
|
||||
t.AD_Column_ID, t.AD_Process_ID, t.IsSortTab, t.IsInsertRecord, t.IsAdvancedTab,
|
||||
t.AD_ColumnSortOrder_ID, t.AD_ColumnSortYesNo_ID, t.Included_Tab_ID, t.Parent_Column_ID,
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU, t.TreeDisplayedOn
|
||||
FROM AD_Tab t
|
||||
INNER JOIN AD_Table tbl ON (t.AD_Table_ID = tbl.AD_Table_ID)
|
||||
WHERE t.IsActive='Y'
|
||||
|
|
|
@ -6,7 +6,7 @@ CREATE OR REPLACE VIEW AD_TAB_VT
|
|||
ISREADONLY, AD_IMAGE_ID, TABLEVEL, WHERECLAUSE, ORDERBYCLAUSE,
|
||||
COMMITWARNING, READONLYLOGIC, DISPLAYLOGIC, AD_COLUMN_ID, AD_PROCESS_ID,
|
||||
ISSORTTAB, ISINSERTRECORD, ISADVANCEDTAB, AD_COLUMNSORTORDER_ID, AD_COLUMNSORTYESNO_ID,
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU)
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU, TREEDISPLAYEDON)
|
||||
AS
|
||||
SELECT trl.AD_Language, t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, trl.Name, trl.Description,
|
||||
trl.Help, t.SeqNo, t.IsSingleRow, t.HasTree, t.IsInfoTab, tbl.ReplicationType,
|
||||
|
@ -16,7 +16,7 @@ SELECT trl.AD_Language, t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, trl.Name, tr
|
|||
t.WhereClause, t.OrderByClause, trl.CommitWarning, t.ReadOnlyLogic, t.DisplayLogic,
|
||||
t.AD_Column_ID, t.AD_Process_ID, t.IsSortTab, t.IsInsertRecord, t.IsAdvancedTab,
|
||||
t.AD_ColumnSortOrder_ID, t.AD_ColumnSortYesNo_ID, t.Included_Tab_ID, t.Parent_Column_ID,
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU, t.TreeDisplayedOn
|
||||
FROM AD_Tab t
|
||||
INNER JOIN AD_Table tbl ON (t.AD_Table_ID = tbl.AD_Table_ID)
|
||||
INNER JOIN AD_Tab_Trl trl ON (t.AD_Tab_ID = trl.AD_Tab_ID)
|
||||
|
|
|
@ -11,11 +11,11 @@ SELECT il.AD_Client_ID, il.AD_Org_ID,
|
|||
i.C_BPartner_ID, il.M_Product_ID,
|
||||
i.DocumentNo, i.DateInvoiced, i.DateAcct,
|
||||
i.IsSOTrx, i.DocStatus,
|
||||
ROUND(i.Multiplier*LineNetAmt, 2) AS LineNetAmt,
|
||||
ROUND(i.Multiplier*PriceList*QtyInvoiced, 2) AS LineListAmt,
|
||||
CASE WHEN COALESCE(il.PriceLimit, 0)=0 THEN ROUND(i.Multiplier*LineNetAmt,2) ELSE ROUND(i.Multiplier*PriceLimit*QtyInvoiced,2) END AS LineLimitAmt,
|
||||
ROUND(i.Multiplier*PriceList*QtyInvoiced-LineNetAmt,2) AS LineDiscountAmt,
|
||||
CASE WHEN COALESCE(il.PriceLimit,0)=0 THEN 0 ELSE ROUND(i.Multiplier*LineNetAmt-PriceLimit*QtyInvoiced,2) END AS LineOverLimitAmt,
|
||||
currencyRound(i.Multiplier*LineNetAmt,i.C_Currency_ID,'N') AS LineNetAmt,
|
||||
currencyRound(i.Multiplier*PriceList*QtyInvoiced,i.C_Currency_ID,'N') AS LineListAmt,
|
||||
CASE WHEN COALESCE(il.PriceLimit, 0)=0 THEN currencyRound(i.Multiplier*LineNetAmt,i.C_Currency_ID,'N') ELSE currencyRound(i.Multiplier*il.PriceLimit*il.QtyInvoiced,i.C_Currency_ID,'N') END AS LineLimitAmt,
|
||||
currencyRound(i.Multiplier*il.PriceList*il.QtyInvoiced-il.LineNetAmt,i.C_Currency_ID,'N') AS LineDiscountAmt,
|
||||
CASE WHEN COALESCE(il.PriceLimit,0)=0 THEN 0 ELSE currencyRound(i.Multiplier*il.LineNetAmt-il.PriceLimit*il.QtyInvoiced,i.C_Currency_ID,'N') END AS LineOverLimitAmt,
|
||||
il.QtyInvoiced, il.QtyEntered,
|
||||
il.Line, il.C_OrderLine_ID, il.C_UOM_ID,
|
||||
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
create view M_InoutLineMA_Returned as
|
||||
SELECT sma.m_inoutline_id,
|
||||
sma.m_attributesetinstance_id,
|
||||
sma.ad_client_id,
|
||||
sma.ad_org_id,
|
||||
sma.isactive,
|
||||
sma.created,
|
||||
sma.createdby,
|
||||
sma.updated,
|
||||
sma.updatedby,
|
||||
sma.movementqty,
|
||||
sma.m_inoutlinema_uu,
|
||||
sma.datematerialpolicy,
|
||||
sma.isautogenerated,
|
||||
sum (crma.movementqty) returnedQty
|
||||
FROM M_InoutLineMA sma inner join M_InoutLine sl on (sma.M_InoutLine_ID =sl.M_InoutLine_ID)
|
||||
inner join M_InOut sio on (sio.M_InOut_ID=sl.M_InOut_ID) left join M_RMALine rl on (rl.M_InOutLine_ID = sl.M_InOutLine_ID )
|
||||
left join M_InoutLine crl on (rl.M_RMALine_ID =crl.M_RMALine_ID)
|
||||
left join M_inout cr on (cr.M_Inout_ID = crl.M_Inout_ID and not cr.docstatus in ('CO','RE'))
|
||||
left join M_InoutLineMA crma on (crma.M_InoutLine_Id = crl.M_InoutLine_ID and sma.M_AttributeSetInstance_ID=crma.M_AttributeSetInstance_ID)
|
||||
group by sma.M_AttributeSetInstance_ID,sma.m_inoutline_id,sma.ad_client_id,sma.ad_org_id,sma.isactive,sma.created,sma.createdby,sma.updated
|
||||
,sma.updatedby,sma.movementqty,sma.m_inoutlinema_uu,sma.datematerialpolicy;
|
||||
|
|
@ -13,7 +13,7 @@ SELECT s.ad_client_id,
|
|||
sum(ms.qtyonhand - ms.qtyreserved) AS qtyavailable,
|
||||
sum(ms.qtyonhand) AS qtyonhand,
|
||||
sum(ms.qtyreserved) AS qtyreserved,
|
||||
ROUND(MAX(mpr.pricestd),0) AS pricestd,
|
||||
currencyRound(MAX(mpr.pricestd),mpl.C_Currency_ID,'N') AS pricestd,
|
||||
mpr.m_pricelist_version_id,
|
||||
mw.m_warehouse_id,
|
||||
org.name AS orgname
|
||||
|
@ -23,6 +23,8 @@ SELECT s.ad_client_id,
|
|||
JOIN m_locator ml ON ms.m_locator_id = ml.m_locator_id
|
||||
JOIN m_warehouse mw ON ml.m_warehouse_id = mw.m_warehouse_id
|
||||
JOIN m_productprice mpr ON ms.m_product_id = mpr.m_product_id
|
||||
JOIN m_pricelist_version mplv ON mplv.m_pricelist_version_id = mpr.m_pricelist_version_id
|
||||
JOIN m_pricelist mpl ON mplv.m_pricelist_id = mpl.m_pricelist_id
|
||||
JOIN ad_org org ON org.ad_org_id = mw.ad_org_id
|
||||
GROUP BY s.ad_client_id,
|
||||
s.ad_org_id,
|
||||
|
@ -36,7 +38,8 @@ SELECT s.ad_client_id,
|
|||
mw.m_warehouse_id,
|
||||
mpr.m_pricelist_version_id,
|
||||
org.name,
|
||||
mp.name
|
||||
mp.name,
|
||||
mpl.C_Currency_ID
|
||||
UNION
|
||||
SELECT r.ad_client_id,
|
||||
r.ad_org_id,
|
||||
|
@ -52,7 +55,7 @@ SELECT s.ad_client_id,
|
|||
sum(ms.qtyonhand - ms.qtyreserved) AS qtyavailable,
|
||||
sum(ms.qtyonhand) AS qtyonhand,
|
||||
sum(ms.qtyreserved) AS qtyreserved,
|
||||
ROUND(MAX(mpr.pricestd),0) AS pricestd,
|
||||
currencyRound(MAX(mpr.pricestd),mpl.C_Currency_ID,'N') AS pricestd,
|
||||
mpr.m_pricelist_version_id,
|
||||
mw.m_warehouse_id,
|
||||
org.name AS orgname
|
||||
|
@ -62,6 +65,8 @@ SELECT s.ad_client_id,
|
|||
JOIN m_locator ml ON ms.m_locator_id = ml.m_locator_id
|
||||
JOIN m_warehouse mw ON ml.m_warehouse_id = mw.m_warehouse_id
|
||||
JOIN m_productprice mpr ON ms.m_product_id = mpr.m_product_id
|
||||
JOIN m_pricelist_version mplv ON mplv.m_pricelist_version_id = mpr.m_pricelist_version_id
|
||||
JOIN m_pricelist mpl ON mplv.m_pricelist_id = mpl.m_pricelist_id
|
||||
JOIN ad_org org ON org.ad_org_id = mw.ad_org_id
|
||||
GROUP BY r.ad_client_id,
|
||||
r.ad_org_id,
|
||||
|
@ -75,4 +80,5 @@ SELECT s.ad_client_id,
|
|||
mw.m_warehouse_id,
|
||||
mpr.m_pricelist_version_id,
|
||||
org.name,
|
||||
mp.name;
|
||||
mp.name,
|
||||
mpl.C_Currency_ID;
|
|
@ -1,5 +1,4 @@
|
|||
CREATE OR REPLACE VIEW rv_c_invoiceline
|
||||
AS
|
||||
CREATE OR REPLACE VIEW rv_c_invoiceline AS
|
||||
SELECT il.ad_client_id,
|
||||
il.ad_org_id,
|
||||
il.isactive,
|
||||
|
@ -38,29 +37,16 @@ AS
|
|||
il.priceactual,
|
||||
il.pricelimit,
|
||||
il.priceentered,
|
||||
CASE
|
||||
WHEN il.pricelist = 0 THEN 0
|
||||
ELSE round(( il.pricelist - il.priceactual ) / il.pricelist * 100, 2)
|
||||
END AS discount,
|
||||
CASE
|
||||
WHEN il.pricelimit = 0 THEN 0
|
||||
ELSE round(( il.priceactual - il.pricelimit ) / il.pricelimit * 100, 2)
|
||||
END AS margin,
|
||||
CASE
|
||||
WHEN il.pricelimit = 0 THEN 0
|
||||
ELSE ( il.priceactual - il.pricelimit ) * il.qtyinvoiced
|
||||
END AS marginamt,
|
||||
round(i.multiplier * il.linenetamt, 2) AS linenetamt,
|
||||
round(i.multiplier * il.pricelist * il.qtyinvoiced, 2) AS linelistamt,
|
||||
CASE
|
||||
WHEN COALESCE(il.pricelimit, 0) = 0 THEN round(i.multiplier * il.linenetamt, 2)
|
||||
ELSE round(i.multiplier * il.pricelimit * il.qtyinvoiced, 2)
|
||||
END AS linelimitamt,
|
||||
round(i.multiplier * il.pricelist * il.qtyinvoiced - il.linenetamt, 2) AS linediscountamt,
|
||||
CASE
|
||||
WHEN COALESCE(il.pricelimit, 0) = 0 THEN 0
|
||||
ELSE round(i.multiplier * il.linenetamt - il.pricelimit * il.qtyinvoiced, 2)
|
||||
END AS lineoverlimitamt,
|
||||
CASE WHEN il.pricelist = 0 THEN 0 ELSE currencyRound((il.pricelist - il.priceactual) / il.pricelist * 100,i.C_Currency_ID,'N') END AS discount,
|
||||
CASE WHEN il.pricelimit = 0 THEN 0 ELSE currencyRound((il.priceactual - il.pricelimit) / il.pricelimit * 100,i.C_Currency_ID,'N') END AS margin,
|
||||
CASE WHEN il.pricelimit = 0 THEN 0 ELSE (il.priceactual - il.pricelimit) * il.qtyinvoiced END AS marginamt,
|
||||
currencyRound(i.multiplier * il.linenetamt,i.C_Currency_ID,'N') AS linenetamt,
|
||||
currencyRound(i.multiplier * il.pricelist * il.qtyinvoiced,i.C_Currency_ID,'N') AS linelistamt,
|
||||
CASE WHEN COALESCE(il.pricelimit, 0) = 0 THEN currencyRound(i.multiplier * il.linenetamt,i.C_Currency_ID,'N') ELSE currencyRound(i.multiplier * il.pricelimit * il.qtyinvoiced,i.C_Currency_ID,'N') END
|
||||
AS linelimitamt,
|
||||
currencyRound(i.multiplier * il.pricelist * il.qtyinvoiced - il.linenetamt,i.C_Currency_ID,'N') AS linediscountamt,
|
||||
CASE WHEN COALESCE(il.pricelimit, 0) = 0 THEN 0 ELSE currencyRound(i.multiplier * il.linenetamt - il.pricelimit * il.qtyinvoiced,i.C_Currency_ID,'N') END AS
|
||||
lineoverlimitamt,
|
||||
il.ad_orgtrx_id,
|
||||
il.a_processed,
|
||||
il.c_charge_id,
|
||||
|
@ -153,4 +139,3 @@ AS
|
|||
LEFT JOIN m_attributesetinstance pasi
|
||||
ON il.m_attributesetinstance_id = pasi.m_attributesetinstance_id
|
||||
;
|
||||
|
||||
|
|
|
@ -11,14 +11,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID,
|
|||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.C_BPartner_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'Q'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'Q'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -11,16 +11,17 @@ SELECT il.AD_Client_ID, il.AD_Org_ID,
|
|||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
INNER JOIN M_Product_PO po ON (il.M_Product_ID=po.M_Product_ID)
|
||||
WHERE il.IsSOTrx='Y'
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.C_BPartner_ID, po.C_BPartner_ID,
|
||||
firstOf(il.DateInvoiced, 'Q');
|
||||
firstOf(il.DateInvoiced, 'Q'), i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -3,21 +3,22 @@ CREATE OR REPLACE VIEW RV_C_INVOICE_DAY
|
|||
LINELISTAMT, LINELIMITAMT, LINEDISCOUNTAMT, LINEDISCOUNT, LINEOVERLIMITAMT,
|
||||
LINEOVERLIMIT, ISSOTRX)
|
||||
AS
|
||||
SELECT AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'DD') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SELECT il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'DD') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SUM(LineNetAmt) AS LineNetAmt,
|
||||
SUM(LineListAmt) AS LineListAmt,
|
||||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
IsSOTrx
|
||||
FROM RV_C_InvoiceLine
|
||||
GROUP BY AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'DD'), IsSOTrx;
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'DD'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -3,21 +3,22 @@ CREATE OR REPLACE VIEW RV_C_INVOICE_MONTH
|
|||
LINELISTAMT, LINELIMITAMT, LINEDISCOUNTAMT, LINEDISCOUNT, LINEOVERLIMITAMT,
|
||||
LINEOVERLIMIT, ISSOTRX)
|
||||
AS
|
||||
SELECT AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'MM') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SELECT il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'MM') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SUM(LineNetAmt) AS LineNetAmt,
|
||||
SUM(LineListAmt) AS LineListAmt,
|
||||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
IsSOTrx
|
||||
FROM RV_C_InvoiceLine
|
||||
GROUP BY AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'MM'), IsSOTrx;
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'MM'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,14 +10,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_Category_ID,
|
|||
SUM(il.LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'MM'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'MM'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,14 +10,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
|
|||
SUM(il.LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
|
||||
firstOf(il.DateInvoiced, 'MM'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'MM'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,14 +10,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
|
|||
SUM(il.LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
|
||||
firstOf(il.DateInvoiced, 'Q'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'Q'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,14 +10,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_Category_ID,
|
|||
SUM(il.LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'DY'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'DY'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,21 +6,22 @@ AS
|
|||
SELECT il.AD_Client_ID, il.AD_Org_ID,
|
||||
po.C_BPartner_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'MM') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SUM(LineNetAmt) AS LineNetAmt,
|
||||
SUM(il.LineNetAmt) AS LineNetAmt,
|
||||
SUM(LineListAmt) AS LineListAmt,
|
||||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
INNER JOIN M_Product_PO po ON (il.M_Product_ID=po.M_Product_ID)
|
||||
WHERE il.IsSOTrx='Y'
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, po.C_BPartner_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'MM');
|
||||
firstOf(il.DateInvoiced, 'MM'), i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -3,21 +3,22 @@ CREATE OR REPLACE VIEW RV_C_INVOICE_WEEK
|
|||
LINELISTAMT, LINELIMITAMT, LINEDISCOUNTAMT, LINEDISCOUNT, LINEOVERLIMITAMT,
|
||||
LINEOVERLIMIT, ISSOTRX)
|
||||
AS
|
||||
SELECT AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'DY') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SELECT il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'DY') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SUM(LineNetAmt) AS LineNetAmt,
|
||||
SUM(LineListAmt) AS LineListAmt,
|
||||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
IsSOTrx
|
||||
FROM RV_C_InvoiceLine
|
||||
GROUP BY AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'DY'), IsSOTrx;
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'DY'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
DROP VIEW rv_openitem;
|
||||
|
||||
CREATE OR REPLACE VIEW rv_openitem
|
||||
AS
|
||||
CREATE OR REPLACE VIEW rv_openitem AS
|
||||
SELECT i.ad_org_id,
|
||||
i.ad_client_id,
|
||||
i.documentno,
|
||||
|
@ -15,7 +14,7 @@ AS
|
|||
paymenttermduedate(i.c_paymentterm_id, i.dateinvoiced) AS duedate,
|
||||
paymenttermduedays(i.c_paymentterm_id, i.dateinvoiced, getdate()) AS daysdue,
|
||||
adddays(i.dateinvoiced, p.discountdays) AS discountdate,
|
||||
round(i.grandtotal * p.discount / 100, 2) AS discountamt,
|
||||
currencyRound(i.grandtotal * p.discount / 100,i.C_Currency_ID,'N') AS discountamt,
|
||||
i.grandtotal,
|
||||
invoicepaid(i.c_invoice_id, i.c_currency_id, 1) AS paidamt,
|
||||
invoiceopen(i.c_invoice_id, 0) AS openamt,
|
||||
|
@ -74,9 +73,8 @@ AS
|
|||
FROM rv_c_invoice i
|
||||
JOIN c_paymentterm p
|
||||
ON i.c_paymentterm_id = p.c_paymentterm_id
|
||||
WHERE invoiceopen(i.c_invoice_id, 0) <> 0
|
||||
AND i.ispayschedulevalid <> 'Y'
|
||||
AND i.docstatus IN ( 'CO', 'CL' )
|
||||
WHERE invoiceopen(i.c_invoice_id, 0) <> 0 AND i.ispayschedulevalid <> 'Y' AND i.docstatus IN ('CO',
|
||||
'CL')
|
||||
UNION
|
||||
SELECT i.ad_org_id,
|
||||
i.ad_client_id,
|
||||
|
@ -150,9 +148,6 @@ AS
|
|||
FROM rv_c_invoice i
|
||||
JOIN c_invoicepayschedule ips
|
||||
ON i.c_invoice_id = ips.c_invoice_id
|
||||
WHERE invoiceopen(i.c_invoice_id, ips.c_invoicepayschedule_id) <> 0
|
||||
AND i.ispayschedulevalid = 'Y'
|
||||
AND i.docstatus IN ( 'CO', 'CL' )
|
||||
AND ips.isvalid = 'Y'
|
||||
WHERE invoiceopen(i.c_invoice_id, ips.c_invoicepayschedule_id) <> 0 AND i.ispayschedulevalid = 'Y' AND i.docstatus IN ('CO',
|
||||
'CL') AND ips.isvalid = 'Y'
|
||||
;
|
||||
|
||||
|
|
|
@ -14,20 +14,19 @@ SELECT i.AD_Org_ID, i.AD_Client_ID,
|
|||
paymentTermDueDate(i.C_PaymentTerm_ID, i.DateInvoiced) AS DueDate,
|
||||
paymentTermDueDays(i.C_PaymentTerm_ID, i.DateInvoiced, getdate()) AS DaysDue,
|
||||
addDays(i.DateInvoiced,p.DiscountDays) AS DiscountDate,
|
||||
ROUND(i.GrandTotal*p.Discount/100,2) AS DiscountAmt,
|
||||
currencyRound(i.GrandTotal*p.Discount/100,i.C_Currency_ID,'N') AS DiscountAmt,
|
||||
i.GrandTotal,
|
||||
--invoicePaid(i.C_Invoice_ID, i.C_Currency_ID, 1) AS PaidAmt,
|
||||
--invoiceOpen(i.C_Invoice_ID,0) AS OpenAmt,
|
||||
i.C_Currency_ID, i.C_ConversionType_ID,
|
||||
i.C_PaymentTerm_ID,
|
||||
i.IsPayScheduleValid, cast(null as number) AS C_InvoicePaySchedule_ID, i.InvoiceCollectionType,
|
||||
i.IsPayScheduleValid, cast(null as numeric) AS C_InvoicePaySchedule_ID, i.InvoiceCollectionType,
|
||||
i.C_Campaign_ID, i.C_Project_ID, i.C_Activity_ID
|
||||
FROM RV_C_Invoice i
|
||||
INNER JOIN C_PaymentTerm p ON (i.C_PaymentTerm_ID=p.C_PaymentTerm_ID)
|
||||
WHERE -- i.IsPaid='N'
|
||||
--invoiceOpen(i.C_Invoice_ID,0) <> 0 AND
|
||||
i.IsPayScheduleValid<>'Y'
|
||||
AND i.DocStatus<>'DR'
|
||||
AND i.DocStatus IN ('CO','CL')
|
||||
UNION
|
||||
SELECT i.AD_Org_ID, i.AD_Client_ID,
|
||||
|
@ -50,7 +49,6 @@ FROM RV_C_Invoice i
|
|||
WHERE -- i.IsPaid='N'
|
||||
--invoiceOpen(i.C_Invoice_ID,ips.C_InvoicePaySchedule_ID) <> 0 AND
|
||||
i.IsPayScheduleValid='Y'
|
||||
AND i.DocStatus<>'DR'
|
||||
AND i.DocStatus IN ('CO','CL')
|
||||
AND ips.IsValid='Y';
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
DROP VIEW rv_orderdetail;
|
||||
|
||||
CREATE OR REPLACE VIEW rv_orderdetail
|
||||
AS
|
||||
CREATE OR REPLACE VIEW rv_orderdetail AS
|
||||
SELECT l.ad_client_id,
|
||||
l.ad_org_id,
|
||||
l.isactive,
|
||||
|
@ -56,18 +55,9 @@ AS
|
|||
(l.qtyordered - l.qtyinvoiced) * l.priceactual AS netamttoinvoice,
|
||||
l.qtylostsales,
|
||||
l.qtylostsales * l.priceactual AS amtlostsales,
|
||||
CASE
|
||||
WHEN l.pricelist = 0 THEN 0
|
||||
ELSE round(( l.pricelist - l.priceactual ) / l.pricelist * 100, 2)
|
||||
END AS discount,
|
||||
CASE
|
||||
WHEN l.pricelimit = 0 THEN 0
|
||||
ELSE round(( l.priceactual - l.pricelimit ) / l.pricelimit * 100, 2)
|
||||
END AS margin,
|
||||
CASE
|
||||
WHEN l.pricelimit = 0 THEN 0
|
||||
ELSE ( l.priceactual - l.pricelimit ) * l.qtydelivered
|
||||
END AS marginamt,
|
||||
CASE WHEN l.pricelist = 0 THEN 0 ELSE currencyRound((l.pricelist - l.priceactual) / l.pricelist * 100,o.C_Currency_ID,'N') END AS discount,
|
||||
CASE WHEN l.pricelimit = 0 THEN 0 ELSE currencyRound((l.priceactual - l.pricelimit) / l.pricelimit * 100,o.C_Currency_ID,'N') END AS margin,
|
||||
CASE WHEN l.pricelimit = 0 THEN 0 ELSE (l.priceactual - l.pricelimit) * l.qtydelivered END AS marginamt,
|
||||
o.ad_org_id AS c_order_ad_org_id,
|
||||
o.ad_orgtrx_id AS c_order_ad_orgtrx_id,
|
||||
o.amountrefunded,
|
||||
|
@ -175,4 +165,3 @@ AS
|
|||
LEFT JOIN m_attributesetinstance pasi
|
||||
ON l.m_attributesetinstance_id = pasi.m_attributesetinstance_id
|
||||
;
|
||||
|
||||
|
|
|
@ -35,7 +35,5 @@ BEGIN
|
|||
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
|
||||
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -9,5 +9,6 @@ BEGIN
|
|||
return cast(datetime + cast(duration as interval) as date);
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql'
|
||||
LANGUAGE 'plpgsql' IMMUTABLE
|
||||
;
|
||||
|
||||
|
|
|
@ -20,5 +20,5 @@ BEGIN
|
|||
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -48,4 +48,5 @@ BEGIN
|
|||
RETURN currencyConvert (p_Amount, p_CurFrom_ID, v_CurTo_ID, p_ConvDate, null, p_Client_ID, p_Org_ID);
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -55,8 +55,5 @@ BEGIN
|
|||
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
|
||||
|
||||
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ BEGIN
|
|||
SELECT C_ConversionType_ID
|
||||
INTO v_ConversionType_ID
|
||||
FROM C_ConversionType
|
||||
WHERE IsDefault='Y'
|
||||
WHERE IsActive='Y' AND IsDefault='Y'
|
||||
AND AD_Client_ID IN (0,p_Client_ID)
|
||||
ORDER BY AD_Client_ID DESC
|
||||
LIMIT 1;
|
||||
|
@ -140,7 +140,7 @@ BEGIN
|
|||
BEGIN
|
||||
FOR c IN SELECT MultiplyRate
|
||||
FROM C_Conversion_Rate
|
||||
WHERE C_Currency_ID=v_CurrencyFrom AND C_Currency_ID_To=v_CurrencyTo
|
||||
WHERE IsActive='Y' AND C_Currency_ID=v_CurrencyFrom AND C_Currency_ID_To=v_CurrencyTo
|
||||
AND C_ConversionType_ID=v_ConversionType_ID
|
||||
AND v_ConvDate BETWEEN ValidFrom AND ValidTo
|
||||
AND AD_Client_ID IN (0,p_Client_ID) AND AD_Org_ID IN (0,p_Org_ID)
|
||||
|
@ -175,4 +175,5 @@ EXCEPTION WHEN OTHERS THEN
|
|||
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -57,6 +57,5 @@ BEGIN
|
|||
END;
|
||||
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' VOLATILE;
|
||||
LANGUAGE 'plpgsql' STABLE;
|
||||
|
||||
ALTER FUNCTION currencyround(p_amount numeric, p_curto_id numeric, p_costing character varying) OWNER TO adempiere;
|
||||
|
|
|
@ -29,15 +29,16 @@ DECLARE
|
|||
v_GrandTotal NUMERIC;
|
||||
v_TotalLines NUMERIC;
|
||||
v_C_PaymentTerm_ID NUMERIC(10);
|
||||
v_C_Currency_ID NUMERIC(10);
|
||||
v_DocDate timestamp with time zone;
|
||||
v_PayDate timestamp with time zone := now();
|
||||
v_IsPayScheduleValid CHAR(1);
|
||||
|
||||
BEGIN
|
||||
SELECT ci.IsDiscountLineAmt, i.GrandTotal, i.TotalLines,
|
||||
i.C_PaymentTerm_ID, i.DateInvoiced, i.IsPayScheduleValid
|
||||
i.C_PaymentTerm_ID, i.DateInvoiced, i.IsPayScheduleValid, C_Currency_ID
|
||||
INTO v_IsDiscountLineAmt, v_GrandTotal, v_TotalLines,
|
||||
v_C_PaymentTerm_ID, v_DocDate, v_IsPayScheduleValid
|
||||
v_C_PaymentTerm_ID, v_DocDate, v_IsPayScheduleValid, v_C_Currency_ID
|
||||
FROM AD_ClientInfo ci, C_Invoice i
|
||||
WHERE ci.AD_Client_ID=i.AD_Client_ID
|
||||
AND i.C_Invoice_ID=p_C_Invoice_ID;
|
||||
|
@ -63,13 +64,13 @@ BEGIN
|
|||
INTO v_Amount
|
||||
FROM C_InvoicePaySchedule
|
||||
WHERE C_InvoicePaySchedule_ID=p_C_InvoicePaySchedule_ID
|
||||
AND DiscountDate <= v_PayDate;
|
||||
AND DiscountDate >= v_PayDate;
|
||||
--
|
||||
RETURN v_Amount;
|
||||
END IF;
|
||||
|
||||
-- return discount amount
|
||||
RETURN paymentTermDiscount (v_Amount, 0, v_C_PaymentTerm_ID, v_DocDate, p_PayDate);
|
||||
RETURN paymentTermDiscount (v_Amount, v_C_Currency_ID, v_C_PaymentTerm_ID, v_DocDate, p_PayDate);
|
||||
|
||||
-- Most likely if invoice not found
|
||||
EXCEPTION
|
||||
|
@ -77,6 +78,5 @@ EXCEPTION
|
|||
RETURN NULL;
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -116,5 +116,6 @@ BEGIN
|
|||
END;
|
||||
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql'
|
||||
LANGUAGE 'plpgsql' STABLE
|
||||
;
|
||||
|
||||
|
|
|
@ -44,6 +44,8 @@ AS
|
|||
$BODY$
|
||||
DECLARE
|
||||
v_Currency_ID numeric(10);
|
||||
v_Precision NUMERIC := 0;
|
||||
v_Min NUMERIC := 0;
|
||||
v_TotalOpenAmt numeric := 0;
|
||||
v_PaidAmt numeric := 0;
|
||||
v_Remaining numeric := 0;
|
||||
|
@ -67,6 +69,13 @@ BEGIN
|
|||
END;
|
||||
-- DBMS_OUTPUT.PUT_LINE('== C_Invoice_ID=' || p_C_Invoice_ID || ', Total=' || v_TotalOpenAmt || ', AP=' || v_MultiplierAP || ', CM=' || v_MultiplierCM);
|
||||
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = v_Currency_ID;
|
||||
|
||||
SELECT 1/10^v_Precision INTO v_Min;
|
||||
|
||||
-- Calculate Allocated Amount
|
||||
FOR allocationline IN
|
||||
SELECT a.AD_Client_ID, a.AD_Org_ID,
|
||||
|
@ -113,13 +122,117 @@ BEGIN
|
|||
-- DBMS_OUTPUT.PUT_LINE('== Total=' || v_TotalOpenAmt);
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_TotalOpenAmt BETWEEN -0.00999 AND 0.00999) THEN
|
||||
IF (v_TotalOpenAmt > -v_Min AND v_TotalOpenAmt < v_Min) THEN
|
||||
v_TotalOpenAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to penny
|
||||
v_TotalOpenAmt := ROUND(COALESCE(v_TotalOpenAmt,0), 2);
|
||||
-- Round to currency precision
|
||||
v_TotalOpenAmt := ROUND(COALESCE(v_TotalOpenAmt,0), v_Precision);
|
||||
|
||||
RETURN v_TotalOpenAmt;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' ;
|
||||
LANGUAGE 'plpgsql' STABLE;
|
||||
|
||||
|
||||
CREATE OR REPLACE FUNCTION InvoiceopenToDate
|
||||
(
|
||||
p_C_Invoice_ID IN numeric,
|
||||
p_C_InvoicePaySchedule_ID IN numeric,
|
||||
p_DateAcct IN date
|
||||
)
|
||||
RETURNS numeric
|
||||
AS
|
||||
$BODY$
|
||||
DECLARE
|
||||
v_Currency_ID numeric(10);
|
||||
v_Precision NUMERIC := 0;
|
||||
v_Min NUMERIC := 0;
|
||||
v_TotalOpenAmt numeric := 0;
|
||||
v_PaidAmt numeric := 0;
|
||||
v_Remaining numeric := 0;
|
||||
v_MultiplierAP numeric := 0;
|
||||
v_MultiplierCM numeric := 0;
|
||||
v_Temp numeric := 0;
|
||||
allocationline record;
|
||||
invoiceschedule record;
|
||||
BEGIN
|
||||
-- Get Currency
|
||||
BEGIN
|
||||
SELECT MAX(C_Currency_ID), SUM(GrandTotal), MAX(MultiplierAP), MAX(Multiplier)
|
||||
INTO v_Currency_ID, v_TotalOpenAmt, v_MultiplierAP, v_MultiplierCM
|
||||
FROM C_Invoice_v -- corrected for CM / Split Payment
|
||||
WHERE C_Invoice_ID = p_C_Invoice_ID
|
||||
AND DateAcct <= p_DateAcct;
|
||||
EXCEPTION -- Invoice in draft form
|
||||
WHEN OTHERS THEN
|
||||
--DBMS_OUTPUT.PUT_LINE('InvoiceOpen - ' || SQLERRM);
|
||||
RETURN NULL;
|
||||
END;
|
||||
-- DBMS_OUTPUT.PUT_LINE('== C_Invoice_ID=' || p_C_Invoice_ID || ', Total=' || v_TotalOpenAmt || ', AP=' || v_MultiplierAP || ', CM=' || v_MultiplierCM);
|
||||
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = v_Currency_ID;
|
||||
|
||||
SELECT 1/10^v_Precision INTO v_Min;
|
||||
|
||||
-- Calculate Allocated Amount
|
||||
FOR allocationline IN
|
||||
SELECT a.AD_Client_ID, a.AD_Org_ID,
|
||||
al.Amount, al.DiscountAmt, al.WriteOffAmt,
|
||||
a.C_Currency_ID, a.DateTrx
|
||||
FROM C_ALLOCATIONLINE al
|
||||
INNER JOIN C_ALLOCATIONHDR a ON (al.C_AllocationHdr_ID=a.C_AllocationHdr_ID)
|
||||
WHERE al.C_Invoice_ID = p_C_Invoice_ID
|
||||
AND a.DateAcct <= p_DateAcct
|
||||
AND a.IsActive='Y'
|
||||
LOOP
|
||||
v_Temp := allocationline.Amount + allocationline.DisCountAmt + allocationline.WriteOffAmt;
|
||||
v_PaidAmt := v_PaidAmt
|
||||
-- Allocation
|
||||
+ Currencyconvert(v_Temp * v_MultiplierAP,
|
||||
allocationline.C_Currency_ID, v_Currency_ID, allocationline.DateTrx, NULL, allocationline.AD_Client_ID, allocationline.AD_Org_ID);
|
||||
--DBMS_OUTPUT.PUT_LINE(' PaidAmt=' || v_PaidAmt || ', Allocation=' || v_Temp || ' * ' || v_MultiplierAP);
|
||||
END LOOP;
|
||||
|
||||
-- Do we have a Payment Schedule ?
|
||||
IF (p_C_InvoicePaySchedule_ID > 0) THEN -- if not valid = lists invoice amount
|
||||
v_Remaining := v_PaidAmt;
|
||||
FOR invoiceschedule IN
|
||||
SELECT C_InvoicePaySchedule_ID, DueAmt FROM C_INVOICEPAYSCHEDULE WHERE C_Invoice_ID = p_C_Invoice_ID AND IsValid='Y'
|
||||
ORDER BY DueDate
|
||||
LOOP
|
||||
IF (invoiceschedule.C_InvoicePaySchedule_ID = p_C_InvoicePaySchedule_ID) THEN
|
||||
v_TotalOpenAmt := (invoiceschedule.DueAmt*v_MultiplierCM) - v_Remaining;
|
||||
IF (invoiceschedule.DueAmt - v_Remaining < 0) THEN
|
||||
v_TotalOpenAmt := 0;
|
||||
END IF;
|
||||
-- DBMS_OUTPUT.PUT_LINE('Sched Total=' || v_TotalOpenAmt || ', Due=' || s.DueAmt || ',Remaining=' || v_Remaining || ',CM=' || v_MultiplierCM);
|
||||
ELSE -- calculate amount, which can be allocated to next schedule
|
||||
v_Remaining := v_Remaining - invoiceschedule.DueAmt;
|
||||
IF (v_Remaining < 0) THEN
|
||||
v_Remaining := 0;
|
||||
END IF;
|
||||
-- DBMS_OUTPUT.PUT_LINE('Remaining=' || v_Remaining);
|
||||
END IF;
|
||||
END LOOP;
|
||||
ELSE
|
||||
v_TotalOpenAmt := v_TotalOpenAmt - v_PaidAmt;
|
||||
END IF;
|
||||
-- DBMS_OUTPUT.PUT_LINE('== Total=' || v_TotalOpenAmt);
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_TotalOpenAmt > -v_Min AND v_TotalOpenAmt < v_Min) THEN
|
||||
v_TotalOpenAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to currency precision
|
||||
v_TotalOpenAmt := ROUND(COALESCE(v_TotalOpenAmt,0), v_Precision);
|
||||
|
||||
RETURN v_TotalOpenAmt;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' STABLE;
|
||||
|
||||
|
|
|
@ -33,11 +33,20 @@ RETURNS numeric AS $body$
|
|||
*
|
||||
************************************************************************/
|
||||
DECLARE
|
||||
v_Precision NUMERIC := 0;
|
||||
v_Min NUMERIC := 0;
|
||||
v_MultiplierAP NUMERIC := 1;
|
||||
v_PaymentAmt NUMERIC := 0;
|
||||
ar RECORD;
|
||||
|
||||
BEGIN
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = p_C_Currency_ID;
|
||||
|
||||
SELECT 1/10^v_Precision INTO v_Min;
|
||||
|
||||
-- Default
|
||||
IF (p_MultiplierAP IS NOT NULL) THEN
|
||||
v_MultiplierAP := p_MultiplierAP;
|
||||
|
@ -56,9 +65,17 @@ BEGIN
|
|||
+ currencyConvert(ar.Amount + ar.DisCountAmt + ar.WriteOffAmt,
|
||||
ar.C_Currency_ID, p_C_Currency_ID, ar.DateTrx, null, ar.AD_Client_ID, ar.AD_Org_ID);
|
||||
END LOOP;
|
||||
--
|
||||
RETURN ROUND(COALESCE(v_PaymentAmt,0), 2) * v_MultiplierAP;
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_PaymentAmt > -v_Min AND v_PaymentAmt < v_Min) THEN
|
||||
v_PaymentAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to currency precision
|
||||
v_PaymentAmt := ROUND(COALESCE(v_PaymentAmt,0), v_Precision);
|
||||
|
||||
RETURN v_PaymentAmt * v_MultiplierAP;
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -45,10 +45,19 @@ RETURNS numeric
|
|||
AS
|
||||
$BODY$
|
||||
DECLARE
|
||||
v_Precision NUMERIC := 0;
|
||||
v_Min NUMERIC := 0;
|
||||
v_MultiplierAP numeric := 1;
|
||||
v_PaymentAmt numeric := 0;
|
||||
allocation record;
|
||||
BEGIN
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = p_C_Currency_ID;
|
||||
|
||||
SELECT 1/10^v_Precision INTO v_Min;
|
||||
|
||||
-- Default
|
||||
IF (p_MultiplierAP IS NOT NULL) THEN
|
||||
v_MultiplierAP := p_MultiplierAP;
|
||||
|
@ -64,8 +73,17 @@ BEGIN
|
|||
+ Currencyconvert(allocation.Amount + allocation.DisCountAmt + allocation.WriteOffAmt,
|
||||
allocation.C_Currency_ID, p_C_Currency_ID, allocation.DateTrx, NULL, allocation.AD_Client_ID, allocation.AD_Org_ID);
|
||||
END LOOP;
|
||||
--
|
||||
RETURN ROUND(COALESCE(v_PaymentAmt,0), 2) * v_MultiplierAP;
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_PaymentAmt > -v_Min AND v_PaymentAmt < v_Min) THEN
|
||||
v_PaymentAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to currency precision
|
||||
v_PaymentAmt := ROUND(COALESCE(v_PaymentAmt,0), v_Precision);
|
||||
|
||||
RETURN v_PaymentAmt * v_MultiplierAP;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' ;
|
||||
LANGUAGE 'plpgsql' STABLE;
|
||||
|
||||
|
|
|
@ -25,6 +25,9 @@ RETURNS NUMERIC AS $body$
|
|||
************************************************************************/
|
||||
|
||||
DECLARE
|
||||
v_Precision NUMERIC := 0;
|
||||
v_Currency NUMERIC := 0;
|
||||
v_Min NUMERIC := 0;
|
||||
Discount NUMERIC := 0;
|
||||
Discount1Date timestamp with time zone;
|
||||
Discount2Date timestamp with time zone;
|
||||
|
@ -32,6 +35,23 @@ DECLARE
|
|||
Add2Date NUMERIC := 0;
|
||||
p RECORD;
|
||||
BEGIN
|
||||
v_Currency := Currency_ID;
|
||||
IF (v_Currency = 0) THEN
|
||||
SELECT COALESCE(MAX(C_Currency_ID),0)
|
||||
INTO v_Currency
|
||||
FROM AD_ClientInfo ci, C_AcctSchema s, C_PaymentTerm pt
|
||||
WHERE ci.AD_Client_ID = s.AD_Client_ID
|
||||
AND ci.AD_Client_ID = pt.AD_Client_ID
|
||||
AND pt.C_PaymentTerm_ID = PaymentTerm_ID;
|
||||
END IF;
|
||||
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = v_Currency;
|
||||
|
||||
SELECT 1/10^v_Precision INTO v_Min;
|
||||
|
||||
-- No Data - No Discount
|
||||
IF (Amount IS NULL OR PaymentTerm_ID IS NULL OR DocDate IS NULL) THEN
|
||||
RETURN 0;
|
||||
|
@ -59,9 +79,17 @@ BEGIN
|
|||
Discount := Amount * p.Discount2 / 100;
|
||||
END IF;
|
||||
END LOOP;
|
||||
--
|
||||
RETURN ROUND(COALESCE(Discount,0), 2); -- fixed rounding
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (Discount > -v_Min AND Discount < v_Min) THEN
|
||||
Discount := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to currency precision
|
||||
Discount := ROUND(COALESCE(Discount,0), v_Precision);
|
||||
|
||||
RETURN Discount;
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -45,5 +45,6 @@ BEGIN
|
|||
RETURN DueDate;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql'
|
||||
LANGUAGE 'plpgsql' STABLE
|
||||
;
|
||||
|
||||
|
|
|
@ -116,7 +116,5 @@ BEGIN
|
|||
RETURN Days;
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
|
||||
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -28,10 +28,19 @@ RETURNS NUMERIC AS $body$
|
|||
|
||||
************************************************************************/
|
||||
DECLARE
|
||||
v_Precision NUMERIC := 0;
|
||||
v_Min NUMERIC := 0;
|
||||
v_AllocatedAmt NUMERIC := 0;
|
||||
v_PayAmt NUMERIC;
|
||||
r RECORD;
|
||||
BEGIN
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = p_C_Currency_ID;
|
||||
|
||||
SELECT 1/10^v_Precision INTO v_Min;
|
||||
|
||||
-- Charge - nothing available
|
||||
SELECT
|
||||
INTO v_PayAmt MAX(PayAmt)
|
||||
|
@ -53,11 +62,17 @@ BEGIN
|
|||
v_AllocatedAmt := v_AllocatedAmt
|
||||
+ currencyConvert(r.Amount, r.C_Currency_ID, p_C_Currency_ID, r.DateTrx, null, r.AD_Client_ID, r.AD_Org_ID);
|
||||
END LOOP;
|
||||
-- Round to penny
|
||||
v_AllocatedAmt := ROUND(COALESCE(v_AllocatedAmt,0), 2);
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_AllocatedAmt > -v_Min AND v_AllocatedAmt < v_Min) THEN
|
||||
v_AllocatedAmt := 0;
|
||||
END IF;
|
||||
|
||||
-- Round to currency precision
|
||||
v_AllocatedAmt := ROUND(COALESCE(v_AllocatedAmt,0), v_Precision);
|
||||
|
||||
RETURN v_AllocatedAmt;
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -19,6 +19,8 @@ RETURNS NUMERIC AS $body$
|
|||
************************************************************************/
|
||||
DECLARE
|
||||
v_Currency_ID NUMERIC(10);
|
||||
v_Precision NUMERIC := 0;
|
||||
v_Min NUMERIC := 0;
|
||||
v_AvailableAmt NUMERIC := 0;
|
||||
v_IsReceipt C_Payment.IsReceipt%TYPE;
|
||||
v_Amt NUMERIC := 0;
|
||||
|
@ -41,6 +43,13 @@ BEGIN
|
|||
WHERE C_Payment_ID = p_C_Payment_ID;
|
||||
-- DBMS_OUTPUT.PUT_LINE('== C_Payment_ID=' || p_C_Payment_ID || ', PayAmt=' || v_AvailableAmt || ', Receipt=' || v_IsReceipt);
|
||||
|
||||
SELECT StdPrecision
|
||||
INTO v_Precision
|
||||
FROM C_Currency
|
||||
WHERE C_Currency_ID = v_Currency_ID;
|
||||
|
||||
SELECT 1/10^v_Precision INTO v_Min;
|
||||
|
||||
-- Calculate Allocated Amount
|
||||
FOR r IN
|
||||
SELECT a.AD_Client_ID, a.AD_Org_ID, al.Amount, a.C_Currency_ID, a.DateTrx
|
||||
|
@ -53,13 +62,17 @@ BEGIN
|
|||
v_AvailableAmt := v_AvailableAmt - v_Amt;
|
||||
-- DBMS_OUTPUT.PUT_LINE(' Allocation=' || a.Amount || ' - Available=' || v_AvailableAmt);
|
||||
END LOOP;
|
||||
|
||||
-- Ignore Rounding
|
||||
IF (v_AvailableAmt BETWEEN -0.00999 AND 0.00999) THEN
|
||||
IF (v_AvailableAmt > -v_Min AND v_AvailableAmt < v_Min) THEN
|
||||
v_AvailableAmt := 0;
|
||||
END IF;
|
||||
-- Round to penny
|
||||
v_AvailableAmt := ROUND(COALESCE(v_AvailableAmt,0), 2);
|
||||
|
||||
-- Round to currency precision
|
||||
v_AvailableAmt := ROUND(COALESCE(v_AvailableAmt,0), v_Precision);
|
||||
|
||||
RETURN v_AvailableAmt;
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -88,5 +88,5 @@ BEGIN
|
|||
RETURN v_Name;
|
||||
END;
|
||||
|
||||
$body$ LANGUAGE plpgsql;
|
||||
$body$ LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -30,11 +30,12 @@ BEGIN
|
|||
duration = days || ' day';
|
||||
return cast(date_trunc('day',datetime) + cast(duration as interval) as date);
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
CREATE OR REPLACE FUNCTION subtractdays (day TIMESTAMP WITH TIME ZONE, days NUMERIC)
|
||||
RETURNS DATE AS $$
|
||||
BEGIN
|
||||
RETURN addDays(day,(days * -1));
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
*/
|
||||
|
||||
/** Get Character at Position */
|
||||
SET search_path = adempiere, pg_catalog;
|
||||
|
||||
CREATE OR REPLACE FUNCTION charAt (
|
||||
IN VARCHAR, -- $1 the string
|
||||
IN INTEGER -- $2 the position
|
||||
|
@ -31,4 +29,5 @@ $$
|
|||
BEGIN
|
||||
RETURN SUBSTR($1, $2, 1);
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
|
|
|
@ -25,4 +25,5 @@ RETURNS INTEGER AS $$
|
|||
BEGIN
|
||||
RETURN CAST(p_date1 AS DATE) - CAST(p_date2 as DATE);
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
|
|
|
@ -47,4 +47,5 @@ BEGIN
|
|||
RETURN v_DocumentNo;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' ;
|
||||
LANGUAGE 'plpgsql' STABLE;
|
||||
|
||||
|
|
|
@ -73,4 +73,5 @@ BEGIN
|
|||
datetime = date_trunc(datepart, $1);
|
||||
RETURN cast(datetime as date) + offsetdays;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ BEGIN
|
|||
RETURN tmpvar;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE plpgsql VOLATILE
|
||||
COST 100
|
||||
LANGUAGE plpgsql STABLE
|
||||
;
|
||||
|
||||
|
|
|
@ -44,4 +44,5 @@ BEGIN
|
|||
RETURN v_value;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql';
|
||||
LANGUAGE 'plpgsql' STABLE;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CREATE FUNCTION nextbusinessday(p_date timestamp with time zone, p_ad_client_id numeric) RETURNS timestamp with time zone
|
||||
CREATE OR REPLACE FUNCTION nextbusinessday(p_date timestamp with time zone, p_ad_client_id numeric) RETURNS timestamp with time zone
|
||||
AS $$
|
||||
/**
|
||||
*This file is part of Adempiere ERP Bazaar
|
||||
|
@ -29,6 +29,7 @@ DECLARE
|
|||
v_Saturday numeric := TO_CHAR(TO_DATE('2000-01-01', 'YYYY-MM-DD'), 'D');
|
||||
v_Sunday numeric := (case when v_Saturday = 7 then 1 else v_Saturday + 1 end);
|
||||
v_isHoliday boolean := true;
|
||||
v_country c_country.c_country_id%type;
|
||||
nbd C_NonBusinessDay%ROWTYPE;
|
||||
begin
|
||||
v_isHoliday := true;
|
||||
|
@ -40,9 +41,16 @@ begin
|
|||
END INTO v_offset;
|
||||
v_nextDate := v_nextDate + v_offset::integer;
|
||||
v_isHoliday := false;
|
||||
SELECT COALESCE(MAX(co.c_country_id), 100)
|
||||
INTO v_country
|
||||
FROM ad_client cl
|
||||
JOIN ad_language l ON cl.ad_language = l.ad_language
|
||||
JOIN c_country co ON l.countrycode = co.countrycode
|
||||
WHERE cl.ad_client_id = p_ad_client_id;
|
||||
FOR nbd IN SELECT *
|
||||
FROM C_NonBusinessDay
|
||||
WHERE AD_Client_ID=p_AD_Client_ID and IsActive ='Y' and Date1 >= v_nextDate
|
||||
AND COALESCE(C_Country_ID,0) IN (0, v_country)
|
||||
ORDER BY Date1
|
||||
LOOP
|
||||
exit when v_nextDate <> trunc(nbd.Date1);
|
||||
|
@ -55,4 +63,5 @@ begin
|
|||
return v_nextDate::timestamp with time zone;
|
||||
end;
|
||||
$$
|
||||
LANGUAGE plpgsql;
|
||||
LANGUAGE plpgsql STABLE;
|
||||
|
||||
|
|
|
@ -59,5 +59,6 @@ BEGIN
|
|||
RETURN 0;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE plpgsql VOLATILE
|
||||
COST 100;
|
||||
LANGUAGE plpgsql STABLE
|
||||
;
|
||||
|
||||
|
|
|
@ -59,5 +59,6 @@ BEGIN
|
|||
RETURN 0;
|
||||
END;
|
||||
$BODY$
|
||||
LANGUAGE plpgsql VOLATILE
|
||||
COST 100;
|
||||
LANGUAGE plpgsql STABLE
|
||||
;
|
||||
|
||||
|
|
|
@ -6,4 +6,5 @@ $$
|
|||
BEGIN
|
||||
RETURN ROUND($1, cast($2 as integer));
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ RETURNS TIMESTAMP WITH TIME ZONE AS $$
|
|||
BEGIN
|
||||
RETURN CAST(datetime AS DATE);
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
CREATE OR REPLACE FUNCTION trunc(datetime TIMESTAMP WITH TIME ZONE, format varchar)
|
||||
RETURNS DATE AS $$
|
||||
|
@ -43,11 +43,12 @@ BEGIN
|
|||
RETURN CAST(datetime AS DATE);
|
||||
END IF;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
CREATE OR REPLACE FUNCTION trunc(i INTERVAL)
|
||||
RETURNS INTEGER AS $$
|
||||
BEGIN
|
||||
RETURN EXTRACT(DAY FROM i);
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ CREATE OR REPLACE VIEW AD_TAB_V
|
|||
AD_IMAGE_ID, TABLEVEL, WHERECLAUSE, ORDERBYCLAUSE, COMMITWARNING,
|
||||
READONLYLOGIC, DISPLAYLOGIC, AD_COLUMN_ID, AD_PROCESS_ID, ISSORTTAB,
|
||||
ISINSERTRECORD, ISADVANCEDTAB, AD_COLUMNSORTORDER_ID, AD_COLUMNSORTYESNO_ID,
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU)
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU, TREEDISPLAYEDON)
|
||||
AS
|
||||
SELECT t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, t.Name, t.Description,
|
||||
t.Help, t.SeqNo, t.IsSingleRow, t.HasTree, t.IsInfoTab, tbl.ReplicationType,
|
||||
|
@ -16,7 +16,7 @@ SELECT t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, t.Name, t.Description,
|
|||
t.WhereClause, t.OrderByClause, t.CommitWarning, t.ReadOnlyLogic, t.DisplayLogic,
|
||||
t.AD_Column_ID, t.AD_Process_ID, t.IsSortTab, t.IsInsertRecord, t.IsAdvancedTab,
|
||||
t.AD_ColumnSortOrder_ID, t.AD_ColumnSortYesNo_ID, t.Included_Tab_ID, t.Parent_Column_ID,
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU, t.TreeDisplayedOn
|
||||
FROM AD_Tab t
|
||||
INNER JOIN AD_Table tbl ON (t.AD_Table_ID = tbl.AD_Table_ID)
|
||||
WHERE t.IsActive='Y'
|
||||
|
|
|
@ -6,7 +6,7 @@ CREATE OR REPLACE VIEW AD_TAB_VT
|
|||
ISREADONLY, AD_IMAGE_ID, TABLEVEL, WHERECLAUSE, ORDERBYCLAUSE,
|
||||
COMMITWARNING, READONLYLOGIC, DISPLAYLOGIC, AD_COLUMN_ID, AD_PROCESS_ID,
|
||||
ISSORTTAB, ISINSERTRECORD, ISADVANCEDTAB, AD_COLUMNSORTORDER_ID, AD_COLUMNSORTYESNO_ID,
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU)
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU, TREEDISPLAYEDON)
|
||||
AS
|
||||
SELECT trl.AD_Language, t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, trl.Name, trl.Description,
|
||||
trl.Help, t.SeqNo, t.IsSingleRow, t.HasTree, t.IsInfoTab, tbl.ReplicationType,
|
||||
|
@ -16,7 +16,7 @@ SELECT trl.AD_Language, t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, trl.Name, tr
|
|||
t.WhereClause, t.OrderByClause, trl.CommitWarning, t.ReadOnlyLogic, t.DisplayLogic,
|
||||
t.AD_Column_ID, t.AD_Process_ID, t.IsSortTab, t.IsInsertRecord, t.IsAdvancedTab,
|
||||
t.AD_ColumnSortOrder_ID, t.AD_ColumnSortYesNo_ID, t.Included_Tab_ID, t.Parent_Column_ID,
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU, t.TreeDisplayedOn
|
||||
FROM AD_Tab t
|
||||
INNER JOIN AD_Table tbl ON (t.AD_Table_ID = tbl.AD_Table_ID)
|
||||
INNER JOIN AD_Tab_Trl trl ON (t.AD_Tab_ID = trl.AD_Tab_ID)
|
||||
|
|
|
@ -11,11 +11,11 @@ SELECT il.AD_Client_ID, il.AD_Org_ID,
|
|||
i.C_BPartner_ID, il.M_Product_ID,
|
||||
i.DocumentNo, i.DateInvoiced, i.DateAcct,
|
||||
i.IsSOTrx, i.DocStatus,
|
||||
ROUND(i.Multiplier*LineNetAmt, 2) AS LineNetAmt,
|
||||
ROUND(i.Multiplier*PriceList*QtyInvoiced, 2) AS LineListAmt,
|
||||
CASE WHEN COALESCE(il.PriceLimit, 0)=0 THEN ROUND(i.Multiplier*LineNetAmt,2) ELSE ROUND(i.Multiplier*il.PriceLimit*il.QtyInvoiced,2) END AS LineLimitAmt,
|
||||
ROUND(i.Multiplier*il.PriceList*il.QtyInvoiced-il.LineNetAmt,2) AS LineDiscountAmt,
|
||||
CASE WHEN COALESCE(il.PriceLimit,0)=0 THEN 0 ELSE ROUND(i.Multiplier*il.LineNetAmt-il.PriceLimit*il.QtyInvoiced,2) END AS LineOverLimitAmt,
|
||||
currencyRound(i.Multiplier*LineNetAmt,i.C_Currency_ID,'N') AS LineNetAmt,
|
||||
currencyRound(i.Multiplier*PriceList*QtyInvoiced,i.C_Currency_ID,'N') AS LineListAmt,
|
||||
CASE WHEN COALESCE(il.PriceLimit, 0)=0 THEN currencyRound(i.Multiplier*LineNetAmt,i.C_Currency_ID,'N') ELSE currencyRound(i.Multiplier*il.PriceLimit*il.QtyInvoiced,i.C_Currency_ID,'N') END AS LineLimitAmt,
|
||||
currencyRound(i.Multiplier*il.PriceList*il.QtyInvoiced-il.LineNetAmt,i.C_Currency_ID,'N') AS LineDiscountAmt,
|
||||
CASE WHEN COALESCE(il.PriceLimit,0)=0 THEN 0 ELSE currencyRound(i.Multiplier*il.LineNetAmt-il.PriceLimit*il.QtyInvoiced,i.C_Currency_ID,'N') END AS LineOverLimitAmt,
|
||||
il.QtyInvoiced, il.QtyEntered,
|
||||
il.Line, il.C_OrderLine_ID, il.C_UOM_ID,
|
||||
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
create view M_InoutLineMA_Returned as
|
||||
SELECT sma.m_inoutline_id,
|
||||
sma.m_attributesetinstance_id,
|
||||
sma.ad_client_id,
|
||||
sma.ad_org_id,
|
||||
sma.isactive,
|
||||
sma.created,
|
||||
sma.createdby,
|
||||
sma.updated,
|
||||
sma.updatedby,
|
||||
sma.movementqty,
|
||||
sma.m_inoutlinema_uu,
|
||||
sma.datematerialpolicy,
|
||||
sma.isautogenerated,
|
||||
sum (crma.movementqty) returnedQty
|
||||
FROM M_InoutLineMA sma inner join M_InoutLine sl on (sma.M_InoutLine_ID =sl.M_InoutLine_ID)
|
||||
inner join M_InOut sio on (sio.M_InOut_ID=sl.M_InOut_ID) left join M_RMALine rl on (rl.M_InOutLine_ID = sl.M_InOutLine_ID )
|
||||
left join M_InoutLine crl on (rl.M_RMALine_ID =crl.M_RMALine_ID)
|
||||
left join M_inout cr on (cr.M_Inout_ID = crl.M_Inout_ID and not cr.docstatus in ('CO','RE'))
|
||||
left join M_InoutLineMA crma on (crma.M_InoutLine_Id = crl.M_InoutLine_ID and sma.M_AttributeSetInstance_ID=crma.M_AttributeSetInstance_ID)
|
||||
group by sma.M_AttributeSetInstance_ID,sma.m_inoutline_id,sma.ad_client_id,sma.ad_org_id,sma.isactive,sma.created,sma.createdby,sma.updated
|
||||
,sma.updatedby,sma.movementqty,sma.m_inoutlinema_uu,sma.datematerialpolicy;
|
||||
|
|
@ -13,7 +13,7 @@ SELECT s.ad_client_id,
|
|||
sum(ms.qtyonhand - ms.qtyreserved) AS qtyavailable,
|
||||
sum(ms.qtyonhand) AS qtyonhand,
|
||||
sum(ms.qtyreserved) AS qtyreserved,
|
||||
ROUND(MAX(mpr.pricestd),0) AS pricestd,
|
||||
currencyRound(MAX(mpr.pricestd),mpl.C_Currency_ID,'N') AS pricestd,
|
||||
mpr.m_pricelist_version_id,
|
||||
mw.m_warehouse_id,
|
||||
org.name AS orgname
|
||||
|
@ -23,6 +23,8 @@ SELECT s.ad_client_id,
|
|||
JOIN m_locator ml ON ms.m_locator_id = ml.m_locator_id
|
||||
JOIN m_warehouse mw ON ml.m_warehouse_id = mw.m_warehouse_id
|
||||
JOIN m_productprice mpr ON ms.m_product_id = mpr.m_product_id
|
||||
JOIN m_pricelist_version mplv ON mplv.m_pricelist_version_id = mpr.m_pricelist_version_id
|
||||
JOIN m_pricelist mpl ON mplv.m_pricelist_id = mpl.m_pricelist_id
|
||||
JOIN ad_org org ON org.ad_org_id = mw.ad_org_id
|
||||
GROUP BY s.ad_client_id,
|
||||
s.ad_org_id,
|
||||
|
@ -36,7 +38,8 @@ SELECT s.ad_client_id,
|
|||
mw.m_warehouse_id,
|
||||
mpr.m_pricelist_version_id,
|
||||
org.name,
|
||||
mp.name
|
||||
mp.name,
|
||||
mpl.C_Currency_ID
|
||||
UNION
|
||||
SELECT r.ad_client_id,
|
||||
r.ad_org_id,
|
||||
|
@ -52,7 +55,7 @@ SELECT s.ad_client_id,
|
|||
sum(ms.qtyonhand - ms.qtyreserved) AS qtyavailable,
|
||||
sum(ms.qtyonhand) AS qtyonhand,
|
||||
sum(ms.qtyreserved) AS qtyreserved,
|
||||
ROUND(MAX(mpr.pricestd),0) AS pricestd,
|
||||
currencyRound(MAX(mpr.pricestd),mpl.C_Currency_ID,'N') AS pricestd,
|
||||
mpr.m_pricelist_version_id,
|
||||
mw.m_warehouse_id,
|
||||
org.name AS orgname
|
||||
|
@ -62,6 +65,8 @@ SELECT s.ad_client_id,
|
|||
JOIN m_locator ml ON ms.m_locator_id = ml.m_locator_id
|
||||
JOIN m_warehouse mw ON ml.m_warehouse_id = mw.m_warehouse_id
|
||||
JOIN m_productprice mpr ON ms.m_product_id = mpr.m_product_id
|
||||
JOIN m_pricelist_version mplv ON mplv.m_pricelist_version_id = mpr.m_pricelist_version_id
|
||||
JOIN m_pricelist mpl ON mplv.m_pricelist_id = mpl.m_pricelist_id
|
||||
JOIN ad_org org ON org.ad_org_id = mw.ad_org_id
|
||||
GROUP BY r.ad_client_id,
|
||||
r.ad_org_id,
|
||||
|
@ -75,4 +80,5 @@ SELECT s.ad_client_id,
|
|||
mw.m_warehouse_id,
|
||||
mpr.m_pricelist_version_id,
|
||||
org.name,
|
||||
mp.name;
|
||||
mp.name,
|
||||
mpl.C_Currency_ID;
|
|
@ -37,15 +37,15 @@ SELECT il.ad_client_id,
|
|||
il.priceactual,
|
||||
il.pricelimit,
|
||||
il.priceentered,
|
||||
CASE WHEN il.pricelist = 0 THEN 0 ELSE round((il.pricelist - il.priceactual) / il.pricelist * 100, 2) END AS discount,
|
||||
CASE WHEN il.pricelimit = 0 THEN 0 ELSE round((il.priceactual - il.pricelimit) / il.pricelimit * 100, 2) END AS margin,
|
||||
CASE WHEN il.pricelist = 0 THEN 0 ELSE currencyRound((il.pricelist - il.priceactual) / il.pricelist * 100,i.C_Currency_ID,'N') END AS discount,
|
||||
CASE WHEN il.pricelimit = 0 THEN 0 ELSE currencyRound((il.priceactual - il.pricelimit) / il.pricelimit * 100,i.C_Currency_ID,'N') END AS margin,
|
||||
CASE WHEN il.pricelimit = 0 THEN 0 ELSE (il.priceactual - il.pricelimit) * il.qtyinvoiced END AS marginamt,
|
||||
round(i.multiplier * il.linenetamt, 2) AS linenetamt,
|
||||
round(i.multiplier * il.pricelist * il.qtyinvoiced, 2) AS linelistamt,
|
||||
CASE WHEN COALESCE(il.pricelimit, 0) = 0 THEN round(i.multiplier * il.linenetamt, 2) ELSE round(i.multiplier * il.pricelimit * il.qtyinvoiced, 2) END
|
||||
currencyRound(i.multiplier * il.linenetamt,i.C_Currency_ID,'N') AS linenetamt,
|
||||
currencyRound(i.multiplier * il.pricelist * il.qtyinvoiced,i.C_Currency_ID,'N') AS linelistamt,
|
||||
CASE WHEN COALESCE(il.pricelimit, 0) = 0 THEN currencyRound(i.multiplier * il.linenetamt,i.C_Currency_ID,'N') ELSE currencyRound(i.multiplier * il.pricelimit * il.qtyinvoiced,i.C_Currency_ID,'N') END
|
||||
AS linelimitamt,
|
||||
round(i.multiplier * il.pricelist * il.qtyinvoiced - il.linenetamt, 2) AS linediscountamt,
|
||||
CASE WHEN COALESCE(il.pricelimit, 0) = 0 THEN 0 ELSE round(i.multiplier * il.linenetamt - il.pricelimit * il.qtyinvoiced, 2) END AS
|
||||
currencyRound(i.multiplier * il.pricelist * il.qtyinvoiced - il.linenetamt,i.C_Currency_ID,'N') AS linediscountamt,
|
||||
CASE WHEN COALESCE(il.pricelimit, 0) = 0 THEN 0 ELSE currencyRound(i.multiplier * il.linenetamt - il.pricelimit * il.qtyinvoiced,i.C_Currency_ID,'N') END AS
|
||||
lineoverlimitamt,
|
||||
il.ad_orgtrx_id,
|
||||
il.a_processed,
|
||||
|
|
|
@ -11,14 +11,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID,
|
|||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.C_BPartner_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'Q'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'Q'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -11,16 +11,17 @@ SELECT il.AD_Client_ID, il.AD_Org_ID,
|
|||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
INNER JOIN M_Product_PO po ON (il.M_Product_ID=po.M_Product_ID)
|
||||
WHERE il.IsSOTrx='Y'
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.C_BPartner_ID, po.C_BPartner_ID,
|
||||
firstOf(il.DateInvoiced, 'Q');
|
||||
firstOf(il.DateInvoiced, 'Q'), i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -3,21 +3,22 @@ CREATE OR REPLACE VIEW RV_C_INVOICE_DAY
|
|||
LINELISTAMT, LINELIMITAMT, LINEDISCOUNTAMT, LINEDISCOUNT, LINEOVERLIMITAMT,
|
||||
LINEOVERLIMIT, ISSOTRX)
|
||||
AS
|
||||
SELECT AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'DD') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SELECT il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'DD') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SUM(LineNetAmt) AS LineNetAmt,
|
||||
SUM(LineListAmt) AS LineListAmt,
|
||||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
IsSOTrx
|
||||
FROM RV_C_InvoiceLine
|
||||
GROUP BY AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'DD'), IsSOTrx;
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'DD'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -3,21 +3,22 @@ CREATE OR REPLACE VIEW RV_C_INVOICE_MONTH
|
|||
LINELISTAMT, LINELIMITAMT, LINEDISCOUNTAMT, LINEDISCOUNT, LINEOVERLIMITAMT,
|
||||
LINEOVERLIMIT, ISSOTRX)
|
||||
AS
|
||||
SELECT AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'MM') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SELECT il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'MM') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SUM(LineNetAmt) AS LineNetAmt,
|
||||
SUM(LineListAmt) AS LineListAmt,
|
||||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
IsSOTrx
|
||||
FROM RV_C_InvoiceLine
|
||||
GROUP BY AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'MM'), IsSOTrx;
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'MM'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,14 +10,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_Category_ID,
|
|||
SUM(il.LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'MM'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'MM'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,14 +10,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
|
|||
SUM(il.LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
|
||||
firstOf(il.DateInvoiced, 'MM'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'MM'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,14 +10,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
|
|||
SUM(il.LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
|
||||
firstOf(il.DateInvoiced, 'Q'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'Q'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,14 +10,15 @@ SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_Category_ID,
|
|||
SUM(il.LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced, il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'DY'), IsSOTrx;
|
||||
firstOf(il.DateInvoiced, 'DY'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,21 +6,22 @@ AS
|
|||
SELECT il.AD_Client_ID, il.AD_Org_ID,
|
||||
po.C_BPartner_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'MM') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SUM(LineNetAmt) AS LineNetAmt,
|
||||
SUM(il.LineNetAmt) AS LineNetAmt,
|
||||
SUM(LineListAmt) AS LineListAmt,
|
||||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
SUM(QtyInvoiced) AS QtyInvoiced
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
INNER JOIN M_Product_PO po ON (il.M_Product_ID=po.M_Product_ID)
|
||||
WHERE il.IsSOTrx='Y'
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, po.C_BPartner_ID, il.M_Product_Category_ID,
|
||||
firstOf(il.DateInvoiced, 'MM');
|
||||
firstOf(il.DateInvoiced, 'MM'), i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -3,21 +3,22 @@ CREATE OR REPLACE VIEW RV_C_INVOICE_WEEK
|
|||
LINELISTAMT, LINELIMITAMT, LINEDISCOUNTAMT, LINEDISCOUNT, LINEOVERLIMITAMT,
|
||||
LINEOVERLIMIT, ISSOTRX)
|
||||
AS
|
||||
SELECT AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'DY') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SELECT il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'DY') AS DateInvoiced, -- DD Day, DY Week, MM Month
|
||||
SUM(LineNetAmt) AS LineNetAmt,
|
||||
SUM(LineListAmt) AS LineListAmt,
|
||||
SUM(LineLimitAmt) AS LineLimitAmt,
|
||||
SUM(LineDiscountAmt) AS LineDiscountAmt,
|
||||
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
|
||||
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
|
||||
currencyRound((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,i.C_Currency_ID,'N') END AS LineDiscount,
|
||||
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
|
||||
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
|
||||
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
|
||||
IsSOTrx
|
||||
FROM RV_C_InvoiceLine
|
||||
GROUP BY AD_Client_ID, AD_Org_ID, SalesRep_ID,
|
||||
firstOf(DateInvoiced, 'DY'), IsSOTrx;
|
||||
100-currencyRound((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,i.C_Currency_ID,'N') END AS LineOverLimit,
|
||||
il.IsSOTrx
|
||||
FROM RV_C_InvoiceLine il
|
||||
INNER JOIN C_Invoice i ON (i.C_Invoice_ID=il.C_Invoice_ID)
|
||||
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.SalesRep_ID,
|
||||
firstOf(il.DateInvoiced, 'DY'), il.IsSOTrx, i.C_Currency_ID;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ SELECT i.ad_org_id,
|
|||
paymenttermduedate(i.c_paymentterm_id, i.dateinvoiced) AS duedate,
|
||||
paymenttermduedays(i.c_paymentterm_id, i.dateinvoiced, getdate()) AS daysdue,
|
||||
adddays(i.dateinvoiced, p.discountdays) AS discountdate,
|
||||
round(i.grandtotal * p.discount / 100, 2) AS discountamt,
|
||||
currencyRound(i.grandtotal * p.discount / 100,i.C_Currency_ID,'N') AS discountamt,
|
||||
i.grandtotal,
|
||||
invoicepaid(i.c_invoice_id, i.c_currency_id, 1) AS paidamt,
|
||||
invoiceopen(i.c_invoice_id, 0) AS openamt,
|
||||
|
|
|
@ -14,7 +14,7 @@ SELECT i.AD_Org_ID, i.AD_Client_ID,
|
|||
paymentTermDueDate(i.C_PaymentTerm_ID, i.DateInvoiced) AS DueDate,
|
||||
paymentTermDueDays(i.C_PaymentTerm_ID, i.DateInvoiced, getdate()) AS DaysDue,
|
||||
addDays(i.DateInvoiced,p.DiscountDays) AS DiscountDate,
|
||||
ROUND(i.GrandTotal*p.Discount/100,2) AS DiscountAmt,
|
||||
currencyRound(i.GrandTotal*p.Discount/100,i.C_Currency_ID,'N') AS DiscountAmt,
|
||||
i.GrandTotal,
|
||||
--invoicePaid(i.C_Invoice_ID, i.C_Currency_ID, 1) AS PaidAmt,
|
||||
--invoiceOpen(i.C_Invoice_ID,0) AS OpenAmt,
|
||||
|
|
|
@ -55,8 +55,8 @@ SELECT l.ad_client_id,
|
|||
(l.qtyordered - l.qtyinvoiced) * l.priceactual AS netamttoinvoice,
|
||||
l.qtylostsales,
|
||||
l.qtylostsales * l.priceactual AS amtlostsales,
|
||||
CASE WHEN l.pricelist = 0 THEN 0 ELSE round((l.pricelist - l.priceactual) / l.pricelist * 100, 2) END AS discount,
|
||||
CASE WHEN l.pricelimit = 0 THEN 0 ELSE round((l.priceactual - l.pricelimit) / l.pricelimit * 100, 2) END AS margin,
|
||||
CASE WHEN l.pricelist = 0 THEN 0 ELSE currencyRound((l.pricelist - l.priceactual) / l.pricelist * 100,o.C_Currency_ID,'N') END AS discount,
|
||||
CASE WHEN l.pricelimit = 0 THEN 0 ELSE currencyRound((l.priceactual - l.pricelimit) / l.pricelimit * 100,o.C_Currency_ID,'N') END AS margin,
|
||||
CASE WHEN l.pricelimit = 0 THEN 0 ELSE (l.priceactual - l.pricelimit) * l.qtydelivered END AS marginamt,
|
||||
o.ad_org_id AS c_order_ad_org_id,
|
||||
o.ad_orgtrx_id AS c_order_ad_orgtrx_id,
|
||||
|
|
|
@ -0,0 +1,187 @@
|
|||
-- Jun 21, 2013 1:54:40 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,AD_SysConfig_UU,ConfigurationLevel,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,200031,'3fca6e48-6809-4ede-8d73-16de172a9e1f','C',TO_DATE('2013-06-21 13:54:39','YYYY-MM-DD HH24:MI:SS'),100,'If role allow it, you can access to Info Account from DP Views dashboard','D','Y','DPViews_ShowInfoAccount',TO_DATE('2013-06-21 13:54:39','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:54:54 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,AD_SysConfig_UU,ConfigurationLevel,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,200032,'ee06e3d0-b424-4bbb-a34b-654563da6c72','C',TO_DATE('2013-06-21 13:54:54','YYYY-MM-DD HH24:MI:SS'),100,'If role allow it, you can access to Info Schedule from DP Views dashboard','D','Y','DPViews_ShowInfoSchedule',TO_DATE('2013-06-21 13:54:54','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:55:58 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210509,'9b2b4a4c-364e-4487-805a-135cb94670da',1720,0,10,895,'ImageURL',TO_DATE('2013-06-21 13:55:58','YYYY-MM-DD HH24:MI:SS'),100,'URL of image','D',120,'URL of image; The image is not stored in the database, but retrieved at runtime. The image can be a gif, jpeg or png.','Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Image URL',0,0,TO_DATE('2013-06-21 13:55:58','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:55:59 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210509 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:56:00 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
ALTER TABLE AD_InfoWindow ADD ImageURL NVARCHAR2(120) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:56:25 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210510,'f0c237ac-edcd-43b2-8d40-1d5c9858680c',566,0,11,895,'SeqNo',TO_DATE('2013-06-21 13:56:24','YYYY-MM-DD HH24:MI:SS'),100,'@SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_InfoWindow WHERE AD_InfoWindow_ID=@AD_InfoWindow_ID@','Method of ordering records; lowest number comes first','D',22,'The Sequence indicates the order of records','Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Sequence',0,0,TO_DATE('2013-06-21 13:56:24','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:56:25 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210510 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:56:26 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
ALTER TABLE AD_InfoWindow ADD SeqNo NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:56:44 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210511,'e21b0a7e-8691-40a5-ad5a-e3f090192db5',200074,0,20,895,'IsShowInDashboard',TO_DATE('2013-06-21 13:56:43','YYYY-MM-DD HH24:MI:SS'),100,'Y','Show the dashlet in the dashboard','D',1,'Y','Y','Y','N','N','N','N','N','Y','N','N','N','N','N','Y','Show in Dashboard',0,0,TO_DATE('2013-06-21 13:56:43','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:56:44 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210511 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:56:45 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
ALTER TABLE AD_InfoWindow ADD IsShowInDashboard CHAR(1) DEFAULT 'Y' CHECK (IsShowInDashboard IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:56:49 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
ALTER TABLE AD_InfoWindow MODIFY IsShowInDashboard CHAR(1) DEFAULT 'Y'
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:56:49 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_InfoWindow SET IsShowInDashboard='Y' WHERE IsShowInDashboard IS NULL
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:08 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210509,202196,'ebd357bf-70de-46a0-8496-8e571b412233',0,842,5,TO_DATE('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100,'URL of image',120,'D','URL of image; The image is not stored in the database, but retrieved at runtime. The image can be a gif, jpeg or png.','Y','Y','Y','N','N','N','N','N','Image URL',180,TO_DATE('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:08 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=202196 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:09 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210510,202197,'0d40ae0e-8814-432a-915c-3dde1a558771',0,842,2,TO_DATE('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100,'Method of ordering records; lowest number comes first',22,'D','The Sequence indicates the order of records','Y','Y','Y','N','N','N','N','N','Sequence',190,TO_DATE('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:09 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=202197 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:09 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy,XPosition) VALUES (0,210511,202198,'43f7afaf-4ad2-45f5-a2da-1237c89ac29d',0,842,2,TO_DATE('2013-06-21 13:57:09','YYYY-MM-DD HH24:MI:SS'),100,'Show the dashlet in the dashboard',1,'D','Y','Y','Y','N','N','N','N','N','Show in Dashboard',200,TO_DATE('2013-06-21 13:57:09','YYYY-MM-DD HH24:MI:SS'),100,2)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:09 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=202198 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=202197
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=13582
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=13575
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=13581
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=201621
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=201634
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=13579
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=13580
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=201627
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=201628
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=201639
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=202198
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=201807
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:57:55 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=202196
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:58:05 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2013-06-21 13:58:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202197
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:58:32 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2013-06-21 13:58:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202198
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:59:01 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_InfoWindow SET ImageURL='InfoBPartner16.png',Updated=TO_DATE('2013-06-21 13:59:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001
|
||||
;
|
||||
|
||||
-- Jun 21, 2013 1:59:10 PM CEST
|
||||
-- IDEMPIERE-1085
|
||||
UPDATE AD_InfoWindow SET ImageURL='InfoProduct16.png',Updated=TO_DATE('2013-06-21 13:59:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200000
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401082019_IDEMPIERE-1085.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,79 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jan 8, 2014 9:54:55 PM COT
|
||||
-- IDEMPIERE-1085 Loading Info windows dynamically
|
||||
UPDATE AD_InfoWindow SET SeqNo=10,Updated=TO_DATE('2014-01-08 21:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200000
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:55:06 PM COT
|
||||
UPDATE AD_InfoWindow SET SeqNo=20,Updated=TO_DATE('2014-01-08 21:55:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:55:38 PM COT
|
||||
UPDATE AD_InfoWindow SET SeqNo=30,Updated=TO_DATE('2014-01-08 21:55:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200002
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:55:47 PM COT
|
||||
UPDATE AD_InfoWindow SET SeqNo=40,Updated=TO_DATE('2014-01-08 21:55:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200003
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:55:55 PM COT
|
||||
UPDATE AD_InfoWindow SET SeqNo=50,Updated=TO_DATE('2014-01-08 21:55:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200004
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:56:05 PM COT
|
||||
UPDATE AD_InfoWindow SET SeqNo=60,Updated=TO_DATE('2014-01-08 21:56:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200005
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:56:12 PM COT
|
||||
UPDATE AD_InfoWindow SET SeqNo=70,Updated=TO_DATE('2014-01-08 21:56:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200006
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:56:16 PM COT
|
||||
UPDATE AD_InfoWindow SET SeqNo=80,Updated=TO_DATE('2014-01-08 21:56:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200007
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:41 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=202197
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:41 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=13573
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:41 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=13582
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:41 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=201628
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:42 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=13571
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:42 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=13580
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:42 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=201639
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:42 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=201807
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:42 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=202198
|
||||
;
|
||||
|
||||
-- Jan 8, 2014 9:58:42 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=202196
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401082159_IDEMPIERE-1085.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,536 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jan 12, 2014 3:22:55 PM COT
|
||||
-- IDEMPIERE-1150 Status Line window
|
||||
INSERT INTO AD_Window (Processing,WindowType,IsSOTrx,IsDefault,WinHeight,IsBetaFunctionality,WinWidth,EntityType,Name,AD_Window_ID,AD_Window_UU,Created,Updated,AD_Org_ID,IsActive,UpdatedBy,CreatedBy,AD_Client_ID) VALUES ('N','M','Y','N',0,'N',0,'D','Status Line',200049,'8847fa98-d9d7-43b5-a910-f10f9034a7b0',TO_DATE('2014-01-12 15:22:52','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-01-12 15:22:52','YYYY-MM-DD HH24:MI:SS'),0,'Y',100,100,0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:22:56 PM COT
|
||||
INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Window_ID,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,IsActive,CreatedBy,Updated,UpdatedBy,Created,AD_Client_ID,Processing,EntityType,AD_Org_ID) VALUES ('N','N','N','4',0,200049,200107,'N','N','Y','L','088ac05d-ec44-41ec-87f1-406da2cc4c34','Y','Y','AD_StatusLine','Status Line','Y',100,TO_DATE('2014-01-12 15:22:55','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:22:55','YYYY-MM-DD HH24:MI:SS'),0,'N','D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:22:58 PM COT
|
||||
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Description,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,StartNo,AD_Client_ID) VALUES ('N',200000,'Y',1000000,'N','Y',200155,'Table AD_StatusLine','AD_StatusLine',1,'1bc91406-9381-440a-a014-ce9d471fc650',0,TO_DATE('2014-01-12 15:22:56','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:22:56','YYYY-MM-DD HH24:MI:SS'),100,'Y',1000000,0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:01 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_StatusLine_ID',202635,'Status Line','Status Line','98650fe7-ec21-43e6-970e-fac282926066',TO_DATE('2014-01-12 15:22:58','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-01-12 15:22:58','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:05 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210898,'Y','N','N','N',22,'N','Y','N','Y','8f8b3b0b-c822-40e9-9762-ae63a4b1e3d8','N','AD_StatusLine_ID','Status Line','N',TO_DATE('2014-01-12 15:23:02','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',202635,13,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:05 PM COT
|
||||
CREATE TABLE AD_StatusLine (AD_StatusLine_ID NUMBER(10) NOT NULL, CONSTRAINT AD_StatusLine_Key PRIMARY KEY (AD_StatusLine_ID))
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:08 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,ReadOnlyLogic,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210899,'Y','N','N','N',22,'N','N','1=1','N','Y','706e1423-ed75-4019-ba3f-37e6057f4b46','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',TO_DATE('2014-01-12 15:23:05','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','ADClient_ADStatusLine','N',102,19,200107,129,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:08 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD AD_Client_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:10 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210900,'Y','N','N','N',22,'N','N','N','Y','63376a3d-e493-46d3-9d0b-3fcba268ccf9','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',TO_DATE('2014-01-12 15:23:08','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:08','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','ADOrg_ADStatusLine','N',113,19,200107,104,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:10 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD AD_Org_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:12 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_StatusLine_UU',202636,'AD_StatusLine_UU','AD_StatusLine_UU','c014d151-29f5-4182-83d6-c0c752acdc67',TO_DATE('2014-01-12 15:23:10','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-01-12 15:23:10','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:15 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210901,'N','N','N','N',36,'N','N','N','Y','7694bf6d-043a-45a6-ace0-ba396d77bb86','Y','AD_StatusLine_UU','AD_StatusLine_UU','N',TO_DATE('2014-01-12 15:23:12','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',202636,10,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:15 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD AD_StatusLine_UU VARCHAR2(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:15 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD CONSTRAINT AD_StatusLine_UU_idx UNIQUE (AD_StatusLine_UU)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:17 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210902,'Y','N','N','N',7,'N','N','N','Y','6d011fcb-a04e-4764-bdc1-5d99d274961f','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',TO_DATE('2014-01-12 15:23:15','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:15','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',245,16,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:17 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD Created DATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:19 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210903,'Y','N','N','N',22,'N','N','N','Y','0722a218-8972-481d-a2c6-fb35bba96c03','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',TO_DATE('2014-01-12 15:23:17','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:17','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','CreatedBy_ADStatusLine','N',246,18,110,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:19 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD CreatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:20 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,ReadOnlyLogic,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210904,'Y','N','N',0,'N',40,'N','N','@EntityType@=D','N','Y','99e1b16a-694e-45ab-8838-de6f6213cc26','Y','EntityType','Dictionary Entity Type; Determines ownership and synchronization','D','The Entity Types "Dictionary", "iDempiere" and "Application" might be automatically synchronized and customizations deleted or overwritten.
|
||||
|
||||
For customizations, copy the entity and select "User"!','Entity Type','Y',TO_DATE('2014-01-12 15:23:19','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:19','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','EntityType_ADStatusLine','N',1682,18,389,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:20 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD EntityType VARCHAR2(40) DEFAULT 'D' NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:21 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210905,'Y','N','N','N',1,'N','N','N','Y','5f2b1bd6-167c-4615-92ff-4b7b404b752a','Y','IsActive','The record is active in the system','Y','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Active','N',TO_DATE('2014-01-12 15:23:20','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:20','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',348,20,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:21 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:23 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210906,'Y','N','Y',1,'N',60,'Y','N','N','Y','9cfc31eb-769b-4402-b2ba-1e9061bc5e1b','Y','Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Name','Y',TO_DATE('2014-01-12 15:23:21','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:21','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',469,10,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:23 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD Name VARCHAR2(60) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:25 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210907,'Y','N','N','N',7,'N','N','N','Y','9d6674e9-d2cc-4ddd-abd4-1fc041d1a81e','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',TO_DATE('2014-01-12 15:23:23','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:23','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',607,16,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:25 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD Updated DATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:27 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210908,'Y','N','N','N',22,'N','N','N','Y','f3c90cf1-75d1-431a-981b-4ee1a8fa1693','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',TO_DATE('2014-01-12 15:23:25','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:25','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','UpdatedBy_ADStatusLine','N',608,18,110,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:27 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD UpdatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:29 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'Y',0,210909,'Y','N','N',0,'N',22,'N','N','N','Y','b21ad355-68a2-4d40-b681-7f09e90f3140','Y','AD_Message_ID','System Message','Information and Error messages','Message','Y',TO_DATE('2014-01-12 15:23:27','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:27','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','ADMessage_ADStatusLine','N',1752,19,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:29 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD AD_Message_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:31 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'Y',0,210910,'Y','N','N',0,'N',2000,'N','N','N','Y','09ed0f8f-3ea3-4e03-9738-5dccaceeac66','Y','SQLStatement','SQLStatement','Y',TO_DATE('2014-01-12 15:23:29','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:29','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',50028,14,200107,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:31 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD SQLStatement VARCHAR2(2000) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:33 PM COT
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,AD_Tab_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Client_ID,AD_Table_ID) VALUES ('N','N','Y',200049,10,'N','N','N','N','N','Y','N',0,'0cd0bd95-f7c8-44a8-b8af-0a06c3c198d2','D','Status Line',200114,0,TO_DATE('2014-01-12 15:23:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:31','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,200107)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:35 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200114,22,'N','N',0,'Y',202559,'N','Status Line','843a1fee-c479-496d-8c31-4065db96d145','N','N',100,TO_DATE('2014-01-12 15:23:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:33','YYYY-MM-DD HH24:MI:SS'),'Y','N',1,'N',0,2,1,'N','N',210898,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:35 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200114,36,'N','N',0,'Y',202560,'N','AD_StatusLine_UU','e4413182-f072-4f49-89da-8cfeec9320c2','N','N',100,TO_DATE('2014-01-12 15:23:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:35','YYYY-MM-DD HH24:MI:SS'),'Y','N',1,'N',0,2,1,'N','N',210901,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:36 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200114,22,'N','N',10,'Y',202561,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client/Tenant for this installation.','Client','5a9bfebe-6ebc-4d8f-b0f0-36e56d84c64d','Y','N',100,TO_DATE('2014-01-12 15:23:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:35','YYYY-MM-DD HH24:MI:SS'),'Y','N',1,'N',0,2,1,'N','N',210899,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:36 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,IsAllowCopy,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200114,22,'Y','N',20,'Y',202562,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organizational entity within client','Organization','218d3b22-9140-4767-8377-5341a1835f23','Y','N','Y',100,TO_DATE('2014-01-12 15:23:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:36','YYYY-MM-DD HH24:MI:SS'),'Y','N',4,'N',0,2,1,'N','N',210900,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:37 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200114,60,'N','N',30,'Y',202563,'N','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Alphanumeric identifier of the entity','Name','f9f9be63-f2be-49c0-a222-f70f344e9634','Y','N',100,TO_DATE('2014-01-12 15:23:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:36','YYYY-MM-DD HH24:MI:SS'),'Y','Y',10,1,'N',0,5,1,'N','N',210906,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:38 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200114,22,'N','N',40,'Y',202564,'N','Information and Error messages','System Message','Message','8e401333-ae4a-49ad-b521-6b4ead4e0a0e','Y','N',100,TO_DATE('2014-01-12 15:23:37','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:37','YYYY-MM-DD HH24:MI:SS'),'Y','Y',20,1,'N',0,5,1,'N','N',210909,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:38 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200114,2000,'N','N',50,'Y',202565,'N','SQLStatement','6adc7d7f-573c-4728-b380-2ac97b2e1f30','Y','N',100,TO_DATE('2014-01-12 15:23:38','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:38','YYYY-MM-DD HH24:MI:SS'),'Y','Y',30,1,'N',0,5,8,'N','N',210910,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:39 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200114,10,'N','N',60,'Y',202566,'N','The Entity Types "Dictionary", "iDempiere" and "Application" might be automatically synchronized and customizations deleted or overwritten.
|
||||
|
||||
For customizations, copy the entity and select "User"!','Dictionary Entity Type; Determines ownership and synchronization','Entity Type','b87e9e3e-a3b0-47e2-9fe8-3d88ea06b9a6','Y','N',100,TO_DATE('2014-01-12 15:23:38','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:38','YYYY-MM-DD HH24:MI:SS'),'Y','Y',40,1,'N',0,2,1,'N','N',210904,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:39 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200114,1,'Y','N',70,'Y',202567,'N','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','The record is active in the system','Active','03586f0e-8ac7-4b9b-b6c5-7c0f217259ec','Y','N',100,TO_DATE('2014-01-12 15:23:39','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:39','YYYY-MM-DD HH24:MI:SS'),'Y','Y',50,5,'N',0,2,1,'N','N',210905,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:40 PM COT
|
||||
INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Window_ID,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,IsActive,CreatedBy,Updated,UpdatedBy,Created,AD_Client_ID,Processing,EntityType,AD_Org_ID) VALUES ('N','N','N','4',0,200049,200108,'N','N','Y','L','0442ac38-5ff3-48c1-9c3c-2bb2d33d0846','Y','Y','AD_StatusLineUsedIn','Status Line used in','Y',100,TO_DATE('2014-01-12 15:23:39','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:39','YYYY-MM-DD HH24:MI:SS'),0,'N','D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:40 PM COT
|
||||
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Description,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,StartNo,AD_Client_ID) VALUES ('N',200000,'Y',1000000,'N','Y',200156,'Table AD_StatusLineUsedIn','AD_StatusLineUsedIn',1,'50c5eacc-8dbb-44f5-b185-1ecf8171cdf9',0,TO_DATE('2014-01-12 15:23:40','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:40','YYYY-MM-DD HH24:MI:SS'),100,'Y',1000000,0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:41 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_StatusLineUsedIn_ID',202637,'AD_StatusLineUsedIn','AD_StatusLineUsedIn','254cf4f8-3aad-4390-8a8a-30f8f2e6eae7',TO_DATE('2014-01-12 15:23:40','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-01-12 15:23:40','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:41 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210911,'Y','N','N','N',22,'N','Y','N','Y','630ce21f-1b9d-4920-9409-5cab09dcd096','N','AD_StatusLineUsedIn_ID','AD_StatusLineUsedIn','N',TO_DATE('2014-01-12 15:23:41','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:41','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',202637,13,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:41 PM COT
|
||||
CREATE TABLE AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID NUMBER(10) NOT NULL, CONSTRAINT AD_StatusLineUsedIn_Key PRIMARY KEY (AD_StatusLineUsedIn_ID))
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:42 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,ReadOnlyLogic,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210912,'Y','N','N','N',22,'N','N','1=1','N','Y','a9497823-8c58-45a2-bfe3-cb5d04843dd4','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',TO_DATE('2014-01-12 15:23:41','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:41','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','ADClient_ADStatusLineUsedIn','N',102,19,200108,129,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:42 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD AD_Client_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:43 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210913,'Y','N','N','N',22,'N','N','N','Y','2f4dca6b-dd61-4547-b67c-f4a459b055fe','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',TO_DATE('2014-01-12 15:23:42','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:42','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','ADOrg_ADStatusLineUsedIn','N',113,19,200108,104,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:43 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD AD_Org_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:43 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_StatusLineUsedIn_UU',202638,'AD_StatusLineUsedIn_UU','AD_StatusLineUsedIn_UU','7c48afac-dc95-4c12-9648-292bb52fe445',TO_DATE('2014-01-12 15:23:43','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-01-12 15:23:43','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:44 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210914,'N','N','N','N',36,'N','N','N','Y','ed3b4567-2c6b-4e83-aeae-64f63295b58a','Y','AD_StatusLineUsedIn_UU','AD_StatusLineUsedIn_UU','N',TO_DATE('2014-01-12 15:23:43','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:43','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',202638,10,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:44 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD AD_StatusLineUsedIn_UU VARCHAR2(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:44 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CONSTRAINT AD_StatusLineUsedIn_UU_idx UNIQUE (AD_StatusLineUsedIn_UU)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:44 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'Y',0,210915,'Y','N','N',0,'Y',22,'N','N','N','Y','3b1528dc-c428-400c-8600-980ec93759e9','N','AD_StatusLine_ID','Status Line','Y',TO_DATE('2014-01-12 15:23:44','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:44','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','ADStatusLine_ADStatusLineUsedI','N',202635,30,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:44 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD AD_StatusLine_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:45 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210916,'Y','N','N','N',7,'N','N','N','Y','b37ddd58-36c2-47a7-bd7f-0870c8e7dd20','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',TO_DATE('2014-01-12 15:23:44','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:44','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',245,16,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:45 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD Created DATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:46 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210917,'Y','N','N','N',22,'N','N','N','Y','d8dd22a4-568a-45ce-9f3b-112f58fd5341','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',TO_DATE('2014-01-12 15:23:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:45','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','CreatedBy_ADStatusLineUsedIn','N',246,18,110,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:46 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CreatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:46 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210918,'Y','N','N','N',1,'N','N','N','Y','602735af-0851-4914-843b-e183e3770e8f','Y','IsActive','The record is active in the system','Y','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Active','N',TO_DATE('2014-01-12 15:23:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:46','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',348,20,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:46 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:47 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210919,'Y','N','N','N',7,'N','N','N','Y','9d687961-5fc4-459c-ac62-408372e6400c','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',TO_DATE('2014-01-12 15:23:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:46','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',607,16,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:47 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD Updated DATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:48 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('Y',1,210920,'Y','N','N','N',22,'N','N','N','Y','f66886c6-30d4-4a00-bbce-73229ca24ed3','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',TO_DATE('2014-01-12 15:23:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:47','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','UpdatedBy_ADStatusLineUsedIn','N',608,18,110,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:48 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD UpdatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:49 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'Y',0,210921,'N','N','N',0,'N',22,'N','N','N','Y','3779a8f3-ca5b-430c-b022-8fb876bc111e','Y','AD_Window_ID','Data entry or display window','The Window field identifies a unique Window in the system.','Window','Y',TO_DATE('2014-01-12 15:23:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:48','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','ADWindow_ADStatusLineUsedIn','N',143,19,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:49 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD AD_Window_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:50 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'Y',0,210922,'N','N','N',0,'N',10,'N','N','N','Y','79c55587-62e5-47dc-aa63-e1e2d36f8aea','Y','AD_Tab_ID','Tab within a Window','The Tab indicates a tab that displays within a window.','Tab','Y',TO_DATE('2014-01-12 15:23:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:49','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','ADTab_ADStatusLineUsedIn','N',125,19,200108,163,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:50 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD AD_Tab_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:50 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Help,Name,Description,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsStatusLine',202639,'If checked the definition corresponds to a status line, when unchecked it corresponds to a help widget','Status Line','Defines if this record refers to a status line or to a help widget','Status Line','2ec77e53-9733-40fe-8579-9d2080be9ec5',TO_DATE('2014-01-12 15:23:50','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-01-12 15:23:50','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:51 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'Y',0,210923,'Y','N','N',0,'N',1,'N','N','N','Y','fcae468b-c00f-4944-ba95-0929da77057e','Y','IsStatusLine','Defines if this record refers to a status line or to a help widget','Y','If checked the definition corresponds to a status line, when unchecked it corresponds to a help widget','Status Line','Y',TO_DATE('2014-01-12 15:23:50','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:50','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',202639,20,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:51 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD IsStatusLine CHAR(1) DEFAULT 'Y' CHECK (IsStatusLine IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:52 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'Y',0,210924,'N','N','N',0,'N',22,'N','N','N','Y','f5238112-0fbd-4ec5-9ad8-419baa7e7609','Y','SeqNo','Method of ordering records; lowest number comes first','The Sequence indicates the order of records','Sequence','Y',TO_DATE('2014-01-12 15:23:51','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:51','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N',566,11,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:52 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD SeqNo NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:52 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,FKConstraintName,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'Y',0,210925,'N','N','N',0,'N',10,'N','N','N','Y','d0fb6046-4e44-468f-9509-59312ad15065','Y','AD_Table_ID','Database Table information','The Database Table provides the information of the table definition','Table','Y',TO_DATE('2014-01-12 15:23:52','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:23:52','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','ADTable_ADStatusLineUsedIn','N',126,19,200108,0,0,'D')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:52 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD AD_Table_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:53 PM COT
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,AD_Tab_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Client_ID,AD_Table_ID) VALUES ('N','N','Y',200049,30,'N','N','N','N','N','Y','N',1,'c48e09b9-ca7a-4734-8385-da33d75f9b2b','D','Used In',200115,0,TO_DATE('2014-01-12 15:23:52','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:52','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,200108)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:54 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,36,'N','N',0,'Y',202568,'N','AD_StatusLineUsedIn_UU','08519b29-fc8c-4d0f-832d-809c6e32d2cd','N','N',100,TO_DATE('2014-01-12 15:23:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:53','YYYY-MM-DD HH24:MI:SS'),'Y','N',1,'N',0,2,1,'N','N',210914,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:55 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,22,'N','N',0,'Y',202569,'N','AD_StatusLineUsedIn','c61bd9d9-61fe-48db-922b-6f538d006734','N','N',100,TO_DATE('2014-01-12 15:23:54','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:54','YYYY-MM-DD HH24:MI:SS'),'Y','N',1,'N',0,2,1,'N','N',210911,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:56 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,22,'N','N',10,'Y',202570,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client/Tenant for this installation.','Client','0143b368-78a3-49b4-935f-2ff6ed7e3ada','Y','N',100,TO_DATE('2014-01-12 15:23:55','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:55','YYYY-MM-DD HH24:MI:SS'),'Y','N',1,'N',0,2,1,'N','N',210912,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:58 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,IsAllowCopy,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,22,'Y','N',20,'Y',202571,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organizational entity within client','Organization','64f4c901-a2d7-4d41-a13f-b85225256660','Y','N','Y',100,TO_DATE('2014-01-12 15:23:56','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:56','YYYY-MM-DD HH24:MI:SS'),'Y','N',4,'N',0,2,1,'N','N',210913,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:23:59 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,22,'N','N',30,'Y',202572,'N','Status Line','8d6bfcc5-7951-47ee-937c-3766a26fc4d7','Y','N',100,TO_DATE('2014-01-12 15:23:58','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:58','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,1,'N',0,5,1,'N','N',210915,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:00 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,DisplayLogic,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,10,'N','N',40,'Y',202573,'N','The Database Table provides the information of the table definition','@AD_Window_ID@=0','Database Table information','Table','6b573a8f-5dd7-43d1-bd88-20558297716a','Y','N',100,TO_DATE('2014-01-12 15:23:59','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:23:59','YYYY-MM-DD HH24:MI:SS'),'Y','Y',10,1,'N',0,2,1,'N','N',210925,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:01 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,DisplayLogic,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,22,'N','N',50,'Y',202574,'N','The Window field identifies a unique Window in the system.','@AD_Table_ID@=0','Data entry or display window','Window','81b65c87-88a9-447d-be31-5bad473c675f','Y','N',100,TO_DATE('2014-01-12 15:24:00','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:24:00','YYYY-MM-DD HH24:MI:SS'),'Y','Y',20,1,'N',0,2,1,'N','N',210921,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:02 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,DisplayLogic,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,10,'N','N',60,'Y',202575,'N','The Tab indicates a tab that displays within a window.','@AD_Table_ID@=0','Tab within a Window','Tab','882010d2-2c6e-4b5c-b268-84e6bb1afbdd','Y','N',100,TO_DATE('2014-01-12 15:24:01','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:24:01','YYYY-MM-DD HH24:MI:SS'),'Y','Y',30,4,'N',0,2,1,'N','N',210922,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:03 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,1,'N','N',70,'Y',202576,'N','If checked the definition corresponds to a status line, when unchecked it corresponds to a help widget','Defines if this record refers to a status line or to a help widget','Status Line','eb939c76-a6df-4f0f-bded-8ef79c747b99','Y','N',100,TO_DATE('2014-01-12 15:24:02','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:24:02','YYYY-MM-DD HH24:MI:SS'),'Y','Y',40,2,'N',0,2,1,'N','N',210923,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:04 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,DisplayLogic,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,22,'N','N',80,'Y',202577,'N','The Sequence indicates the order of records','@IsStatusLine@=N','Method of ordering records; lowest number comes first','Sequence','48f82bf7-9967-4a3e-8f96-373ad7708f25','Y','N',100,TO_DATE('2014-01-12 15:24:03','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:24:03','YYYY-MM-DD HH24:MI:SS'),'Y','Y',50,4,'N',0,2,1,'N','N',210924,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:05 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType,AD_Org_ID) VALUES ('N',200115,1,'N','N',90,'Y',202578,'N','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','The record is active in the system','Active','db7d1ee6-0bd9-43d7-86cb-c2395dedde4c','Y','N',100,TO_DATE('2014-01-12 15:24:04','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-12 15:24:04','YYYY-MM-DD HH24:MI:SS'),'Y','Y',60,2,'N',0,2,1,'N','N',210918,'D',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:06 PM COT
|
||||
INSERT INTO AD_StatusLine (AD_StatusLine_ID,AD_Client_ID,AD_Org_ID,AD_StatusLine_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Message_ID,SQLStatement) VALUES (200000,0,0,'6f551ab3-bbbd-431a-8a0d-168e48d3057c',TO_DATE('2014-01-12 15:24:05','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','OrderSummary',TO_DATE('2014-01-12 15:24:05','YYYY-MM-DD HH24:MI:SS'),100,377,'SELECT COUNT(DISTINCT C_OrderLine_ID) AS Lines,o.TotalLines,o.GrandTotal,c.ISO_Code, currencyBase(o.GrandTotal,o.C_Currency_ID,o.DateAcct, o.AD_Client_ID,o.AD_Org_ID) AS ConvAmt
|
||||
FROM C_Order o
|
||||
INNER JOIN C_Currency c ON (o.C_Currency_ID=c.C_Currency_ID)
|
||||
LEFT JOIN C_OrderLine l ON (o.C_Order_ID=l.C_Order_ID)
|
||||
WHERE o.C_Order_ID=@C_Order_ID@
|
||||
GROUP BY o.C_Currency_ID, c.ISO_Code, o.TotalLines, o.GrandTotal, o.DateAcct, o.AD_Client_ID, o.AD_Org_ID')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:07 PM COT
|
||||
INSERT INTO AD_StatusLine (AD_StatusLine_ID,AD_Client_ID,AD_Org_ID,AD_StatusLine_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Message_ID,SQLStatement) VALUES (200001,0,0,'cf2ade0c-a71b-4b86-8311-6afef2071e1d',TO_DATE('2014-01-12 15:24:06','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','InvoiceBatchSummary',TO_DATE('2014-01-12 15:24:06','YYYY-MM-DD HH24:MI:SS'),100,828,'SELECT COUNT(*), NVL(SUM(LineNetAmt),0), NVL(SUM(LineTotalAmt),0)
|
||||
FROM C_InvoiceBatchLine
|
||||
WHERE C_InvoiceBatch_ID=@C_InvoiceBatch_ID@ AND IsActive=''Y''')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:08 PM COT
|
||||
INSERT INTO AD_StatusLine (AD_StatusLine_ID,AD_Client_ID,AD_Org_ID,AD_StatusLine_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Message_ID,SQLStatement) VALUES (200002,0,0,'52d85f09-f71b-4f7b-abb1-a4161891bb36',TO_DATE('2014-01-12 15:24:07','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','InvoiceSummary',TO_DATE('2014-01-12 15:24:07','YYYY-MM-DD HH24:MI:SS'),100,377,'SELECT COUNT(DISTINCT C_InvoiceLine_ID) AS Lines,o.TotalLines,o.GrandTotal,c.ISO_Code, currencyBase(o.GrandTotal,o.C_Currency_ID,o.DateAcct, o.AD_Client_ID,o.AD_Org_ID) AS ConvAmt
|
||||
FROM C_Invoice o
|
||||
INNER JOIN C_Currency c ON (o.C_Currency_ID=c.C_Currency_ID)
|
||||
LEFT JOIN C_InvoiceLine l ON (o.C_Invoice_ID=l.C_Invoice_ID)
|
||||
WHERE o.C_Invoice_ID=@C_Invoice_ID@
|
||||
GROUP BY o.C_Currency_ID, c.ISO_Code, o.TotalLines, o.GrandTotal, o.DateAcct, o.AD_Client_ID, o.AD_Org_ID')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:09 PM COT
|
||||
INSERT INTO AD_StatusLine (AD_StatusLine_ID,AD_Client_ID,AD_Org_ID,AD_StatusLine_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Message_ID,SQLStatement) VALUES (200003,0,0,'aed8f503-ef80-4b4c-9947-99abf3667c66',TO_DATE('2014-01-12 15:24:08','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','ExpenseSummary',TO_DATE('2014-01-12 15:24:08','YYYY-MM-DD HH24:MI:SS'),100,623,'SELECT COUNT(*) AS Lines, SUM(ConvertedAmt*Qty), '' ''
|
||||
FROM S_TimeExpenseLine
|
||||
WHERE S_TimeExpense_ID=@S_TimeExpense_ID@')
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:10 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200000,0,0,'15df6822-bf23-4943-89f0-647a4901c402',200000,TO_DATE('2014-01-12 15:24:09','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:09','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,259)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:11 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200001,0,0,'60ec0af6-338c-4ddd-b073-152283b40925',200000,TO_DATE('2014-01-12 15:24:10','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:10','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,260)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:12 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200002,0,0,'1aab8980-db93-4bb2-899e-941af8b25637',200000,TO_DATE('2014-01-12 15:24:11','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:11','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,200103)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:12 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200003,0,0,'64e64e3f-2153-42a5-b077-65204d82966c',200000,TO_DATE('2014-01-12 15:24:12','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:12','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,200104)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:13 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200004,0,0,'e4edfa4a-31e1-472c-a639-6162fa6771e3',200000,TO_DATE('2014-01-12 15:24:12','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:12','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,53296)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:14 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200005,0,0,'ab2e8306-d1ad-4b29-a25e-fa59d5b77c34',200000,TO_DATE('2014-01-12 15:24:13','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:13','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,314)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:15 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200006,0,0,'f4b7d51c-3ab6-48f2-9884-abd644655ebc',200001,TO_DATE('2014-01-12 15:24:14','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:14','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,767)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:15 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200007,0,0,'eb0594d6-c14e-4b1c-9839-e60bd4f1b97d',200001,TO_DATE('2014-01-12 15:24:15','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:15','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,768)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:16 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200008,0,0,'c1e3e096-8be2-43ca-84c3-b39bbf129238',200002,TO_DATE('2014-01-12 15:24:15','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:15','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,318)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:16 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200009,0,0,'62ad5b5d-b969-49bf-bba1-8b8e24cfad00',200002,TO_DATE('2014-01-12 15:24:16','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:16','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,333)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:17 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200010,0,0,'9e794307-756e-4bec-bd02-9cdae55570c3',200002,TO_DATE('2014-01-12 15:24:16','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:16','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,551)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:18 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,IsStatusLine,SeqNo,AD_Table_ID) VALUES (200011,0,0,'10ad2e85-34b6-480c-8a6e-8934dd0aec23',200002,TO_DATE('2014-01-12 15:24:17','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:17','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,334)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:18 PM COT
|
||||
INSERT INTO AD_StatusLineUsedIn (AD_StatusLineUsedIn_ID,AD_Client_ID,AD_Org_ID,AD_StatusLineUsedIn_UU,AD_StatusLine_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Window_ID,AD_Tab_ID,IsStatusLine,SeqNo) VALUES (200012,0,0,'fcb6d37c-8015-4d91-b01c-8deb35e6b31a',200003,TO_DATE('2014-01-12 15:24:18','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-01-12 15:24:18','YYYY-MM-DD HH24:MI:SS'),100,235,412,'Y',0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:19 PM COT
|
||||
UPDATE AD_Message SET MsgText='{0,choice,0#No Lines|1#1 Line|1<{0} Lines} - {1,number,#,##0.00} - Total: {2,number,#,##0.00} {3} = {4,number,#,##0.00}', Updated=TO_DATE('2014-01-12 15:24:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=377
|
||||
;
|
||||
|
||||
UPDATE AD_Message_Trl SET MsgText='{0,choice,0#Sin Líneas|1#1 Línea|1<{0} Líneas} - {1,number,#,##0.00} - Total: {2,number,#,##0.00} {3} = {4,number,#,##0.00}' WHERE AD_Message_ID=377 AND AD_Language LIKE 'es_%'
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:19 PM COT
|
||||
INSERT INTO AD_Menu (AD_Window_ID,AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,Name,AD_Menu_UU,Action,IsActive,CreatedBy,Updated,Created,UpdatedBy,AD_Client_ID,AD_Org_ID) VALUES (200049,200072,'N','N','N','D','Y','Status Line','39478137-c380-4d3b-9892-b305d91e9f5a','W','Y',100,TO_DATE('2014-01-12 15:24:19','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-01-12 15:24:19','YYYY-MM-DD HH24:MI:SS'),100,0,0)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:24:19 PM COT
|
||||
INSERT INTO AD_TREENODEMM(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, Parent_ID, SeqNo, AD_Tree_ID, Node_ID)VALUES(0, 0, 0, 0, 153,19, 10, 200072)
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:34 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD CONSTRAINT ADClient_ADStatusLine FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:34 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD CONSTRAINT ADOrg_ADStatusLine FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:35 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD CONSTRAINT CreatedBy_ADStatusLine FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:35 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD CONSTRAINT EntityType_ADStatusLine FOREIGN KEY (EntityType) REFERENCES ad_entitytype(entitytype) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:35 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD CONSTRAINT UpdatedBy_ADStatusLine FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:35 PM COT
|
||||
ALTER TABLE AD_StatusLine ADD CONSTRAINT ADMessage_ADStatusLine FOREIGN KEY (AD_Message_ID) REFERENCES ad_message(ad_message_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:59 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CONSTRAINT ADClient_ADStatusLineUsedIn FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:59 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CONSTRAINT ADOrg_ADStatusLineUsedIn FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:59 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CONSTRAINT ADStatusLine_ADStatusLineUsedI FOREIGN KEY (AD_StatusLine_ID) REFERENCES ad_statusline(ad_statusline_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:33:59 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CONSTRAINT CreatedBy_ADStatusLineUsedIn FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:34:00 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CONSTRAINT UpdatedBy_ADStatusLineUsedIn FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:34:00 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CONSTRAINT ADWindow_ADStatusLineUsedIn FOREIGN KEY (AD_Window_ID) REFERENCES ad_window(ad_window_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:34:00 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CONSTRAINT ADTab_ADStatusLineUsedIn FOREIGN KEY (AD_Tab_ID) REFERENCES ad_tab(ad_tab_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 12, 2014 3:34:00 PM COT
|
||||
ALTER TABLE AD_StatusLineUsedIn ADD CONSTRAINT ADTable_ADStatusLineUsedIn FOREIGN KEY (AD_Table_ID) REFERENCES ad_table(ad_table_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401121525_IDEMPIERE-1150.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jan 12, 2014 9:51:40 PM COT
|
||||
-- IDEMPIERE-1150 Status Line window
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,Created,AD_Client_ID,AD_Org_ID) VALUES ('I','Quick Info',200251,'D','4aa59d81-e275-407b-9bdf-d8017d03c791','QuickInfo','Y',TO_DATE('2014-01-12 21:51:39','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2014-01-12 21:51:39','YYYY-MM-DD HH24:MI:SS'),0,0)
|
||||
;
|
||||
|
||||
-- Jan 13, 2014 8:31:22 AM COT
|
||||
UPDATE AD_Column SET DefaultValue='U',Updated=TO_DATE('2014-01-13 08:31:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210904
|
||||
;
|
||||
|
||||
-- Jan 13, 2014 8:31:24 AM COT
|
||||
ALTER TABLE AD_StatusLine MODIFY EntityType VARCHAR2(40) DEFAULT 'U'
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401122152_IDEMPIERE-1684_QuickInfoWidget.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,116 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Nov 27, 2013 8:53:08 AM COT
|
||||
-- IDEMPIERE-1461 POC for Zoom Logic
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Help,Name,Description,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('ZoomLogic',202629,'format := {expression} [{logic} {expression}]<br>
|
||||
expression := @{context}@{operand}{value} or @{context}@{operand}{value}<br>
|
||||
logic := {|}|{&}<br>
|
||||
context := any global or window context <br>
|
||||
value := strings or numbers<br>
|
||||
logic operators := AND or OR with the previous result from left to right <br>
|
||||
operand := eq{=}, gt{>}, le{<}, not{~^!} <br>
|
||||
Examples: <br>
|
||||
'||chr(64)||'AD_Table_ID@=14 | @Language@!GERGER <br>
|
||||
'||chr(64)||'PriceLimit@>10 | @PriceList@>@PriceActual@<br>
|
||||
'||chr(64)||'Name@>J<br>
|
||||
Strings may be in single quotes (optional)','Zoom Logic','the result determines if the zoom condition is applied','Zoom Logic','3dafeed4-bdf0-4cbf-821a-834b0e39a8b0',TO_DATE('2013-11-27 08:53:07','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-11-27 08:53:07','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:55:19 AM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure,FKConstraintType) VALUES (0,'N',0,200066,210891,'N','N','N',0,'N',2000,'N',14,'N','N','Y','fc45039d-0c87-49cc-9c50-b72d0e7a2c91','Y','ZoomLogic','the result determines if the zoom condition is applied','format := {expression} [{logic} {expression}]<br>
|
||||
expression := @{context}@{operand}{value} or @{context}@{operand}{value}<br>
|
||||
logic := {|}|{&}<br>
|
||||
context := any global or window context <br>
|
||||
value := strings or numbers<br>
|
||||
logic operators := AND or OR with the previous result from left to right <br>
|
||||
operand := eq{=}, gt{>}, le{<}, not{~^!} <br>
|
||||
Examples: <br>
|
||||
'||chr(64)||'AD_Table_ID@=14 | @Language@!GERGER <br>
|
||||
'||chr(64)||'PriceLimit@>10 | @PriceList@>@PriceActual@<br>
|
||||
'||chr(64)||'Name@>J<br>
|
||||
Strings may be in single quotes (optional)','Zoom Logic','Y',TO_DATE('2013-11-27 08:55:18','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-11-27 08:55:18','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',202629,'N','N')
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:55:23 AM COT
|
||||
ALTER TABLE AD_ZoomCondition ADD ZoomLogic NVARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:55:39 AM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan) VALUES ('N',200077,36,'N','N',210683,100,'Y',202539,'N','D','AD_ZoomCondition_UU','99b8eae9-2a51-4985-8202-bd4ce28bccc2','N','N',100,0,TO_DATE('2013-11-27 08:55:38','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-11-27 08:55:38','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2)
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:55:39 AM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,AD_Client_ID,ColumnSpan,NumLines) VALUES ('N',200077,2000,'N','N',210891,110,'Y',202540,'N','format := {expression} [{logic} {expression}]<br>
|
||||
expression := @{context}@{operand}{value} or @{context}@{operand}{value}<br>
|
||||
logic := {|}|{&}<br>
|
||||
context := any global or window context <br>
|
||||
value := strings or numbers<br>
|
||||
logic operators := AND or OR with the previous result from left to right <br>
|
||||
operand := eq{=}, gt{>}, le{<}, not{~^!} <br>
|
||||
Examples: <br>
|
||||
'||chr(64)||'AD_Table_ID@=14 | @Language@!GERGER <br>
|
||||
'||chr(64)||'PriceLimit@>10 | @PriceList@>@PriceActual@<br>
|
||||
'||chr(64)||'Name@>J<br>
|
||||
Strings may be in single quotes (optional)','D','the result determines if the zoom condition is applied','Zoom Logic','bcc492c0-652c-4900-a6fd-514d9e385cf2','Y','N',100,0,TO_DATE('2013-11-27 08:55:39','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-11-27 08:55:39','YYYY-MM-DD HH24:MI:SS'),'Y',0,5,3)
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=10, ColumnSpan=2,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201829
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=20, IsDisplayed='Y', XPosition=4, ColumnSpan=2,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201834
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=30, ColumnSpan=2,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201836
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=40, ColumnSpan=2,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202339
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=50, ColumnSpan=5,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202338
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=60, ColumnSpan=5,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201831
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202540
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=80, IsDisplayed='Y', XPosition=1, ColumnSpan=5,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202337
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=90, IsDisplayed='Y', XPosition=1, ColumnSpan=2,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201837
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=100, IsDisplayed='Y', XPosition=5, ColumnSpan=2,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201828
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 8:56:59 AM COT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2013-11-27 08:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202539
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 9:00:21 AM COT
|
||||
UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2013-11-27 09:00:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210659
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 9:00:23 AM COT
|
||||
ALTER TABLE AD_ZoomCondition MODIFY WhereClause NVARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 9:00:23 AM COT
|
||||
ALTER TABLE AD_ZoomCondition MODIFY WhereClause NULL
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401150857_IDEMPIERE-1461.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,162 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Dec 6, 2013 10:44:52 AM CET
|
||||
-- IDEMPIERE-1588 Add country on non business days table
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210893,'b69998b5-9865-43c7-8518-2e50e8bb3bf8',192,0,19,163,'C_Country_ID',TO_DATE('2013-12-06 10:44:51','YYYY-MM-DD HH24:MI:SS'),100,'Country ','D',22,'The Country defines a Country. Each Country must be defined before it can be used in any document.','Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','Y','Country',0,0,TO_DATE('2013-12-06 10:44:51','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:01 AM CET
|
||||
UPDATE AD_Column SET FKConstraintName='CCountry_CNonBusinessDay', FKConstraintType='N',Updated=TO_DATE('2013-12-06 10:45:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210893
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:01 AM CET
|
||||
ALTER TABLE C_NonBusinessDay ADD C_Country_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:02 AM CET
|
||||
ALTER TABLE C_NonBusinessDay ADD CONSTRAINT CCountry_CNonBusinessDay FOREIGN KEY (C_Country_ID) REFERENCES C_COUNTRY(C_COUNTRY_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:37 AM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,60714,202542,'39156bc8-6f18-437d-b2de-2b4af618dc16',0,131,2,TO_DATE('2013-12-06 10:45:36','YYYY-MM-DD HH24:MI:SS'),100,36,'D','Y','Y','N','N','N','N','N','N','N','C_NonBusinessDay_UU',80,TO_DATE('2013-12-06 10:45:36','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:37 AM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210893,202543,'142b8efa-23e4-4329-8091-97ee83964d46',0,131,2,TO_DATE('2013-12-06 10:45:37','YYYY-MM-DD HH24:MI:SS'),100,'Country ',22,'D','The Country defines a Country. Each Country must be defined before it can be used in any document.','Y','Y','Y','N','N','N','N','N','Country',90,TO_DATE('2013-12-06 10:45:37','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:51 AM CET
|
||||
UPDATE AD_Field SET SeqNo=10,Updated=TO_DATE('2013-12-06 10:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=486
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:51 AM CET
|
||||
UPDATE AD_Field SET SeqNo=20,Updated=TO_DATE('2013-12-06 10:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2013
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:51 AM CET
|
||||
UPDATE AD_Field SET SeqNo=30,Updated=TO_DATE('2013-12-06 10:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=490
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:51 AM CET
|
||||
UPDATE AD_Field SET SeqNo=40,Updated=TO_DATE('2013-12-06 10:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=488
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:51 AM CET
|
||||
UPDATE AD_Field SET SeqNo=50,Updated=TO_DATE('2013-12-06 10:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=489
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:51 AM CET
|
||||
UPDATE AD_Field SET SeqNo=60,Updated=TO_DATE('2013-12-06 10:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1552
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:51 AM CET
|
||||
UPDATE AD_Field SET SeqNo=70,Updated=TO_DATE('2013-12-06 10:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202543
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:51 AM CET
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2013-12-06 10:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202542
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:45:51 AM CET
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2013-12-06 10:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=485
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:46:03 AM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=485
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:46:03 AM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=486
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:46:03 AM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=2013
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:46:03 AM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=490
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:46:03 AM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=488
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:46:03 AM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=489
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:46:03 AM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=1552
|
||||
;
|
||||
|
||||
-- Dec 6, 2013 10:46:03 AM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=202543
|
||||
;
|
||||
|
||||
create or replace
|
||||
function nextBusinessDay
|
||||
(
|
||||
p_Date in date,
|
||||
p_AD_Client_ID in number
|
||||
)
|
||||
return date
|
||||
/**
|
||||
*This file is part of Adempiere ERP Bazaar
|
||||
*http://www.adempiere.org
|
||||
*
|
||||
*Copyright (C) 2007 Teo Sarca
|
||||
*
|
||||
*This program is free software; you can redistribute it and/or
|
||||
*modify it under the terms of the GNU General Public License
|
||||
*as published by the Free Software Foundation; either version 2
|
||||
*of the License, or (at your option) any later version.
|
||||
*
|
||||
*This program is distributed in the hope that it will be useful,
|
||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
*GNU General Public License for more details.
|
||||
*
|
||||
*You should have received a copy of the GNU General Public License
|
||||
*along with this program; if not, write to the Free Software
|
||||
*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of
|
||||
*/
|
||||
as
|
||||
v_nextDate date := TRUNC(p_Date);
|
||||
v_offset number := 0;
|
||||
v_Saturday number := TO_CHAR(TO_DATE('2000-01-01', 'YYYY-MM-DD'), 'D');
|
||||
v_Sunday number := (case when v_Saturday = 7 then 1 else v_Saturday + 1 end);
|
||||
v_isHoliday boolean := true;
|
||||
v_country c_country.c_country_id%type;
|
||||
|
||||
cursor nonBusinessDays(pp_Date date, pp_country c_country.c_country_id%type) is
|
||||
select nbd.Date1 from C_NonBusinessDay nbd
|
||||
where AD_Client_ID=p_AD_Client_ID and IsActive ='Y' and Date1>=pp_Date
|
||||
AND COALESCE(C_Country_ID,0) IN (0, pp_country)
|
||||
order by Date1;
|
||||
begin
|
||||
v_isHoliday := true;
|
||||
SELECT COALESCE(MAX(co.c_country_id), 100)
|
||||
INTO v_country
|
||||
FROM ad_client cl
|
||||
JOIN ad_language l ON cl.ad_language = l.ad_language
|
||||
JOIN c_country co ON l.countrycode = co.countrycode
|
||||
WHERE cl.ad_client_id = p_ad_client_id;
|
||||
loop
|
||||
SELECT DECODE(TO_CHAR(v_nextDate,'D'), v_Saturday, 2, v_Sunday, 1, 0) INTO v_offset FROM DUAL;
|
||||
v_nextDate := TRUNC(v_nextDate + v_offset);
|
||||
v_isHoliday := false;
|
||||
for nbd in nonBusinessDays(v_nextDate, v_country) loop
|
||||
exit when v_nextDate <> TRUNC(nbd.Date1);
|
||||
v_nextDate := v_nextDate + 1;
|
||||
v_isHoliday := true;
|
||||
end loop;
|
||||
exit when v_isHoliday=false;
|
||||
end loop;
|
||||
--
|
||||
return v_nextDate;
|
||||
end nextBusinessDay;
|
||||
/
|
||||
|
||||
SELECT register_migration_script('201401150958_IDEMPIERE-1588.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,200 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jan 17, 2014 7:55:51 PM CET
|
||||
-- IDEMPIERE-1697 Ability to filter available column for print format
|
||||
INSERT INTO AD_Table (AD_Client_ID,AD_Org_ID,AD_Table_ID,AD_Table_UU,AD_Window_ID,AccessLevel,CopyColumnsFromTable,Created,CreatedBy,DatabaseViewDrop,EntityType,ImportTable,IsActive,IsCentrallyMaintained,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,Processing,ReplicationType,TableName,Updated,UpdatedBy) VALUES (0,0,200109,'61c4df89-6a05-4cdf-8cfb-f911aefe92b4',180,'4','N',TO_DATE('2014-01-17 19:55:50','YYYY-MM-DD HH24:MI:SS'),100,'N','D','N','Y','Y','N','Y','N','N','N',0,'Report View Selected column','N','L','AD_ReportView_Column',TO_DATE('2014-01-17 19:55:50','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:55:56 PM CET
|
||||
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,AD_Sequence_UU,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,200157,'d643471e-4216-4de0-b8fc-9a9a17567c70',TO_DATE('2014-01-17 19:55:55','YYYY-MM-DD HH24:MI:SS'),100,1000000,200000,'Table AD_ReportView_Column',1,'Y','N','Y','Y','AD_ReportView_Column','N',1000000,TO_DATE('2014-01-17 19:55:55','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:56:31 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,ReadOnlyLogic,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210934,'fef5898b-5b3a-4820-9c5c-b49d38f47c4b',102,0,19,200109,116,'AD_Client_ID',TO_DATE('2014-01-17 19:56:30','YYYY-MM-DD HH24:MI:SS'),100,'@#AD_Client_ID@','Client/Tenant for this installation.','D',22,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','Client','1=1',0,0,TO_DATE('2014-01-17 19:56:30','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:57:02 PM CET
|
||||
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,AD_Val_Rule_UU,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,200055,'a95018ef-f591-4e92-a494-92d875ae7462','AD_Column.AD_Table_ID=@AD_Table_ID@ AND AD_Column.AD_Column_ID NOT IN (SELECT AD_Column_ID FROM AD_ReportView_Column WHERE AD_ReportView_ID=@AD_ReportView_ID@)',TO_DATE('2014-01-17 19:57:01','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','AD_Column in AD_Table (not present in AD_ReportView_Column)','S',TO_DATE('2014-01-17 19:57:01','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:57:32 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FKConstraintType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210935,'e5fe354e-7566-4a08-a601-b0d97ca5f186',104,0,19,200109,200055,'AD_Column_ID',TO_DATE('2014-01-17 19:57:32','YYYY-MM-DD HH24:MI:SS'),100,'Column in the table','D','N',22,'Link to the database column of the table','Y','Y','Y','N','N','N','N','N','Y','Y','N','N','N','N','N','N','Column',0,0,TO_DATE('2014-01-17 19:57:32','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:57:50 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210936,'60086644-8471-499c-bf88-44478e949c93',113,0,19,200109,148,'AD_Org_ID',TO_DATE('2014-01-17 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,'@#AD_Org_ID@','Organizational entity within client','D',22,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','Y','N','N','N','N','N','Y','N','N','N','N','N','N','N','Organization',0,0,TO_DATE('2014-01-17 19:57:50','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:58:03 PM CET
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Element_UU,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,202644,'befda76c-f925-4b83-9a67-dc04aee798fe',0,'AD_ReportView_Column_UU',TO_DATE('2014-01-17 19:58:02','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','AD_ReportView_Column_UU','AD_ReportView_Column_UU',TO_DATE('2014-01-17 19:58:02','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:58:17 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FKConstraintType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210937,'60cbf348-8cbf-4801-a914-60ac3e550bea',202644,0,10,200109,'AD_ReportView_Column_UU',TO_DATE('2014-01-17 19:58:16','YYYY-MM-DD HH24:MI:SS'),100,'D','N',36,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','AD_ReportView_Column_UU',0,0,TO_DATE('2014-01-17 19:58:16','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:58:21 PM CET
|
||||
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2014-01-17 19:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210936
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:58:23 PM CET
|
||||
UPDATE AD_Column SET EntityType='D', IsUpdateable='N',Updated=TO_DATE('2014-01-17 19:58:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210935
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:58:47 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FKConstraintType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210938,'6d8f48d0-07e3-49c3-a0e6-5e5539279496',1252,0,30,200109,'AD_ReportView_ID',TO_DATE('2014-01-17 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'View used to generate this report','D','N',22,'The Report View indicates the view used to generate this report.','Y','Y','Y','N','N','N','N','N','Y','Y','N','N','N','N','N','N','Report View',0,0,TO_DATE('2014-01-17 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:58:56 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210939,'0a89a617-6e81-4e20-a890-408943ee7e64',245,0,16,200109,'Created',TO_DATE('2014-01-17 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was created','D',7,'The Created field indicates the date that this record was created.','Y','N','Y','N','N','N','N','N','Y','N','N','N','N','N','N','N','Created',0,0,TO_DATE('2014-01-17 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:59:06 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210940,'5d88374b-0ec9-4791-856f-816aa6a03ac1',246,0,18,110,200109,'CreatedBy',TO_DATE('2014-01-17 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'User who created this records','D',22,'The Created By field indicates the user who created this record.','Y','N','Y','N','N','N','N','N','Y','N','N','N','N','N','N','N','Created By',0,0,TO_DATE('2014-01-17 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:59:18 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210941,'1ab404bd-25de-432c-8a80-afe50d47c0a5',348,0,20,200109,'IsActive',TO_DATE('2014-01-17 19:59:17','YYYY-MM-DD HH24:MI:SS'),100,'Y','The record is active in the system','D',1,'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','N','Y','N','N','N','N','N','Y','N','N','N','N','N','N','Y','Active',0,0,TO_DATE('2014-01-17 19:59:17','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:59:27 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210942,'d5dc79c0-7fd6-4751-92d3-e944116523ff',607,0,16,200109,'Updated',TO_DATE('2014-01-17 19:59:26','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was updated','D',7,'The Updated field indicates the date that this record was updated.','Y','N','Y','N','N','N','N','N','Y','N','N','N','N','N','N','N','Updated',0,0,TO_DATE('2014-01-17 19:59:26','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:59:34 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210943,'c6d3683c-cb92-40d5-9e1b-9622b08b487a',608,0,18,110,200109,'UpdatedBy',TO_DATE('2014-01-17 19:59:34','YYYY-MM-DD HH24:MI:SS'),100,'User who updated this records','D',22,'The Updated By field indicates the user who updated this record.','Y','N','Y','N','N','N','N','N','Y','N','N','N','N','N','N','N','Updated By',0,0,TO_DATE('2014-01-17 19:59:34','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 7:59:43 PM CET
|
||||
UPDATE AD_Column SET EntityType='D', IsUpdateable='N',Updated=TO_DATE('2014-01-17 19:59:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210938
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:29 PM CET
|
||||
UPDATE AD_Column SET FKConstraintName='ADClient_ADReportViewColumn', FKConstraintType='N',Updated=TO_DATE('2014-01-17 20:00:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210934
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:29 PM CET
|
||||
UPDATE AD_Column SET FKConstraintName='ADColumn_ADReportViewColumn', FKConstraintType='N', IsUpdateable='N',Updated=TO_DATE('2014-01-17 20:00:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210935
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:29 PM CET
|
||||
UPDATE AD_Column SET FKConstraintName='ADOrg_ADReportViewColumn', FKConstraintType='N',Updated=TO_DATE('2014-01-17 20:00:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210936
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:30 PM CET
|
||||
UPDATE AD_Column SET FKConstraintName='ADReportView_ADReportViewColum', FKConstraintType='N', IsUpdateable='N',Updated=TO_DATE('2014-01-17 20:00:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210938
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:30 PM CET
|
||||
UPDATE AD_Column SET FKConstraintName='CreatedBy_ADReportViewColumn', FKConstraintType='N',Updated=TO_DATE('2014-01-17 20:00:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210940
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:30 PM CET
|
||||
UPDATE AD_Column SET FKConstraintName='UpdatedBy_ADReportViewColumn', FKConstraintType='N',Updated=TO_DATE('2014-01-17 20:00:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210943
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:30 PM CET
|
||||
CREATE TABLE AD_ReportView_Column (AD_Client_ID NUMBER(10) DEFAULT NULL , AD_Column_ID NUMBER(10) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, AD_ReportView_Column_UU VARCHAR2(36) DEFAULT NULL , AD_ReportView_ID NUMBER(10) NOT NULL, Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT AD_ReportView_Column_Key PRIMARY KEY (AD_Column_ID, AD_ReportView_ID), CONSTRAINT AD_ReportView_Column_UU_idx UNIQUE (AD_ReportView_Column_UU))
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:32 PM CET
|
||||
ALTER TABLE AD_ReportView_Column ADD CONSTRAINT ADClient_ADReportViewColumn FOREIGN KEY (AD_Client_ID) REFERENCES AD_CLIENT(AD_CLIENT_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:32 PM CET
|
||||
ALTER TABLE AD_ReportView_Column ADD CONSTRAINT ADColumn_ADReportViewColumn FOREIGN KEY (AD_Column_ID) REFERENCES AD_COLUMN(AD_COLUMN_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:32 PM CET
|
||||
ALTER TABLE AD_ReportView_Column ADD CONSTRAINT ADOrg_ADReportViewColumn FOREIGN KEY (AD_Org_ID) REFERENCES AD_ORG(AD_ORG_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:32 PM CET
|
||||
ALTER TABLE AD_ReportView_Column ADD CONSTRAINT ADReportView_ADReportViewColum FOREIGN KEY (AD_ReportView_ID) REFERENCES AD_REPORTVIEW(AD_REPORTVIEW_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:33 PM CET
|
||||
ALTER TABLE AD_ReportView_Column ADD CONSTRAINT CreatedBy_ADReportViewColumn FOREIGN KEY (CreatedBy) REFERENCES AD_USER(AD_USER_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:00:33 PM CET
|
||||
ALTER TABLE AD_ReportView_Column ADD CONSTRAINT UpdatedBy_ADReportViewColumn FOREIGN KEY (UpdatedBy) REFERENCES AD_USER(AD_USER_ID) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:01:17 PM CET
|
||||
INSERT INTO AD_Tab (AD_Client_ID,AD_Column_ID,AD_Org_ID,AD_Tab_ID,AD_Tab_UU,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsInfoTab,IsInsertRecord,IsReadOnly,IsSingleRow,IsSortTab,IsTranslationTab,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,210938,0,200116,'4776b336-7794-48c0-96ec-9a3eed2f8143',200109,180,TO_DATE('2014-01-17 20:01:17','YYYY-MM-DD HH24:MI:SS'),100,'D','N','N','Y','N','N','Y','N','N','N','N','Available Columns','N',30,1,TO_DATE('2014-01-17 20:01:17','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:01:19 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210934,202588,'0c47e223-4972-4689-9c92-2734e9814657',0,200116,2,TO_DATE('2014-01-17 20:01:19','YYYY-MM-DD HH24:MI:SS'),100,'Client/Tenant for this installation.',22,'D','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','Y','N','N','N','N','N','N','Client',10,TO_DATE('2014-01-17 20:01:19','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:01:21 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsAllowCopy,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy,XPosition) VALUES (0,210936,202589,'708987d3-f611-4f68-aa66-7245b5112e76',0,200116,2,TO_DATE('2014-01-17 20:01:20','YYYY-MM-DD HH24:MI:SS'),100,'Organizational entity within client',22,'D','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','Y','Y','N','N','N','N','N','N','Organization',20,TO_DATE('2014-01-17 20:01:20','YYYY-MM-DD HH24:MI:SS'),100,4)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:01:21 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210935,202590,'89a6cda0-0a98-43ca-9d40-ee2c62a15994',0,200116,2,TO_DATE('2014-01-17 20:01:21','YYYY-MM-DD HH24:MI:SS'),100,'Column in the table',22,'D','Link to the database column of the table','Y','Y','Y','N','N','N','N','N','Column',30,TO_DATE('2014-01-17 20:01:21','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:01:22 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210937,202591,'e9e6dced-10bc-4f72-a808-9a09bf02cca6',0,200116,2,TO_DATE('2014-01-17 20:01:21','YYYY-MM-DD HH24:MI:SS'),100,36,'D','Y','Y','N','N','N','N','N','N','N','AD_ReportView_Column_UU',40,TO_DATE('2014-01-17 20:01:21','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:01:23 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210938,202592,'aeaa9eab-26d1-4a0c-bced-743065cc7aa1',0,200116,2,TO_DATE('2014-01-17 20:01:22','YYYY-MM-DD HH24:MI:SS'),100,'View used to generate this report',22,'D','The Report View indicates the view used to generate this report.','Y','Y','Y','N','N','N','N','N','Report View',50,TO_DATE('2014-01-17 20:01:22','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:01:24 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy,XPosition) VALUES (0,210941,202593,'1321abf5-3832-4c51-82a2-ea9a6b9955f0',0,200116,2,TO_DATE('2014-01-17 20:01:23','YYYY-MM-DD HH24:MI:SS'),100,'The record is active in the system',1,'D','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','Y','Y','N','N','N','N','N','Active',60,TO_DATE('2014-01-17 20:01:23','YYYY-MM-DD HH24:MI:SS'),100,2)
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:01:59 PM CET
|
||||
UPDATE AD_Tab SET Description='You can define on this tab which columns will be available as the print format items',Updated=TO_DATE('2014-01-17 20:01:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200116
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:02:24 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=202592
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:02:24 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=202590
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:02:24 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=202593
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:02:30 PM CET
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=202591
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:02:30 PM CET
|
||||
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=202592
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:02:30 PM CET
|
||||
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=202590
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:02:30 PM CET
|
||||
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=202593
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:02:46 PM CET
|
||||
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2014-01-17 20:02:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202589
|
||||
;
|
||||
|
||||
-- Jan 17, 2014 8:03:16 PM CET
|
||||
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2014-01-17 20:03:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202590
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401172019_IDEMPIERE-1697.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,120 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jan 25, 2014 8:16:32 AM MYT
|
||||
-- IDEMPIERE-1711 InfoWindow Process
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID) VALUES (0,'N',0,210944,'N','N','N',0,'N',22,'N','N','N','Y','31b21b81-8828-47c0-9b47-14cfd046ccf7','Y','AD_Process_ID','Process or Report','The Process field identifies a unique Process or Report in the system.','Process','Y',TO_DATE('2014-01-25 08:16:26','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2014-01-25 08:16:26','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N','N','N',117,19,895)
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:25:41 AM MYT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,AD_Column_ID,EntityType) VALUES (0,'N',842,0,'N','N',180,'Y',202596,'N','The Process field identifies a unique Process or Report in the system.','Process or Report','Process','939b9169-77cc-4ca0-b3e8-68478ae01d66','Y','N',100,0,TO_DATE('2014-01-25 08:25:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-01-25 08:25:35','YYYY-MM-DD HH24:MI:SS'),'Y','Y',100,1,'N',0,1,1,'N','N',210944,'D')
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:29:22 AM MYT
|
||||
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=202596
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:29:22 AM MYT
|
||||
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=201634
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:29:22 AM MYT
|
||||
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=13579
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:29:22 AM MYT
|
||||
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=13580
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:29:22 AM MYT
|
||||
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=201627
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:29:22 AM MYT
|
||||
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=201628
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:29:22 AM MYT
|
||||
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=201639
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:29:22 AM MYT
|
||||
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=201807
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:29:54 AM MYT
|
||||
UPDATE AD_Field SET IsSameLine='Y', XPosition=3,Updated=TO_DATE('2014-01-25 09:27:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202596
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:30:12 AM MYT
|
||||
UPDATE AD_Column SET FKConstraintType='N', FKConstraintName='ADProcess_ADInfoWindow',Updated=TO_DATE('2014-01-25 09:06:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210944
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:30:12 AM MYT
|
||||
ALTER TABLE AD_InfoWindow ADD AD_Process_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 8:30:14 AM MYT
|
||||
ALTER TABLE AD_InfoWindow ADD CONSTRAINT ADProcess_ADInfoWindow FOREIGN KEY (AD_Process_ID) REFERENCES ad_process(ad_process_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
-- IDEMPIERE-1711 InfoWindow Process
|
||||
UPDATE AD_Field SET SeqNo=80, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13575
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=90,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13582
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=100, IsDisplayed='Y', XPosition=4, ColumnSpan=2,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202596
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=110,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13581
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=120,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201621
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201634
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=140,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13579
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13580
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201627
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=170,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201628
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=180, IsDisplayed='Y', XPosition=4, ColumnSpan=1,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201639
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=190, IsDisplayed='Y', XPosition=5, ColumnSpan=1,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202198
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=200,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201807
|
||||
;
|
||||
|
||||
-- Jan 24, 2014 10:16:49 PM COT
|
||||
UPDATE AD_Field SET SeqNo=210, IsDisplayed='Y', XPosition=4, ColumnSpan=2,Updated=TO_DATE('2014-01-24 22:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202196
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401242121_IDEMPIERE-1711.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,219 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Sep 11, 2013 7:42:21 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Element_UU,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,202610,'eaf54818-43d8-4c85-a7cd-24892ad5740e',0,'TreeDisplayedOn',TO_DATE('2013-09-11 19:42:20','YYYY-MM-DD HH24:MI:SS'),100,'The tree can be displayed on master tab, detail tab or both','D','Y','Tree displayed','Tree displayed',TO_DATE('2013-09-11 19:42:20','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:43:03 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_UU,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,200074,'859b6bbe-8381-44d4-b3f6-374c17be1b53',TO_DATE('2013-09-11 19:43:02','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','TreeDisplayedOn',TO_DATE('2013-09-11 19:43:02','YYYY-MM-DD HH24:MI:SS'),100,'L')
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:43:14 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Ref_List_UU,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,200158,'4b99f0aa-846d-459e-a361-8df1018ea08b',200074,TO_DATE('2013-09-11 19:43:13','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Both',TO_DATE('2013-09-11 19:43:13','YYYY-MM-DD HH24:MI:SS'),100,'B')
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:43:22 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Ref_List_UU,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,200159,'0a125aed-6b96-41c2-86c7-6b196830dbcc',200074,TO_DATE('2013-09-11 19:43:21','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Detail Tab',TO_DATE('2013-09-11 19:43:21','YYYY-MM-DD HH24:MI:SS'),100,'D')
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:43:29 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Ref_List_UU,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,200160,'8b216882-c0c4-47c1-a2a8-d75721082def',200074,TO_DATE('2013-09-11 19:43:28','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Master Tab',TO_DATE('2013-09-11 19:43:28','YYYY-MM-DD HH24:MI:SS'),100,'M')
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:43:49 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210869,'6ee372e3-8199-4d45-b500-1f4f872bc6dd',202610,0,17,200074,106,'TreeDisplayedOn',TO_DATE('2013-09-11 19:43:49','YYYY-MM-DD HH24:MI:SS'),100,'B','The tree can be displayed on master tab, detail tab or both','D',1,'Y','Y','Y','N','N','N','N','N','Y','N','N','N','N','N','N','Y','Tree displayed',0,0,TO_DATE('2013-09-11 19:43:49','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:43:53 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
ALTER TABLE AD_Tab ADD TreeDisplayedOn CHAR(1) DEFAULT 'B' NOT NULL
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:45:06 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,60551,202514,'b2bf9bc2-5018-434f-bdab-c036ba3a19c3',0,105,2,TO_DATE('2013-09-11 19:45:06','YYYY-MM-DD HH24:MI:SS'),100,36,'D','Y','Y','N','N','N','N','N','N','N','AD_Window_UU',170,TO_DATE('2013-09-11 19:45:06','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:45:18 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210869,202515,'f1b8cfef-debb-44af-aa67-4854b94e69dc',0,106,2,TO_DATE('2013-09-11 19:45:18','YYYY-MM-DD HH24:MI:SS'),100,'The tree can be displayed on master tab, detail tab or both',1,'D','Y','Y','Y','N','N','N','N','N','Tree displayed',340,TO_DATE('2013-09-11 19:45:18','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:46:09 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
UPDATE AD_Field SET DisplayLogic='@HasTree@=Y',Updated=TO_DATE('2013-09-11 19:46:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202515
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:46:16 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=202515
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:46:16 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=5131
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:46:16 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=3205
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:46:23 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
UPDATE AD_Field SET SeqNoGrid=300,IsDisplayedGrid='Y' WHERE AD_Field_ID=202515
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:46:23 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
UPDATE AD_Field SET SeqNoGrid=310,IsDisplayedGrid='Y' WHERE AD_Field_ID=5131
|
||||
;
|
||||
|
||||
-- Sep 11, 2013 7:46:23 PM CEST
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
UPDATE AD_Field SET SeqNoGrid=320,IsDisplayedGrid='Y' WHERE AD_Field_ID=3205
|
||||
;
|
||||
|
||||
CREATE OR REPLACE VIEW AD_TAB_V
|
||||
(AD_TAB_ID, AD_WINDOW_ID, AD_TABLE_ID, NAME, DESCRIPTION,
|
||||
HELP, SEQNO, ISSINGLEROW, HASTREE, ISINFOTAB,
|
||||
REPLICATIONTYPE, TABLENAME, ACCESSLEVEL, ISSECURITYENABLED, ISDELETEABLE,
|
||||
ISHIGHVOLUME, ISVIEW, HASASSOCIATION, ISTRANSLATIONTAB, ISREADONLY,
|
||||
AD_IMAGE_ID, TABLEVEL, WHERECLAUSE, ORDERBYCLAUSE, COMMITWARNING,
|
||||
READONLYLOGIC, DISPLAYLOGIC, AD_COLUMN_ID, AD_PROCESS_ID, ISSORTTAB,
|
||||
ISINSERTRECORD, ISADVANCEDTAB, AD_COLUMNSORTORDER_ID, AD_COLUMNSORTYESNO_ID,
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU, TREEDISPLAYEDON)
|
||||
AS
|
||||
SELECT t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, t.Name, t.Description,
|
||||
t.Help, t.SeqNo, t.IsSingleRow, t.HasTree, t.IsInfoTab, tbl.ReplicationType,
|
||||
tbl.TableName, tbl.AccessLevel, tbl.IsSecurityEnabled, tbl.IsDeleteable,
|
||||
tbl.IsHighVolume, tbl.IsView, cast('N' as char) AS HasAssociation, -- compatibility
|
||||
t.IsTranslationTab, t.IsReadOnly, t.AD_Image_ID, t.TabLevel,
|
||||
t.WhereClause, t.OrderByClause, t.CommitWarning, t.ReadOnlyLogic, t.DisplayLogic,
|
||||
t.AD_Column_ID, t.AD_Process_ID, t.IsSortTab, t.IsInsertRecord, t.IsAdvancedTab,
|
||||
t.AD_ColumnSortOrder_ID, t.AD_ColumnSortYesNo_ID, t.Included_Tab_ID, t.Parent_Column_ID,
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU, t.TreeDisplayedOn
|
||||
FROM AD_Tab t
|
||||
INNER JOIN AD_Table tbl ON (t.AD_Table_ID = tbl.AD_Table_ID)
|
||||
WHERE t.IsActive='Y'
|
||||
AND tbl.IsActive='Y';
|
||||
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW AD_TAB_VT
|
||||
(AD_LANGUAGE, AD_TAB_ID, AD_WINDOW_ID, AD_TABLE_ID, NAME,
|
||||
DESCRIPTION, HELP, SEQNO, ISSINGLEROW, HASTREE,
|
||||
ISINFOTAB, REPLICATIONTYPE, TABLENAME, ACCESSLEVEL, ISSECURITYENABLED,
|
||||
ISDELETEABLE, ISHIGHVOLUME, ISVIEW, HASASSOCIATION, ISTRANSLATIONTAB,
|
||||
ISREADONLY, AD_IMAGE_ID, TABLEVEL, WHERECLAUSE, ORDERBYCLAUSE,
|
||||
COMMITWARNING, READONLYLOGIC, DISPLAYLOGIC, AD_COLUMN_ID, AD_PROCESS_ID,
|
||||
ISSORTTAB, ISINSERTRECORD, ISADVANCEDTAB, AD_COLUMNSORTORDER_ID, AD_COLUMNSORTYESNO_ID,
|
||||
INCLUDED_TAB_ID, PARENT_COLUMN_ID, AD_Tab_UU, AD_Table_UU, TREEDISPLAYEDON)
|
||||
AS
|
||||
SELECT trl.AD_Language, t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, trl.Name, trl.Description,
|
||||
trl.Help, t.SeqNo, t.IsSingleRow, t.HasTree, t.IsInfoTab, tbl.ReplicationType,
|
||||
tbl.TableName, tbl.AccessLevel, tbl.IsSecurityEnabled, tbl.IsDeleteable,
|
||||
tbl.IsHighVolume, tbl.IsView, cast('N' as char) AS HasAssociation, -- compatibility
|
||||
t.IsTranslationTab, t.IsReadOnly, t.AD_Image_ID, t.TabLevel,
|
||||
t.WhereClause, t.OrderByClause, trl.CommitWarning, t.ReadOnlyLogic, t.DisplayLogic,
|
||||
t.AD_Column_ID, t.AD_Process_ID, t.IsSortTab, t.IsInsertRecord, t.IsAdvancedTab,
|
||||
t.AD_ColumnSortOrder_ID, t.AD_ColumnSortYesNo_ID, t.Included_Tab_ID, t.Parent_Column_ID,
|
||||
t.AD_Tab_UU, tbl.AD_Table_UU, t.TreeDisplayedOn
|
||||
FROM AD_Tab t
|
||||
INNER JOIN AD_Table tbl ON (t.AD_Table_ID = tbl.AD_Table_ID)
|
||||
INNER JOIN AD_Tab_Trl trl ON (t.AD_Tab_ID = trl.AD_Tab_ID)
|
||||
WHERE t.IsActive='Y'
|
||||
AND tbl.IsActive='Y';
|
||||
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
-- IDEMPIERE-1353 Choose to display trees on master, detail or both tabs
|
||||
UPDATE AD_Field SET SeqNo=70,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=131
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=80,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5824
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=90,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=123
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=100,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5326
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=110, ColumnSpan=1,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=124
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=120, IsDisplayed='Y', XPosition=3, ColumnSpan=1,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=312
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=130, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202515
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=140, IsDisplayed='Y', XPosition=2, ColumnSpan=1,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11997
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=150, IsDisplayed='Y', XPosition=3, ColumnSpan=1,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=927
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=160, IsDisplayed='Y', XPosition=4, ColumnSpan=1,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5707
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=170, ColumnSpan=1,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=928
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:55 PM COT
|
||||
UPDATE AD_Field SET SeqNo=240, ColumnSpan=1,Updated=TO_DATE('2014-01-25 13:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=929
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:56 PM COT
|
||||
UPDATE AD_Field SET SeqNo=250, IsDisplayed='Y', XPosition=4, ColumnSpan=1,Updated=TO_DATE('2014-01-25 13:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11998
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:56 PM COT
|
||||
UPDATE AD_Field SET SeqNo=260, IsDisplayed='Y', XPosition=6, ColumnSpan=1,Updated=TO_DATE('2014-01-25 13:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=271
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:56 PM COT
|
||||
UPDATE AD_Field SET SeqNo=270,Updated=TO_DATE('2014-01-25 13:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11266
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:56 PM COT
|
||||
UPDATE AD_Field SET SeqNo=280,Updated=TO_DATE('2014-01-25 13:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1548
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:56 PM COT
|
||||
UPDATE AD_Field SET SeqNo=290,Updated=TO_DATE('2014-01-25 13:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1550
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:56 PM COT
|
||||
UPDATE AD_Field SET SeqNo=300,Updated=TO_DATE('2014-01-25 13:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1549
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:56 PM COT
|
||||
UPDATE AD_Field SET SeqNo=310,Updated=TO_DATE('2014-01-25 13:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4956
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 1:54:56 PM COT
|
||||
UPDATE AD_Field SET SeqNo=320, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2014-01-25 13:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201811
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401251332_IDEMPIERE-1353.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jan 25, 2014 2:39:55 PM COT
|
||||
-- IDEMPIERE-452 Control dates
|
||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutEngine.checkPeriodOpen',Updated=TO_DATE('2014-01-25 14:39:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3552
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 2:40:28 PM COT
|
||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutEngine.checkPeriodOpen',Updated=TO_DATE('2014-01-25 14:40:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3579
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 2:40:49 PM COT
|
||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutEngine.checkPeriodOpen',Updated=TO_DATE('2014-01-25 14:40:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3608
|
||||
;
|
||||
|
||||
-- Jan 25, 2014 2:41:13 PM COT
|
||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutEngine.checkPeriodOpen',Updated=TO_DATE('2014-01-25 14:41:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=14527
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401251441_IDEMPIERE-452.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,448 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jul 6, 2013 9:37:51 AM GMT
|
||||
-- http://jira.idempiere.com/browse/IDEMPIERE-1045
|
||||
INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,IsActive,AD_Org_ID,CreatedBy,Updated,UpdatedBy,Created,AD_Client_ID,EntityType) VALUES ('N','N','N','4',0,200089,'N','N','N','L','7b655e17-ab9d-4aa5-ad0b-ccf466542bbd','Y','Y','AD_InfoRelated','InfoRelated','Y',0,0,TO_DATE('2013-07-06 09:37:53','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:37:53','YYYY-MM-DD HH24:MI:SS'),0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:37:59 AM GMT
|
||||
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,Created,CreatedBy,UpdatedBy,Updated,IsActive,StartNo,AD_Client_ID) VALUES ('N',200000,'Y',1000000,'N','Y',200087,'cf86882c-aa4f-4866-99f2-06fb2cf588fe','Table AD_InfoRelated','AD_InfoRelated',1,0,TO_DATE('2013-07-06 09:37:58','YYYY-MM-DD HH24:MI:SS'),0,0,TO_DATE('2013-07-06 09:37:58','YYYY-MM-DD HH24:MI:SS'),'Y',1000000,0)
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:00 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_InfoRelated_ID',202556,'InfoRelated','InfoRelated','690dfc35-2577-44d3-8a92-74ed78756846',TO_DATE('2013-07-06 09:37:59','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:37:59','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210597,'Y','N','N','N',10,'N',13,'Y',202556,'N','Y','8937e3af-8c97-4b1c-9292-ebd9ac89cc53','N','AD_InfoRelated_ID','InfoRelated','N',TO_DATE('2013-07-06 09:38:00','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:00','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
CREATE TABLE AD_InfoRelated (AD_InfoRelated_ID NUMBER(10) NOT NULL, CONSTRAINT AD_InfoRelated_Key PRIMARY KEY (AD_InfoRelated_ID))
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210598,'Y','N','N','N',10,'N',19,129,'N',102,'N','Y','60f193f8-6553-4b5b-bd81-76e3f31b2ef6','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',TO_DATE('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:01 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD AD_Client_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:02 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210599,'Y','N','N','N',10,'N',19,'N',113,'N','Y','afeec9a6-1eb1-4790-802d-864ea00dc862','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',TO_DATE('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:01','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:02 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD AD_Org_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210600,'Y','N','N','N',1,'N',20,'N',348,'N','Y','5acbe692-1a57-49c8-9885-e6cb7e6166ee','Y','IsActive','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Active','N',TO_DATE('2013-07-06 09:38:02','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:02','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210601,'Y','N','N','N',29,'N',16,'N',245,'N','Y','a4213f78-0c68-4765-a984-ba67359bbcc9','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',TO_DATE('2013-07-06 09:38:03','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:03','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:03 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Created DATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:04 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210602,110,'Y','N','N','N',10,'N',18,'N',246,'N','Y','c0244ff1-7b07-4ef6-bd60-41802df6833f','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',TO_DATE('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:04 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD CreatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:05 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210603,'Y','N','N','N',29,'N',16,'N',607,'N','Y','5f2d2eeb-6b00-47f0-9a27-90e48d2c9f05','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',TO_DATE('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:04','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:05 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Updated DATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210604,110,'Y','N','N','N',10,'N',18,'N',608,'N','Y','983cde5c-62b3-4ea0-af96-28714415b967','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',TO_DATE('2013-07-06 09:38:05','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:05','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD UpdatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210605,'Y','N','Y',1,'N',60,'Y',10,'N',469,'N','Y','130edb93-0a58-4895-aba9-50c64dabaeaa','Y','Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Name','Y',TO_DATE('2013-07-06 09:38:06','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:06','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:06 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Name NVARCHAR2(60) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:10 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210606,'N','N','N','N',255,'Y',10,'N',275,'N','Y','aaca8f95-6d0c-4d6c-b2fa-d9cfd321a1af','Y','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',TO_DATE('2013-07-06 09:38:07','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:07','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:10 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Description NVARCHAR2(255) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:11 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210607,'N','N','N','N',2000,'N',14,'N',326,'N','Y','f13e2849-6371-42ff-8dad-12fb532c58f4','Y','Help','Comment or Hint','The Help field contains a hint, comment or help about the use of this item.','Comment/Help','Y',TO_DATE('2013-07-06 09:38:10','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:10','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:11 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD Help NVARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210608,'Y','N','N','N',10,'N',19,'N',3068,'N','Y','3c3b6796-836b-4f27-a432-524bd8d636d9','Y','AD_InfoWindow_ID','Info and search/select Window','The Info window is used to search and select records as well as display information relevant to the selection.','Info Window','Y',TO_DATE('2013-07-06 09:38:11','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:11','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD AD_InfoWindow_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210609,'Y','N','N','N',10,'N',11,'N',566,'N','Y','68b51a70-ac68-4f53-8a98-171e0e4e7509','Y','SeqNo','Method of ordering records; lowest number comes first','The Sequence indicates the order of records','Sequence','Y',TO_DATE('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:12 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD SeqNo NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:13 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('RelatedInfo_ID',202557,'RelatedInfo_ID','RelatedInfo_ID','417c2969-095a-4137-b250-ad3b7dc34d55',TO_DATE('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:12','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:14 AM GMT
|
||||
INSERT INTO AD_Reference (AD_Reference_ID,Name,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy,AD_Client_ID,EntityType) VALUES (200071,'AD_RelatedInfoWindow','84852b3d-373d-4d0c-9147-7be7923e93e4','N','T',0,0,TO_DATE('2013-07-06 09:38:13','YYYY-MM-DD HH24:MI:SS'),'Y',TO_DATE('2013-07-06 09:38:13','YYYY-MM-DD HH24:MI:SS'),0,0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:14 AM GMT
|
||||
INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,AD_Window_ID,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,UpdatedBy,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('N',200071,15744,15752,385,895,'3a863968-8b44-4b47-b0f1-50cca1b65ae0',0,TO_DATE('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:15 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210610,200071,'Y','N','N','N',10,'N',18,'N',202557,'N','Y','97a4dff9-3272-42c9-9bf2-cf0d14abc16c','Y','RelatedInfo_ID','0','RelatedInfo_ID','Y',TO_DATE('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:14','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:15 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD RelatedInfo_ID NUMBER(10) DEFAULT 0 NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:25 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('RelatedColumn_ID',202558,'RelatedColumn_ID','RelatedColumn_ID','fc1be9d0-d099-422a-9192-bd0412b566f6',TO_DATE('2013-07-06 09:38:15','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:15','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:25 AM GMT
|
||||
INSERT INTO AD_Reference (AD_Reference_ID,Name,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy,AD_Client_ID,EntityType) VALUES (200072,'AD_LinkInfowindow','584ab9bd-2a90-4d98-bc6b-fdff8c346a3e','N','T',0,0,TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),'Y',TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),0,0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:25 AM GMT
|
||||
INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Reference_ID,AD_Key,AD_Display,AD_Window_ID,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,UpdatedBy,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('N',200072,15773,15781,385,897,'73c98762-5d7a-46c6-918f-4166d50e606a',0,TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:26 AM GMT
|
||||
INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,AD_Org_ID,IsActive,AD_Client_ID,EntityType) VALUES ('AD_InfoColumn.AD_InfoWindow_ID=@RelatedInfo_ID@',200046,'AD_InfoColumn(related window columns)','S','5372d944-b877-4b0c-9c02-0a25c8cce42f',0,0,TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:27 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210611,200072,'Y','N','N','N',10,'N',18,200046,'N',202558,'N','Y','7318afe5-0812-46ec-a6d3-c0c2ac9f997b','Y','RelatedColumn_ID','0','RelatedColumn_ID','Y',TO_DATE('2013-07-06 09:38:26','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:26','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:27 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD RelatedColumn_ID NUMBER(10) DEFAULT 0 NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_InfoRelated_UU',202559,'InfoRelated','InfoRelated','a5b2eba1-cde4-4e88-bb39-ee4087a75833',TO_DATE('2013-07-06 09:38:27','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-06 09:38:27','YYYY-MM-DD HH24:MI:SS'),0,0,0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID,EntityType) VALUES ('Y',0,200089,210612,'N','N','N',0,'N',36,'N',10,'N',202559,'N','Y','59776e05-c2ee-4ad7-98cb-7816f6b93465','N','AD_InfoRelated_UU','InfoRelated','N',TO_DATE('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',TO_DATE('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,'N','N','N',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD AD_InfoRelated_UU NVARCHAR2(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:28 AM GMT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT AD_InfoRelated_UU_idx UNIQUE (AD_InfoRelated_UU)
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:29 AM GMT
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,AD_Table_ID,HasTree,AD_Column_ID,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,Name,AD_Tab_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('N','N','N',385,50,'N','N',200089,'N',15744,'N','N','Y','N',1,'773e0bd5-8a1a-4697-9a6a-edb8c380d24d','Related Info Window',200100,0,TO_DATE('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:30 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,36,'N','N',210612,0,'Y',202258,'N','InfoRelated','041af0da-c6fa-4002-9856-7bb72efc2310','N','N',0,0,TO_DATE('2013-07-06 09:38:29','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:29','YYYY-MM-DD HH24:MI:SS'),'Y','Y',1,'N',0,1,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:31 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210598,10,'Y',202259,'Y','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client/Tenant for this installation.','Client','2e94611f-d943-493d-816e-e69a7ecb2a64','Y','N',0,0,TO_DATE('2013-07-06 09:38:30','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:30','YYYY-MM-DD HH24:MI:SS'),'Y',10,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:31 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'Y','N',210599,20,'Y',202260,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organizational entity within client','Organization','31c6d0ac-21a2-4d6e-bca5-e88f577d4581','Y','N',0,0,TO_DATE('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),'Y',20,'Y',4,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:32 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,1,'N','N',210600,30,'Y',202261,'N','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','The record is active in the system','Active','ca430fd2-c224-40b6-81d8-48b8260913cb','Y','N',0,0,TO_DATE('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:31','YYYY-MM-DD HH24:MI:SS'),'Y',30,'Y',2,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:36 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210608,40,'Y',202262,'N','The Info window is used to search and select records as well as display information relevant to the selection.','Info and search/select Window','Info Window','773101d1-adc8-4a50-a46e-c0256a61d0e6','Y','N',0,0,TO_DATE('2013-07-06 09:38:32','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:32','YYYY-MM-DD HH24:MI:SS'),'Y',40,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:36 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,60,'N','N',210605,50,'Y',202263,'N','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Alphanumeric identifier of the entity','Name','06b5cc6d-bb15-4d10-bb86-e3fc38797f7b','Y','N',0,0,TO_DATE('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),'Y',50,'Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:37 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,255,'N','N',210606,60,'Y',202264,'N','A description is limited to 255 characters.','Optional short description of the record','Description','9e56c072-3e01-4f88-91ba-03cf0b163fae','Y','N',0,0,TO_DATE('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:36','YYYY-MM-DD HH24:MI:SS'),'Y',60,'Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:38 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (3,'N',200100,2000,'N','N',210607,70,'Y',202265,'N','The Help field contains a hint, comment or help about the use of this item.','Comment or Hint','Comment/Help','581926dc-f5e1-46e9-8665-3f789295a63d','Y','N',0,0,TO_DATE('2013-07-06 09:38:37','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:37','YYYY-MM-DD HH24:MI:SS'),'Y',70,'Y',1,'N',0,5,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:42 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210610,80,'Y',202266,'N','RelatedInfo_ID','62744643-45df-4d01-bd95-5214c5f11c1f','Y','N',0,0,TO_DATE('2013-07-06 09:38:38','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:38','YYYY-MM-DD HH24:MI:SS'),'Y',80,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:42 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'Y','N',210611,90,'Y',202267,'N','RelatedColumn_ID','40fc94fc-bd49-4bca-b9c1-c28e15b399fa','Y','N',0,0,TO_DATE('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),'Y',90,'Y',4,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:43 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,IsAllowCopy,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,SeqNoGrid,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210609,100,'Y',202268,'N','The Sequence indicates the order of records','Method of ordering records; lowest number comes first','Sequence','170ca2d8-b832-4a60-ba2c-e580f2940fd3','Y','N','N',0,0,TO_DATE('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:42','YYYY-MM-DD HH24:MI:SS'),'Y',100,'Y',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jul 6, 2013 9:38:44 AM GMT
|
||||
INSERT INTO AD_Field (NumLines,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,EntityType) VALUES (1,'N',200100,10,'N','N',210597,'Y',202269,'N','InfoRelated','0f22c3e7-2e28-4e9c-a923-57a0678a5d42','N','N',0,0,TO_DATE('2013-07-06 09:38:43','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-07-06 09:38:43','YYYY-MM-DD HH24:MI:SS'),'Y','N',1,'N',0,2,'D')
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:07 PM COT
|
||||
-- IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane
|
||||
UPDATE AD_Column SET FKConstraintName='ADClient_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210598
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:07 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT ADClient_ADInfoRelated FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADOrg_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210599
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT ADOrg_ADInfoRelated FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='CreatedBy_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210602
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT CreatedBy_ADInfoRelated FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='UpdatedBy_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210604
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT UpdatedBy_ADInfoRelated FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADInfoWindow_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210608
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT ADInfoWindow_ADInfoRelated FOREIGN KEY (AD_InfoWindow_ID) REFERENCES ad_infowindow(ad_infowindow_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='RelatedInfo_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210610
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT RelatedInfo_ADInfoRelated FOREIGN KEY (RelatedInfo_ID) REFERENCES ad_infowindow(ad_infowindow_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='RelatedColumn_ADInfoRelated', FKConstraintType='N',Updated=TO_DATE('2014-01-26 14:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210611
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:08 PM COT
|
||||
ALTER TABLE AD_InfoRelated ADD CONSTRAINT RelatedColumn_ADInfoRelated FOREIGN KEY (RelatedColumn_ID) REFERENCES ad_infocolumn(ad_infocolumn_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 2:51:44 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='adprocess_adinfowindow',Updated=TO_DATE('2014-01-26 14:51:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210944
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
-- IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202259
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202260
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202262
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=202258
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=202263
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=202268
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=202266
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=202267
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=202264
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=202265
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:06:03 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=202261
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:10 PM COT
|
||||
UPDATE AD_Column SET Name='AD_InfoRelated_UU',Updated=TO_DATE('2014-01-26 15:07:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210612
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Element SET Name='AD_InfoRelated_UU', PrintName='AD_InfoRelated_UU',Updated=TO_DATE('2014-01-26 15:07:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202559
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Column SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202559
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL, AD_Element_ID=202559 WHERE UPPER(ColumnName)='AD_INFORELATED_UU' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202559 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_InfoColumn SET ColumnName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Element_ID=202559 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_Field SET Name='AD_InfoRelated_UU', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202559) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:27 PM COT
|
||||
UPDATE AD_PrintFormatItem SET PrintName='AD_InfoRelated_UU', Name='AD_InfoRelated_UU' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202559)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Element SET Name='Related Info Column', PrintName='Related Info Column',Updated=TO_DATE('2014-01-26 15:07:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202558
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Column SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Element_ID=202558
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL, AD_Element_ID=202558 WHERE UPPER(ColumnName)='RELATEDCOLUMN_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Element_ID=202558 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_InfoColumn SET ColumnName='RelatedColumn_ID', Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Element_ID=202558 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_Field SET Name='Related Info Column', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202558) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:42 PM COT
|
||||
UPDATE AD_PrintFormatItem SET PrintName='Related Info Column', Name='Related Info Column' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202558)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Element SET Name='Related Info Window', PrintName='Related Info Window',Updated=TO_DATE('2014-01-26 15:07:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202557
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Column SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Element_ID=202557
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL, AD_Element_ID=202557 WHERE UPPER(ColumnName)='RELATEDINFO_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Process_Para SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Element_ID=202557 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_InfoColumn SET ColumnName='RelatedInfo_ID', Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Element_ID=202557 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_Field SET Name='Related Info Window', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202557) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:07:57 PM COT
|
||||
UPDATE AD_PrintFormatItem SET PrintName='Related Info Window', Name='Related Info Window' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202557)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 3:08:42 PM COT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,Created,AD_Client_ID,AD_Org_ID) VALUES ('I','Related Information',200253,'D','ffd7193a-7404-450c-82f4-dad988da87b1','Related Information','Y',TO_DATE('2014-01-26 15:08:41','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2014-01-26 15:08:41','YYYY-MM-DD HH24:MI:SS'),0,0)
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 4:57:10 PM COT
|
||||
-- IDEMPIERE-1045 Improve info Window implementation to enable the definition of related info which will be rendered as tabs at the bottom of the content Pane
|
||||
UPDATE AD_Tab SET IsSingleRow='Y',Updated=TO_DATE('2014-01-26 16:57:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200100
|
||||
;
|
||||
|
||||
-- Jan 26, 2014 4:57:46 PM COT
|
||||
UPDATE AD_Table SET AD_Window_ID=385, IsChangeLog='Y',Updated=TO_DATE('2014-01-26 16:57:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200089
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401261340_IDEMPIERE-1045.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jan 27, 2014 11:46:20 AM MYT
|
||||
-- IDEMPIERE-1461 Zoom Condition doesn't work on empty fields
|
||||
INSERT INTO AD_ZoomCondition (AD_Client_ID,AD_Org_ID,AD_Table_ID,AD_Window_ID,AD_ZoomCondition_ID,AD_ZoomCondition_UU,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy,WhereClause,ZoomLogic) VALUES (0,0,259,143,200005,'2f15e1d6-73d3-417b-abc9-ef38c730cc4e',TO_DATE('2014-01-27 11:46:18','YYYY-MM-DD HH24:MI:SS'),100,'Y','Sales Order',10,TO_DATE('2014-01-27 11:46:18','YYYY-MM-DD HH24:MI:SS'),100,'''SOO'' = (SELECT DocBaseType FROM C_DocType WHERE C_DocType_ID=C_Order.C_DocTypeTarget_ID AND AD_Client_ID = C_Order.AD_Client_ID)','@IsSOTrx@=Y')
|
||||
;
|
||||
|
||||
-- Jan 27, 2014 11:47:09 AM MYT
|
||||
INSERT INTO AD_ZoomCondition (AD_Client_ID,AD_Org_ID,AD_Table_ID,AD_Window_ID,AD_ZoomCondition_ID,AD_ZoomCondition_UU,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy,WhereClause,ZoomLogic) VALUES (0,0,259,181,200006,'5b6bd15a-f074-47a0-822c-3b8a2ea39239',TO_DATE('2014-01-27 11:47:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','Purchase Order',20,TO_DATE('2014-01-27 11:47:07','YYYY-MM-DD HH24:MI:SS'),100,'''POO'' = (SELECT DocBaseType FROM C_DocType WHERE C_DocType_ID=C_Order.C_DocTypeTarget_ID AND AD_Client_ID = C_Order.AD_Client_ID)','@IsSOTrx@=N')
|
||||
;
|
||||
|
||||
-- Jan 27, 2014 11:53:11 AM MYT
|
||||
UPDATE AD_Field SET DefaultValue='N',Updated=TO_DATE('2014-01-27 11:53:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3499
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201401270442_IDEMPIERE-1461.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Mar 12, 2014 4:51:42 PM COT
|
||||
-- IDEMPIERE-1649 set tab default
|
||||
UPDATE AD_Column SET DefaultValue='Y',Updated=TO_DATE('2014-03-12 16:51:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=166
|
||||
;
|
||||
|
||||
-- Mar 12, 2014 4:52:00 PM COT
|
||||
ALTER TABLE AD_Tab MODIFY IsSingleRow CHAR(1) DEFAULT 'Y'
|
||||
;
|
||||
|
||||
-- Mar 12, 2014 4:52:02 PM COT
|
||||
UPDATE AD_Tab SET IsSingleRow='Y' WHERE IsSingleRow IS NULL
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201403121652_IDEMPIERE-1649.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,250 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Mar 20, 2014 2:05:38 PM CET
|
||||
-- IDEMPIERE-1828
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Element_UU,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,202671,'b640b542-2f7a-4885-a212-5c60138d9480',0,'EMailFrom',TO_DATE('2014-03-20 14:05:38','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','EMail sent from','EMail sent from',TO_DATE('2014-03-20 14:05:38','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:06:01 PM CET
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Element_UU,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,202672,'9c423548-1e6b-4899-a179-1304f30adeff',0,'RecipientTo',TO_DATE('2014-03-20 14:06:01','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','To','To',TO_DATE('2014-03-20 14:06:01','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:06:08 PM CET
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Element_UU,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,202673,'6bc347b6-83fd-49e5-b34f-949f7e480baf',0,'RecipientCc',TO_DATE('2014-03-20 14:06:08','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Cc','Cc',TO_DATE('2014-03-20 14:06:08','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:06:18 PM CET
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Element_UU,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,202674,'e79d13ad-54af-4384-9b11-dc86abd1db21',0,'RecipientBcc',TO_DATE('2014-03-20 14:06:18','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Bcc','Bcc',TO_DATE('2014-03-20 14:06:18','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:06:26 PM CET
|
||||
UPDATE AD_Element SET EntityType='D',Updated=TO_DATE('2014-03-20 14:06:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202673
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:08:07 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FKConstraintType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210985,'63925720-89dc-4245-86e6-770564e34147',202671,0,10,782,'EMailFrom',TO_DATE('2014-03-20 14:08:07','YYYY-MM-DD HH24:MI:SS'),100,'D','N',255,'Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','Y','EMail sent from',0,0,TO_DATE('2014-03-20 14:08:07','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:08:13 PM CET
|
||||
ALTER TABLE AD_UserMail ADD EMailFrom VARCHAR2(255) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:08:46 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FKConstraintType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210986,'6dd996b8-5e29-4bef-89b3-694bd8c1c9d6',202674,0,10,782,'RecipientBcc',TO_DATE('2014-03-20 14:08:45','YYYY-MM-DD HH24:MI:SS'),100,'D','N',2000,'Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','Y','Bcc',0,0,TO_DATE('2014-03-20 14:08:45','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:08:49 PM CET
|
||||
ALTER TABLE AD_UserMail ADD RecipientBcc VARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:09:05 PM CET
|
||||
UPDATE AD_Column SET AD_Element_ID=202673, ColumnName='RecipientCc', Description=NULL, Help=NULL, Name='Cc',Updated=TO_DATE('2014-03-20 14:09:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210986
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:09:08 PM CET
|
||||
ALTER TABLE AD_UserMail ADD RecipientCc VARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:09:23 PM CET
|
||||
UPDATE AD_Column SET AD_Element_ID=202672, ColumnName='RecipientTo', Description=NULL, EntityType='D', Help=NULL, Name='To',Updated=TO_DATE('2014-03-20 14:09:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210986
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:09:26 PM CET
|
||||
ALTER TABLE AD_UserMail ADD RecipientTo VARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:10:39 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FKConstraintType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210987,'b9fd6d34-671a-46cd-8abc-589c0eb256d5',202673,0,10,782,'RecipientCc',TO_DATE('2014-03-20 14:10:38','YYYY-MM-DD HH24:MI:SS'),100,'D','N',2000,'Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','Y','Cc',0,0,TO_DATE('2014-03-20 14:10:38','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:10:41 PM CET
|
||||
ALTER TABLE AD_UserMail MODIFY RecipientCc VARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:10:57 PM CET
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FKConstraintType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210988,'c9bb532c-3509-4791-a023-55fd661e348c',202674,0,10,782,'RecipientBcc',TO_DATE('2014-03-20 14:10:56','YYYY-MM-DD HH24:MI:SS'),100,'D','N',2000,'Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','Y','Bcc',0,0,TO_DATE('2014-03-20 14:10:56','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:11:00 PM CET
|
||||
ALTER TABLE AD_UserMail MODIFY RecipientBcc VARCHAR2(2000) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:12:54 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,60533,202691,'76d0d102-0b78-44e9-a041-b38747b69ef0',0,709,2,TO_DATE('2014-03-20 14:12:54','YYYY-MM-DD HH24:MI:SS'),100,36,'D','Y','Y','N','N','N','N','N','N','N','AD_UserMail_UU',120,TO_DATE('2014-03-20 14:12:54','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:12:55 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210985,202692,'dd367b6d-eb5e-44ab-a317-9b73987f4b60',0,709,5,TO_DATE('2014-03-20 14:12:55','YYYY-MM-DD HH24:MI:SS'),100,255,'D','Y','Y','Y','N','N','N','N','N','EMail sent from',130,TO_DATE('2014-03-20 14:12:55','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:12:56 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210986,202693,'3aeedc4a-4272-412d-a971-2dc6e0fd7fd1',0,709,5,TO_DATE('2014-03-20 14:12:55','YYYY-MM-DD HH24:MI:SS'),100,2000,'D','Y','Y','Y','N','N','N','N','N','To',140,TO_DATE('2014-03-20 14:12:55','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:12:56 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210987,202694,'70bae5b3-9321-44b9-b645-a3d1533d50c0',0,709,5,TO_DATE('2014-03-20 14:12:56','YYYY-MM-DD HH24:MI:SS'),100,2000,'D','Y','Y','Y','N','N','N','N','N','Cc',150,TO_DATE('2014-03-20 14:12:56','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:12:57 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210988,202695,'e41d0273-fcb0-4784-a83b-ca1177532058',0,709,5,TO_DATE('2014-03-20 14:12:56','YYYY-MM-DD HH24:MI:SS'),100,2000,'D','Y','Y','Y','N','N','N','N','N','Bcc',160,TO_DATE('2014-03-20 14:12:56','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:13:40 PM CET
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=80, XPosition=1,Updated=TO_DATE('2014-03-20 14:13:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202692
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:13:40 PM CET
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, XPosition=1,Updated=TO_DATE('2014-03-20 14:13:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202693
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:13:40 PM CET
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100, XPosition=1,Updated=TO_DATE('2014-03-20 14:13:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202694
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:13:41 PM CET
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, XPosition=1,Updated=TO_DATE('2014-03-20 14:13:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202695
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:13:41 PM CET
|
||||
UPDATE AD_Field SET SeqNo=120,Updated=TO_DATE('2014-03-20 14:13:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12359
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:13:41 PM CET
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_DATE('2014-03-20 14:13:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12358
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:13:41 PM CET
|
||||
UPDATE AD_Field SET SeqNo=140,Updated=TO_DATE('2014-03-20 14:13:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11542
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:13:41 PM CET
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2014-03-20 14:13:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11541
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:13:41 PM CET
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-03-20 14:13:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202691
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:13 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=202692
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:13 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=202693
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:13 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=202694
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:13 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=202695
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:13 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=12359
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:13 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=12358
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:13 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=11542
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:13 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=11541
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:59 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,60533,202696,'ec3f809c-2519-4d75-b1c8-5e553f7fec10',0,53283,2,TO_DATE('2014-03-20 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,36,'D','Y','Y','N','N','N','N','N','N','N','AD_UserMail_UU',120,TO_DATE('2014-03-20 14:14:58','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:14:59 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210985,202697,'6596a658-1014-4f79-8420-099870dfd854',0,53283,5,TO_DATE('2014-03-20 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,255,'D','Y','Y','Y','N','N','N','N','N','EMail sent from',130,TO_DATE('2014-03-20 14:14:59','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:00 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210986,202698,'120d8134-50a7-4fa8-ab29-7a23f6f324e9',0,53283,5,TO_DATE('2014-03-20 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,2000,'D','Y','Y','Y','N','N','N','N','N','To',140,TO_DATE('2014-03-20 14:14:59','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:00 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210987,202699,'48af28b6-9a61-4655-addd-9479206028ae',0,53283,5,TO_DATE('2014-03-20 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,2000,'D','Y','Y','Y','N','N','N','N','N','Cc',150,TO_DATE('2014-03-20 14:15:00','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:01 PM CET
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210988,202700,'1c8c16bf-f451-453e-9a85-1b8651733ddf',0,53283,5,TO_DATE('2014-03-20 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,2000,'D','Y','Y','Y','N','N','N','N','N','Bcc',160,TO_DATE('2014-03-20 14:15:00','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:55 PM CET
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=80, XPosition=1,Updated=TO_DATE('2014-03-20 14:15:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202697
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:55 PM CET
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, XPosition=1,Updated=TO_DATE('2014-03-20 14:15:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202698
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:55 PM CET
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100, XPosition=1,Updated=TO_DATE('2014-03-20 14:15:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202699
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:55 PM CET
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, XPosition=1,Updated=TO_DATE('2014-03-20 14:15:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202700
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:55 PM CET
|
||||
UPDATE AD_Field SET SeqNo=120,Updated=TO_DATE('2014-03-20 14:15:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58024
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:55 PM CET
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_DATE('2014-03-20 14:15:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58025
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:55 PM CET
|
||||
UPDATE AD_Field SET SeqNo=140,Updated=TO_DATE('2014-03-20 14:15:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58026
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:55 PM CET
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2014-03-20 14:15:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58027
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:15:55 PM CET
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-03-20 14:15:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202696
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:16:28 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=202697
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:16:28 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=202698
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:16:28 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=202699
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:16:28 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=202700
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:16:28 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=58024
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:16:28 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=58025
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:16:28 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=58026
|
||||
;
|
||||
|
||||
-- Mar 20, 2014 2:16:28 PM CET
|
||||
UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=58027
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201403201438_IDEMPIERE-1828.sql') FROM dual
|
||||
;
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,184 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Mar 28, 2014 6:34:26 PM SGT
|
||||
-- Ticket #1003856: Run report as a background job
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsRunAsJob',202694,'Run as Job','Run as Job','c52c9e5a-da3e-401d-8f52-e58f557a56f2',TO_DATE('2014-03-28 18:34:24','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-03-28 18:34:24','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:35:05 PM SGT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,EntityType) VALUES (0,'N',0,211199,'Y','N','N',0,'N',1,'N','N','N','Y','e67be641-2f1b-4c6b-9c8a-a6788940a686','Y','IsRunAsJob','N','Run as Job','Y',TO_DATE('2014-03-28 18:35:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2014-03-28 18:35:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'N','N','N',202694,20,282,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:38:03 PM SGT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsJobProcessing',202695,'Job Processing','Job Processing','54265662-ebe2-4521-ba7e-8a9f9a96bcab',TO_DATE('2014-03-28 18:38:02','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-03-28 18:38:02','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:38:22 PM SGT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Table_ID,EntityType) VALUES (0,'N',0,211200,'Y','N','N',0,'N',1,'N','N','N','Y','922b7724-599a-49c8-a053-0f8f4b8e2156','Y','IsJobProcessing','N','Job Processing','Y',TO_DATE('2014-03-28 18:38:21','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2014-03-28 18:38:21','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'N','N','N',202695,20,282,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:38:42 PM SGT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,EntityType) VALUES (0,'N',0,211201,'N','N','N',0,'N',2,'N','N','N','Y','5c07ac2d-8342-4e86-ae06-5109f872a16b','Y','NotificationType','Type of Notifications','Emails or Notification sent out for Request Updates, etc.','Notification Type','Y',TO_DATE('2014-03-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2014-03-28 18:38:41','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'N','N',2755,17,200026,282,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:43:27 PM SGT
|
||||
ALTER TABLE AD_PInstance ADD IsRunAsJob CHAR(1) DEFAULT 'N'
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:43:44 PM SGT
|
||||
ALTER TABLE AD_PInstance ADD IsJobProcessing CHAR(1) DEFAULT 'N'
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:43:51 PM SGT
|
||||
ALTER TABLE AD_PInstance ADD NotificationType VARCHAR2(2) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:44:35 PM SGT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan,AD_Column_ID) VALUES ('N',663,36,'N','N',110,'Y',202844,'N','D','AD_PInstance_UU','3540b3cc-efe6-4509-bafc-a15c59c9d7f8','N','N',100,0,TO_DATE('2014-03-28 18:44:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-28 18:44:34','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2,60451)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:44:36 PM SGT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID) VALUES ('N',663,1,'N','N',120,'Y',202845,'N','D','Run as Job','72ecc44d-a61b-44b9-a94a-14bd270dbf22','Y','N',100,0,TO_DATE('2014-03-28 18:44:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-28 18:44:35','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2,211199)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:44:37 PM SGT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID) VALUES ('N',663,1,'N','N',130,'Y',202846,'N','D','Job Processing','96118891-6592-4f41-8ba0-05057e17d60e','Y','N',100,0,TO_DATE('2014-03-28 18:44:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-28 18:44:36','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2,211200)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:44:38 PM SGT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,AD_Client_ID,ColumnSpan,AD_Column_ID) VALUES ('N',663,2,'N','N',140,'Y',202847,'N','Emails or Notification sent out for Request Updates, etc.','D','Type of Notifications','Notification Type','d76699c8-2abe-4f62-9e10-6e10fd5dba20','Y','N',100,0,TO_DATE('2014-03-28 18:44:37','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-28 18:44:37','YYYY-MM-DD HH24:MI:SS'),'Y',0,2,211201)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:45:04 PM SGT
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=202844
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:45:04 PM SGT
|
||||
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=202845
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:45:04 PM SGT
|
||||
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=202847
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:45:11 PM SGT
|
||||
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=202845
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:45:11 PM SGT
|
||||
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=202847
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:45:11 PM SGT
|
||||
UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=202846
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:46:01 PM SGT
|
||||
INSERT INTO AD_FieldGroup (FieldGroupType,EntityType,IsCollapsedByDefault,Name,AD_FieldGroup_UU,AD_FieldGroup_ID,Created,CreatedBy,Updated,AD_Org_ID,UpdatedBy,IsActive,AD_Client_ID) VALUES ('C','D','N','Background Job','3be13370-89e4-42b3-8220-370ce497466a',200018,TO_DATE('2014-03-28 18:46:00','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-28 18:46:00','YYYY-MM-DD HH24:MI:SS'),0,100,'Y',0)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:46:18 PM SGT
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200018,Updated=TO_DATE('2014-03-28 18:46:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202847
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:46:22 PM SGT
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200018,Updated=TO_DATE('2014-03-28 18:46:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202845
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:46:28 PM SGT
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200018,Updated=TO_DATE('2014-03-28 18:46:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202846
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:46:44 PM SGT
|
||||
UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_DATE('2014-03-28 18:46:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202847
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:49:07 PM SGT
|
||||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,ConfigurationLevel,Value,AD_SysConfig_UU,Updated,Created,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name,AD_Client_ID,EntityType) VALUES (200047,'C','Y','feb88039-2fe8-47e5-a7be-c3a634674f0b',TO_DATE('2014-03-28 18:49:06','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-03-28 18:49:06','YYYY-MM-DD HH24:MI:SS'),0,100,'Y',100,'BACKGROUND_JOB_ALLOWED',0,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:49:31 PM SGT
|
||||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,ConfigurationLevel,Value,AD_SysConfig_UU,Updated,Created,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name,AD_Client_ID,EntityType) VALUES (200048,'C','N','f2fd6f9b-d8bb-4ade-9857-78ba68951776',TO_DATE('2014-03-28 18:49:30','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-03-28 18:49:30','YYYY-MM-DD HH24:MI:SS'),0,100,'Y',100,'BACKGROUND_JOB_BY_DEFAULT',0,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:50:36 PM SGT
|
||||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,ConfigurationLevel,Value,AD_SysConfig_UU,Updated,Created,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name,AD_Client_ID,EntityType) VALUES (200049,'S','20','0a24332e-a83a-465a-903f-6f3d7caea306',TO_DATE('2014-03-28 18:50:35','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-03-28 18:50:35','YYYY-MM-DD HH24:MI:SS'),0,100,'Y',100,'BACKGROUND_JOB_MAX_IN_SYSTEM',0,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:51:09 PM SGT
|
||||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,ConfigurationLevel,Value,AD_SysConfig_UU,Updated,Created,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name,AD_Client_ID,EntityType) VALUES (200050,'C','10','d2d149e8-e642-4691-8ed3-8a875ee9b1ed',TO_DATE('2014-03-28 18:51:08','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-03-28 18:51:08','YYYY-MM-DD HH24:MI:SS'),0,100,'Y',100,'BACKGROUND_JOB_MAX_PER_CLIENT',0,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:52:26 PM SGT
|
||||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,ConfigurationLevel,Value,AD_SysConfig_UU,Updated,Created,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name,AD_Client_ID,EntityType) VALUES (200051,'C','10','b0697150-68d7-4cfe-b103-f626db07793a',TO_DATE('2014-03-28 18:52:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-03-28 18:52:25','YYYY-MM-DD HH24:MI:SS'),0,100,'Y',100,'BACKGROUND_JOB_MAX_PER_USER',0,'D')
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:53:28 PM SGT
|
||||
UPDATE AD_SysConfig SET Value='5',Updated=TO_DATE('2014-03-28 18:53:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=200051
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:54:11 PM SGT
|
||||
UPDATE AD_SysConfig SET ConfigurationLevel='S',Updated=TO_DATE('2014-03-28 18:54:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=200050
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 6:58:22 PM SGT
|
||||
INSERT INTO PA_DashboardContent (Line,PA_DashboardContent_ID,ColumnNo,IsCollapsible,GoalDisplay,Description,Name,PA_DashboardContent_UU,IsShowInDashboard,AD_Org_ID,Created,CreatedBy,Updated,AD_Client_ID,UpdatedBy,IsActive,IsEmbedReportContent,IsCollapsedByDefault,AD_Role_ID,IsShowinLogin,ZulFilePath,AD_User_ID) VALUES (3.000000000000,200002,0,'Y','T','Running Jobs','Running Jobs','e3fb872e-ce14-4029-830b-2d21a556fc60','Y',0,TO_DATE('2014-03-28 18:58:20','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-28 18:58:20','YYYY-MM-DD HH24:MI:SS'),0,100,'Y','N','N',0,'Y','/zul/runningJobs.zul',0)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 7:57:19 PM SGT
|
||||
-- Ticket #1003856: Run report as a background job
|
||||
UPDATE AD_Column SET AD_Reference_Value_ID=344,Updated=TO_DATE('2014-03-28 19:57:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211201
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 7:58:52 PM SGT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,Created,EntityType,AD_Client_ID,AD_Org_ID) VALUES ('E','Exceed maximum number of running jobs allowed per user',200263,'82593e5f-86c6-45c5-bc38-4d9d5b2c8609','BackgroundJobExceedMaxPerUser','Y',TO_DATE('2014-03-28 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2014-03-28 19:58:49','YYYY-MM-DD HH24:MI:SS'),'D',0,0)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 7:59:12 PM SGT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,Created,EntityType,AD_Client_ID,AD_Org_ID) VALUES ('E','Exceed maximum number of running jobs allowed per client',200264,'fcebfad5-8283-498e-a835-b42bf0a0219a','BackgroundJobExceedMaxPerClient','Y',TO_DATE('2014-03-28 19:59:11','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2014-03-28 19:59:11','YYYY-MM-DD HH24:MI:SS'),'D',0,0)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 7:59:51 PM SGT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,Created,EntityType,AD_Client_ID,AD_Org_ID) VALUES ('E','Exceed maximum number of running jobs allowed in the system',200265,'405ea4c2-5a19-42fa-a5ff-f22601453f7f','BackgroundJobExceedMaxInSystem','Y',TO_DATE('2014-03-28 19:59:50','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2014-03-28 19:59:50','YYYY-MM-DD HH24:MI:SS'),'D',0,0)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 8:00:19 PM SGT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,Created,EntityType,AD_Client_ID,AD_Org_ID) VALUES ('I','The process has been scheduled as job. The status of the process will be sent as notification to owner of the process.',200266,'dc68fd3b-0ce8-416c-a286-37f192a90f7d','BackgroundJobScheduled','Y',TO_DATE('2014-03-28 20:00:18','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2014-03-28 20:00:18','YYYY-MM-DD HH24:MI:SS'),'D',0,0)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 9:03:01 PM SGT
|
||||
-- Ticket #1003856: Run report as a background job
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,Created,EntityType,AD_Client_ID,AD_Org_ID) VALUES ('I','Background Job',200267,'530545f2-f32c-4072-8bd1-d9ca65f31f65','BackgroundJob','Y',TO_DATE('2014-03-28 21:02:59','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2014-03-28 21:02:59','YYYY-MM-DD HH24:MI:SS'),'D',0,0)
|
||||
;
|
||||
|
||||
-- Mar 31, 2014 5:54:16 PM SGT
|
||||
-- Ticket #1003856: Run report as a background job
|
||||
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=202846
|
||||
;
|
||||
|
||||
-- Mar 31, 2014 5:54:16 PM SGT
|
||||
DELETE FROM AD_Field WHERE AD_Field_ID=202846
|
||||
;
|
||||
|
||||
-- Mar 31, 2014 5:54:49 PM SGT
|
||||
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=211200
|
||||
;
|
||||
|
||||
-- Mar 31, 2014 5:54:49 PM SGT
|
||||
DELETE FROM AD_Column WHERE AD_Column_ID=211200
|
||||
;
|
||||
|
||||
-- Mar 31, 2014 5:54:56 PM SGT
|
||||
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=202695
|
||||
;
|
||||
|
||||
-- Mar 31, 2014 5:54:56 PM SGT
|
||||
DELETE FROM AD_Element WHERE AD_Element_ID=202695
|
||||
;
|
||||
|
||||
ALTER TABLE AD_PInstance DROP COLUMN IsJobProcessing
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201403311258_Ticket_1003856.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,7 @@
|
|||
-- Apr 2, 2014 3:38:01 PM COT
|
||||
-- 1003862-Barcode type UPC A is needed for print formats going to Amazon
|
||||
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,AD_Ref_List_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,377,200176,'79d36566-b888-4fc1-931d-c0b1612c709b',TO_DATE('2014-04-02 15:53:38','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','UPC-A',TO_DATE('2014-04-02 15:53:38','YYYY-MM-DD HH24:MI:SS'),100,'UPA')
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201404020400_Ticket_1003862.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,35 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Nov 27, 2013 10:35:14 AM IST
|
||||
-- IDEMPIERE-1572: Last Run and Saved parameter for process
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,EntityType,IsEncrypted,AD_Element_ID,AD_Client_ID,IsSecure) VALUES (0,'N',0,282,210890,'N','N','Y',0,'N',60,'Y',10,'N','N','Y','4f66cceb-27a2-47b8-a1ef-0bc2882bfdef','Y','Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Name','Y',100,TO_DATE('2013-11-27 10:35:12','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-11-27 10:35:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N','D','N',469,0,'N')
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 10:35:20 AM IST
|
||||
-- IDEMPIERE-1572: Last Run and Saved parameter for process
|
||||
ALTER TABLE AD_PInstance ADD Name NVARCHAR2(60) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 10:36:46 AM IST
|
||||
-- IDEMPIERE-1572: Last Run and Saved parameter for process
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Last Run',200240,'D','fd39a4cd-eb0a-4b35-97ae-cbd4657d8234','LastRun','Y',TO_DATE('2013-11-27 10:36:45','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-11-27 10:36:45','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 10:37:01 AM IST
|
||||
-- IDEMPIERE-1572: Last Run and Saved parameter for process
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Saved Parameters',200241,'D','f1688973-03c3-4af4-9b76-a0cec366ec41','SavedParameter','Y',TO_DATE('2013-11-27 10:37:00','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-11-27 10:37:00','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Nov 27, 2013 10:47:53 AM IST
|
||||
-- IDEMPIERE-1572: Last Run and Saved parameter for process
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Could not save parameters.',200242,'D','d07376af-ab08-4835-a962-9f5addc8dedc','SaveParameterError','Y',TO_DATE('2013-11-27 10:47:52','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-11-27 10:47:52','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Mar 28, 2014 12:23:30 PM IST
|
||||
-- IDEMPIERE-1572: Last Run and Saved parameter for process
|
||||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,ConfigurationLevel,Value,AD_SysConfig_UU,Created,Updated,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name,AD_Client_ID,EntityType) VALUES (200046,'C','5','9b2426cb-b513-4199-b835-016cbc34a24f',TO_DATE('2014-03-28 12:23:23','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-03-28 12:23:23','YYYY-MM-DD HH24:MI:SS'),0,100,'Y',100,'LASTRUN_RECORD_COUNT',0,'D')
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201404040826_IDEMPIERE-1572.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,423 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Mar 18, 2014 2:46:09 PM MYT
|
||||
-- IDEMPIERE-1715 Implement revert action for Production (Single Product)
|
||||
INSERT INTO AD_Workflow (ValidateWorkflow,Cost,WaitingTime,WorkingTime,AccessLevel,Duration,DurationUnit,IsDefault,IsValid,Limit,Priority,PublishStatus,Version,SetupTime,QtyBatchSize,MovingTime,IsBetaFunctionality,OverlapUnits,UnitsCycles,Yield,QueuingTime,WorkflowType,Value,Name,AD_Workflow_UU,Author,DocumentNo,AD_Workflow_ID,UpdatedBy,Updated,Created,CreatedBy,IsActive,AD_Client_ID,EntityType,AD_Table_ID,AD_Org_ID) VALUES ('N',0,0,0,'1',0,'D','N','N',0,0,'R',0,0,1,0,'N',0,0,100,0,'P','Process_Production','Process_Production','cc9a6ab7-ff24-4c88-b35e-6a67dd76f405','iDempiere','10000000',200002,100,TO_DATE('2014-03-18 14:46:07','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-03-18 14:46:07','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,'D',325,0)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:11 PM MYT
|
||||
INSERT INTO AD_WF_Node (AD_WF_Node_ID,Cost,YPosition,OverlapUnits,UnitsCycles,Yield,WaitTime,Priority,Duration,IsCentrallyMaintained,JoinElement,Limit,WorkingTime,XPosition,WaitingTime,IsMilestone,IsSubcontracting,SplitElement,Action,Description,Value,Name,AD_WF_Node_UU,DynPriorityChange,AD_Workflow_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,DocAction,AD_Client_ID,EntityType,AD_Org_ID) VALUES (200008,0,0,0,0,100,0,0,0,'Y','X',0,0,0,0,'N','N','X','D','(Standard Node)','(DocAuto)','(DocAuto)','a483ae3a-dc85-46e4-a384-a10e7ace85d2',0,200002,TO_DATE('2014-03-18 14:46:10','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-18 14:46:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','--',0,'D',0)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:12 PM MYT
|
||||
INSERT INTO AD_WF_Node (AD_WF_Node_ID,Cost,YPosition,OverlapUnits,UnitsCycles,Yield,WaitTime,Priority,Duration,IsCentrallyMaintained,JoinElement,Limit,WorkingTime,XPosition,WaitingTime,IsMilestone,IsSubcontracting,SplitElement,Action,Description,Value,Name,AD_WF_Node_UU,DynPriorityChange,AD_Workflow_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,DocAction,AD_Client_ID,EntityType,AD_Org_ID) VALUES (200009,0,0,0,0,100,0,0,0,'Y','X',0,0,0,0,'N','N','X','D','(Standard Node)','(DocComplete)','(DocComplete)','20f82106-add0-454b-8179-5328c1707720',0,200002,TO_DATE('2014-03-18 14:46:11','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-18 14:46:11','YYYY-MM-DD HH24:MI:SS'),100,'Y','CO',0,'D',0)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:13 PM MYT
|
||||
INSERT INTO AD_WF_Node (AD_WF_Node_ID,Cost,YPosition,OverlapUnits,UnitsCycles,Yield,WaitTime,Priority,Duration,IsCentrallyMaintained,JoinElement,Limit,WorkingTime,XPosition,WaitingTime,IsMilestone,IsSubcontracting,SplitElement,Action,Description,Value,Name,AD_WF_Node_UU,DynPriorityChange,AD_Workflow_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,DocAction,AD_Client_ID,EntityType,AD_Org_ID) VALUES (200010,0,0,0,0,100,0,0,0,'Y','X',0,0,0,0,'N','N','X','D','(Standard Node)','(DocPrepare)','(DocPrepare)','011830f3-4834-4bb1-bebd-5e8d77ca8b5f',0,200002,TO_DATE('2014-03-18 14:46:12','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-18 14:46:12','YYYY-MM-DD HH24:MI:SS'),100,'Y','PR',0,'D',0)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:14 PM MYT
|
||||
INSERT INTO AD_WF_NodeNext (SeqNo,IsStdUserWorkflow,AD_WF_NodeNext_ID,AD_WF_Node_ID,AD_WF_Next_ID,EntityType,AD_WF_NodeNext_UU,UpdatedBy,CreatedBy,Updated,AD_Org_ID,Created,IsActive,AD_Client_ID) VALUES (10,'N',200007,200010,200009,'D','f765b061-046e-4b00-ad53-db41b8e1d268',100,100,TO_DATE('2014-03-18 14:46:13','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2014-03-18 14:46:13','YYYY-MM-DD HH24:MI:SS'),'N',0)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:15 PM MYT
|
||||
INSERT INTO AD_WF_Node (AD_WF_Node_ID,Cost,YPosition,OverlapUnits,UnitsCycles,Yield,WaitTime,Priority,Duration,IsCentrallyMaintained,JoinElement,Limit,WorkingTime,XPosition,WaitingTime,IsMilestone,IsSubcontracting,SplitElement,Action,Description,Value,Name,AD_WF_Node_UU,DynPriorityChange,AD_Workflow_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,DocAction,AD_Client_ID,EntityType,AD_Org_ID) VALUES (200011,0,0,0,0,100,0,0,0,'Y','X',0,0,0,0,'N','N','X','Z','(Standard Node)','(Start)','(Start)','86125a0c-d0f4-4d26-8ebc-50455547cc87',0,200002,TO_DATE('2014-03-18 14:46:14','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-18 14:46:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','CO',0,'D',0)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:16 PM MYT
|
||||
INSERT INTO AD_WF_NodeNext (SeqNo,IsStdUserWorkflow,AD_WF_NodeNext_ID,AD_WF_Node_ID,AD_WF_Next_ID,EntityType,AD_WF_NodeNext_UU,UpdatedBy,CreatedBy,Updated,AD_Org_ID,Created,IsActive,AD_Client_ID) VALUES (100,'N',200008,200011,200008,'D','ef08df1e-2dd3-4a68-ae89-c8964c885d90',100,100,TO_DATE('2014-03-18 14:46:15','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2014-03-18 14:46:15','YYYY-MM-DD HH24:MI:SS'),'Y',0)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:16 PM MYT
|
||||
UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=200011,Updated=TO_DATE('2014-03-18 14:46:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=200002
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:20 PM MYT
|
||||
INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Name,AD_Workflow_ID,AD_Org_ID,Updated,UpdatedBy,Created,IsActive,CreatedBy,Value,AD_Client_ID) VALUES ('N',200068,'N','N','6ce10946-4f1c-4781-b03a-9da4c7a35faf','1','N','N',0,0,'Y','D','Process Production',200002,0,TO_DATE('2014-03-18 14:46:19','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-03-18 14:46:19','YYYY-MM-DD HH24:MI:SS'),'Y',100,'M_Production Process',0)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:22 PM MYT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Process_ID) VALUES (0,'Y',0,210983,'N','N','N',0,'N',2,'N','N','N','Y','d94f85cc-ad66-4265-8f6b-6e5818ac0932','Y','DocAction','The targeted status of the document','CO','You find the current status in the Document Status field. The options are listed in a popup','Document Action','Y',TO_DATE('2014-03-18 14:46:21','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2014-03-18 14:46:21','YYYY-MM-DD HH24:MI:SS'),100,'Y','N',0,'D','N','N','N',287,28,135,325,200068)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:24 PM MYT
|
||||
ALTER TABLE M_Production ADD (DocAction CHAR(2) DEFAULT 'CO' NOT NULL)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:29 PM MYT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,IsSecure,FKConstraintType,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID) VALUES (0,'Y',0,210984,'N','N','N',0,'N',2,'N','N','N','Y','cd901157-2d1c-4fbf-a943-7e64d7f79361','Y','DocStatus','The current status of the document','DR','The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','Document Status','Y',TO_DATE('2014-03-18 14:46:28','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2014-03-18 14:46:28','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N','N','N',289,17,131,325)
|
||||
;
|
||||
|
||||
-- Mar 18, 2014 2:46:29 PM MYT
|
||||
ALTER TABLE M_Production ADD (DocStatus VARCHAR2(2) DEFAULT 'DR' NOT NULL)
|
||||
;
|
||||
|
||||
UPDATE M_Production set DocAction='CL', DocStatus='CO' WHERE IsCreated='Y' AND Processed='Y'
|
||||
;
|
||||
|
||||
ALTER TABLE M_Production MODIFY M_Locator_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
ALTER TABLE M_Production MODIFY M_Product_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
ALTER TABLE M_ProductionLine MODIFY M_Production_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:19:08 PM MYT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus) VALUES (0,'N',319,0,'N','N',61943,220,'Y',202849,'N','The Create From process will create a new document based on information in an existing document selected by the user.','D','Process which will generate a new document lines based on an existing document','Create lines from','ee659ab5-c6b5-4057-a00d-f19b72977ca1','Y','N',100,0,TO_DATE('2014-04-14 15:19:02','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-04-14 15:19:02','YYYY-MM-DD HH24:MI:SS'),'Y','Y',220,2,'N',0,2,1,'N','N')
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=10,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3783
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=20,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3784
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=30,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3786
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=40,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3787
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=50,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3785
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=60,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3788
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=70,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7817
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=80,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7820
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=90,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7821
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=100,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7818
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:05 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=110,Updated=TO_DATE('2014-04-14 15:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7822
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:06 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=120,Updated=TO_DATE('2014-04-14 15:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7819
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:06 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_DATE('2014-04-14 15:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3790
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:06 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=140, IsDisplayed='Y', XPosition=2,Updated=TO_DATE('2014-04-14 15:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202849
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:06 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2014-04-14 15:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3791
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:06 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2014-04-14 15:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5145
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:06 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-04-14 15:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3789
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:06 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-04-14 15:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3782
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:20:06 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-04-14 15:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202628
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:21:19 PM MYT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus) VALUES (0,'N',319,0,'N','N',210983,170,'Y',202850,'N','You find the current status in the Document Status field. The options are listed in a popup','D','The targeted status of the document','Document Action','1fc40e46-cfdf-48f1-88da-72e130c33c43','Y','N',100,0,TO_DATE('2014-04-14 15:21:13','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-04-14 15:21:13','YYYY-MM-DD HH24:MI:SS'),'Y','Y',230,2,'N',0,2,1,'N','N')
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:23:04 PM MYT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus) VALUES (0,'N',319,0,'N','N',210984,180,'Y',202851,'Y','The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','D','The current status of the document','Document Status','38c5f024-275c-455e-9587-7c9d8da0b031','Y','N',100,0,TO_DATE('2014-04-14 15:22:58','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-04-14 15:22:58','YYYY-MM-DD HH24:MI:SS'),'Y','Y',240,4,'N',0,2,1,'N','N')
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:29:04 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=202850
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:29:04 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=202851
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:29:04 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=5145
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:30:48 PM MYT
|
||||
UPDATE AD_Column SET IsToolbarButton='N',Updated=TO_DATE('2014-04-14 15:30:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210983
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:35:45 PM MYT
|
||||
UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2014-04-14 15:35:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59963
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:36:36 PM MYT
|
||||
UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2014-04-14 15:36:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59962
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:38:30 PM MYT
|
||||
UPDATE AD_Field SET IsMandatory='Y',Updated=TO_DATE('2014-04-14 15:38:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59752
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:38:48 PM MYT
|
||||
UPDATE AD_Field SET IsMandatory='Y',Updated=TO_DATE('2014-04-14 15:38:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59743
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:41:35 PM MYT
|
||||
UPDATE AD_Column SET AD_Reference_ID=20,Updated=TO_DATE('2014-04-14 15:41:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=61940
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:42:07 PM MYT
|
||||
UPDATE AD_Field SET IsDisplayed='N',Updated=TO_DATE('2014-04-14 15:42:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62016
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:42:45 PM MYT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus) VALUES (0,'N',53344,0,'N','N',210983,120,'Y',202852,'N','You find the current status in the Document Status field. The options are listed in a popup','D','The targeted status of the document','Document Action','38c18801-8280-447b-a676-f979d35f0e9d','Y','N',100,0,TO_DATE('2014-04-14 15:42:38','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-04-14 15:42:38','YYYY-MM-DD HH24:MI:SS'),'Y','Y',130,2,'N',0,2,1,'N','N')
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:43:04 PM MYT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus) VALUES (0,'N',53344,0,'N','N',210984,260,'Y',202853,'Y','The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','D','The current status of the document','Document Status','4dc496c8-6969-4c9d-b94f-63b876ce1999','Y','N',100,0,TO_DATE('2014-04-14 15:43:03','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-04-14 15:43:03','YYYY-MM-DD HH24:MI:SS'),'Y','Y',220,1,'N',0,1,1,'N','N')
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 3:43:10 PM MYT
|
||||
UPDATE AD_Field SET XPosition=2, ColumnSpan=2,Updated=TO_DATE('2014-04-14 15:43:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202853
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:26:11 PM MYT
|
||||
-- IDEMPIERE-1715 Implement revert action for Production (Single Product)
|
||||
UPDATE AD_Field SET SeqNo=120, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2014-04-14 16:26:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59756
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:26:11 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_DATE('2014-04-14 16:26:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202852
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:26:11 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=230, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2014-04-14 16:26:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202853
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:26:11 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=240,Updated=TO_DATE('2014-04-14 16:26:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59749
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:26:11 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_DATE('2014-04-14 16:26:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59748
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:26:11 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-04-14 16:26:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62016
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:26:11 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-04-14 16:26:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202629
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:56 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=2,Updated=TO_DATE('2014-04-14 16:27:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202849
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:56 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=80, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2014-04-14 16:27:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3791
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=90, IsDisplayed='Y', XPosition=2,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202850
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=100,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7817
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=110,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7820
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=120,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7821
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7818
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=140,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7822
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7819
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3790
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=170, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202851
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:27:57 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=180, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2014-04-14 16:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5145
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:28:14 PM MYT
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=101,Updated=TO_DATE('2014-04-14 16:28:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202851
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:28:25 PM MYT
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=101,Updated=TO_DATE('2014-04-14 16:28:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5145
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:29:31 PM MYT
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=101,Updated=TO_DATE('2014-04-14 16:29:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202853
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:34:59 PM MYT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,EntityType) VALUES (0,'N',319,0,'N','N',59961,190,'Y',202854,'N','The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>".
|
||||
|
||||
If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).','Document sequence number of the document','Document No','d4f0dde6-f83a-4fa1-9645-b769c2fc9b0e','Y','N',100,0,TO_DATE('2014-04-14 16:34:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2014-04-14 16:34:53','YYYY-MM-DD HH24:MI:SS'),'Y','Y',250,1,'N',0,2,1,'N','N','D')
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=30, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202854
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=40,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3786
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=50,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3787
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=60,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3785
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=70,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3788
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=80,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202849
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=90,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3791
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=100,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202850
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=110,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7817
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=120,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7820
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=130,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7821
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=140,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7818
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7822
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7819
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=170,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3790
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=180,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202851
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:35:41 PM MYT
|
||||
UPDATE AD_Field SET SeqNo=190, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2014-04-14 16:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5145
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:40:26 PM MYT
|
||||
UPDATE AD_Window SET IsActive='N',Updated=TO_DATE('2014-04-14 16:40:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=191
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:40:26 PM MYT
|
||||
UPDATE AD_Menu SET Name='Production', Description='Production based on Bill of Materials', IsActive='N',Updated=TO_DATE('2014-04-14 16:40:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=228
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:45:18 PM MYT
|
||||
INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (200080,'M_Production','D','25b245ad-6b82-42c5-a1dd-bea8fb43556b','N','T',0,100,TO_DATE('2014-04-14 16:45:12','YYYY-MM-DD HH24:MI:SS'),'Y',TO_DATE('2014-04-14 16:45:12','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:45:47 PM MYT
|
||||
INSERT INTO AD_Ref_Table (IsValueDisplayed,AD_Ref_Table_UU,CreatedBy,Updated,Created,UpdatedBy,AD_Org_ID,IsActive,AD_Client_ID,EntityType,AD_Display,AD_Key,AD_Reference_ID,AD_Table_ID) VALUES ('N','ba10e596-5065-48e6-932c-337e19726661',100,TO_DATE('2014-04-14 16:45:47','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-04-14 16:45:47','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',0,'D',59961,3596,200080,325)
|
||||
;
|
||||
|
||||
-- Apr 14, 2014 4:46:17 PM MYT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_Value_ID,AD_Table_ID) VALUES (0,'N',1,211207,'N','N','N',0,'N',10,'N',18,'N','N','Y','e2c52b19-8de8-40cd-8738-283bd9f1f351','N','Reversal_ID','ID of document reversal','Reversal ID','Y',TO_DATE('2014-04-14 16:46:11','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2014-04-14 16:46:11','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N','N',53457,200080,325)
|
||||
;
|
||||
|
||||
-- Apr 15, 2014 12:13:29 AM MYT
|
||||
-- IDEMPIERE-1715 Implement revert action for Production (Single Product)
|
||||
UPDATE AD_Column SET FKConstraintName='Reversal_MProduction', FKConstraintType='N',Updated=TO_DATE('2014-04-15 00:13:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211207
|
||||
;
|
||||
|
||||
-- Apr 15, 2014 12:13:29 AM MYT
|
||||
ALTER TABLE M_Production ADD Reversal_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Apr 15, 2014 12:13:30 AM MYT
|
||||
ALTER TABLE M_Production ADD CONSTRAINT Reversal_MProduction FOREIGN KEY (Reversal_ID) REFERENCES m_production(m_production_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Apr 15, 2014 12:14:43 AM MYT
|
||||
UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2014-04-15 00:14:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59960
|
||||
;
|
||||
|
||||
-- Apr 15, 2014 12:15:32 AM MYT
|
||||
UPDATE AD_Field SET IsMandatory='Y',Updated=TO_DATE('2014-04-15 00:15:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59770
|
||||
;
|
||||
|
||||
-- Apr 15, 2014 12:16:37 AM MYT
|
||||
UPDATE AD_Field SET IsMandatory='Y',Updated=TO_DATE('2014-04-15 00:16:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3809
|
||||
;
|
||||
|
||||
-- Apr 15, 2014 12:36:25 PM MYT
|
||||
UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_DATE('2014-04-15 12:36:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211207
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201404140708_IDEMPIERE-1750.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,219 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- May 2, 2014 9:15:14 AM CEST
|
||||
-- IDEMPIERE-1899
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Element_UU,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,202698,'644f9b63-6ded-406e-abec-44d87375820a',0,'R_DefaultMailText_ID',TO_DATE('2014-05-02 09:15:13','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Default mail template','Default mail template',TO_DATE('2014-05-02 09:15:13','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:15:31 AM CEST
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Element_UU,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,202699,'05f5cb33-9346-4d6d-81c0-26c599af9b5a',0,'IsAddMailTextAutomatically',TO_DATE('2014-05-02 09:15:30','YYYY-MM-DD HH24:MI:SS'),100,'The selected mail template will be automatically inserted when creating an email','D','Y','Add Mail Text Automatically','Add Mail Text Automatically',TO_DATE('2014-05-02 09:15:30','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:15:50 AM CEST
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FKConstraintType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,211208,'9cc67589-fb40-4206-9f03-4057670ed430',202699,0,20,114,'IsAddMailTextAutomatically',TO_DATE('2014-05-02 09:15:49','YYYY-MM-DD HH24:MI:SS'),100,'N','The selected mail template will be automatically inserted when creating an email','D','N',1,'Y','Y','Y','N','N','N','N','N','Y','N','N','N','N','N','N','Y','Add Mail Text Automatically',0,0,TO_DATE('2014-05-02 09:15:49','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:15:54 AM CEST
|
||||
ALTER TABLE AD_User ADD IsAddMailTextAutomatically CHAR(1) DEFAULT 'N' CHECK (IsAddMailTextAutomatically IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:16:15 AM CEST
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FKConstraintType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSecure,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,211209,'2ecd8ac6-61d1-4062-85d9-2968e5a8f74c',202698,0,18,274,114,'R_DefaultMailText_ID',TO_DATE('2014-05-02 09:16:14','YYYY-MM-DD HH24:MI:SS'),100,'D','N',10,'Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','Y','Default mail template',0,0,TO_DATE('2014-05-02 09:16:14','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:16:15 AM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='RDEFAULTMAILTEXT_ADUSER', FKConstraintType='N',Updated=TO_DATE('2014-05-02 09:16:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211209
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:24:01 AM COT
|
||||
ALTER TABLE AD_User ADD R_DefaultMailText_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:24:02 AM COT
|
||||
ALTER TABLE AD_User ADD CONSTRAINT RDefaultMailText_ADUser FOREIGN KEY (R_DefaultMailText_ID) REFERENCES r_mailtext(r_mailtext_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:16:27 AM CEST
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy,XPosition) VALUES (0,211208,202875,'b020eaab-a12c-4b5a-80ba-8c12f2cba674',0,118,2,TO_DATE('2014-05-02 09:16:27','YYYY-MM-DD HH24:MI:SS'),100,'The selected mail template will be automatically inserted when creating an email',1,'D','Y','Y','Y','N','N','N','N','N','Add Mail Text Automatically',520,TO_DATE('2014-05-02 09:16:27','YYYY-MM-DD HH24:MI:SS'),100,2)
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:16:28 AM CEST
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,211209,202876,'ef99b478-48c3-4f2f-b276-7ae8695ab14a',0,118,2,TO_DATE('2014-05-02 09:16:27','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','Y','N','N','N','N','N','Default mail template',530,TO_DATE('2014-05-02 09:16:27','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=12640
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=200072
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=202876
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=202875
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=6513
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=11525
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=6520
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=8342
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=6519
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=200405
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=200400
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=200403
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:07 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=200401
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:08 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=200406
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:08 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=200402
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:08 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=200474
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:08 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=200475
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:08 AM CEST
|
||||
UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=200473
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:17:18 AM CEST
|
||||
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2014-05-02 09:17:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202875
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:19:54 AM CEST
|
||||
-- IDEMPIERE-1899
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=280, XPosition=5,Updated=TO_DATE('2014-05-02 09:19:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=202875
|
||||
;
|
||||
|
||||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- May 2, 2014 9:37:13 AM CEST
|
||||
-- IDEMPIERE-1899
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Message_UU,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,200273,'43ee6fb2-59e7-4af2-bf73-b5baf5af5a3a',0,TO_DATE('2014-05-02 09:37:13','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Add default mail text content','I',TO_DATE('2014-05-02 09:37:13','YYYY-MM-DD HH24:MI:SS'),100,'AddDefaultMailTextContent')
|
||||
;
|
||||
|
||||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- May 2, 2014 9:38:51 AM CEST
|
||||
-- IDEMPIERE-1899
|
||||
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2014-05-02 09:38:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211208
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:38:58 AM CEST
|
||||
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2014-05-02 09:38:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211209
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:39:11 AM CEST
|
||||
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2014-05-02 09:39:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202876
|
||||
;
|
||||
|
||||
-- May 2, 2014 9:39:13 AM CEST
|
||||
UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2014-05-02 09:39:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202875
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=280,IsDisplayedGrid='Y' WHERE AD_Field_ID=202876
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=290,IsDisplayedGrid='Y' WHERE AD_Field_ID=202875
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=300,IsDisplayedGrid='Y' WHERE AD_Field_ID=6513
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=310,IsDisplayedGrid='Y' WHERE AD_Field_ID=11525
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=320,IsDisplayedGrid='Y' WHERE AD_Field_ID=6520
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=330,IsDisplayedGrid='Y' WHERE AD_Field_ID=8342
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=340,IsDisplayedGrid='Y' WHERE AD_Field_ID=6519
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=350,IsDisplayedGrid='Y' WHERE AD_Field_ID=200405
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=360,IsDisplayedGrid='Y' WHERE AD_Field_ID=200400
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=370,IsDisplayedGrid='Y' WHERE AD_Field_ID=200403
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=380,IsDisplayedGrid='Y' WHERE AD_Field_ID=200401
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=390,IsDisplayedGrid='Y' WHERE AD_Field_ID=200406
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=400,IsDisplayedGrid='Y' WHERE AD_Field_ID=200402
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=410,IsDisplayedGrid='Y' WHERE AD_Field_ID=200474
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=420,IsDisplayedGrid='Y' WHERE AD_Field_ID=200475
|
||||
;
|
||||
|
||||
-- May 14, 2014 10:54:07 AM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=430,IsDisplayedGrid='Y' WHERE AD_Field_ID=200473
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201405021000_IDEMPIERE-1899.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,29 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- May 16, 2014 1:53:34 PM MYT
|
||||
-- IDEMPIERE-1954 Implement MaxQueryRecords for AD_InfoWindow
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,IsSecure,AD_Element_ID,AD_Table_ID) VALUES (0,'N',1,211240,'Y','N','N',0,'N',10,'N',11,'N','N','Y','8266be38-9b40-4d93-99cb-81cbe10035b5','Y','MaxQueryRecords','If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records','0','Enter the number of records a user will be able to query to avoid unnecessary system load. If 0, no restrictions are imposed.','Max Query Records','Y',TO_DATE('2014-05-16 13:53:33','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2014-05-16 13:53:33','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N','N',2854,895)
|
||||
;
|
||||
|
||||
-- May 16, 2014 1:54:51 PM MYT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan,NumLines,IsAdvancedField,IsDefaultFocus,EntityType,Created) VALUES (0,'N',842,0,'N','N',211240,180,'Y',203024,'N','Enter the number of records a user will be able to query to avoid unnecessary system load. If 0, no restrictions are imposed.','If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records','Max Query Records','ad1bced3-2965-45be-8982-fd64639b6863','Y','N',100,0,100,TO_DATE('2014-05-16 13:54:50','YYYY-MM-DD HH24:MI:SS'),'Y','Y',100,2,'N',0,2,1,'N','N','D',TO_DATE('2014-05-16 13:54:50','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- May 16, 2014 1:55:27 PM MYT
|
||||
UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2014-05-16 13:55:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203024
|
||||
;
|
||||
|
||||
-- May 16, 2014 2:16:23 PM MYT
|
||||
-- IDEMPIERE-1954 Implement MaxQueryRecords for AD_InfoWindow
|
||||
ALTER TABLE AD_InfoWindow ADD MaxQueryRecords NUMBER(10) DEFAULT 0 NOT NULL
|
||||
;
|
||||
|
||||
-- May 16, 2014 3:01:57 PM MYT
|
||||
-- IDEMPIERE-1954 Implement MaxQueryRecords for AD_InfoWindow
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Client_ID,AD_Org_ID,Created) VALUES ('E','Your search returned more than the maximum number of results allowed.<br>Please narrow down your search criteria and try your search again.',200274,'D','62341bf3-576c-4c9a-9cd3-4cb88b9bb989','InfoFindOverMax','Y',TO_DATE('2014-05-16 15:01:56','YYYY-MM-DD HH24:MI:SS'),100,100,0,0,TO_DATE('2014-05-16 15:01:56','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201405160715_IDEMPIERE-1954.sql') FROM dual
|
||||
;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue