Unposted document view date acct
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2986969
This commit is contained in:
parent
f0220856c3
commit
f77efad01e
|
@ -52,13 +52,13 @@ as
|
|||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateTrx, 335, C_Payment_ID, 'N',
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 335, C_Payment_ID, 'N',
|
||||
posted, processing, processed, docstatus, processedon
|
||||
from C_PAYMENT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateTrx, 735, C_AllocationHdr_ID,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 735, C_AllocationHdr_ID,
|
||||
'N', posted, processing, processed, docstatus, processedon
|
||||
from C_ALLOCATIONHDR
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
|
@ -70,13 +70,13 @@ as
|
|||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateTrx, 472, M_MatchInv_ID, 'N',
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 472, M_MatchInv_ID, 'N',
|
||||
posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_MATCHINV
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateTrx, 473, M_MatchPO_ID, 'N',
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 473, M_MatchPO_ID, 'N',
|
||||
posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_MATCHPO
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
|
|
|
@ -52,13 +52,13 @@ as
|
|||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateTrx, 335, C_Payment_ID, 'N',
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 335, C_Payment_ID, 'N',
|
||||
posted, processing, processed, docstatus, processedon
|
||||
from C_PAYMENT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateTrx, 735, C_AllocationHdr_ID,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 735, C_AllocationHdr_ID,
|
||||
'N', posted, processing, processed, docstatus, processedon
|
||||
from C_ALLOCATIONHDR
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
|
@ -70,13 +70,13 @@ as
|
|||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateTrx, 472, M_MatchInv_ID, 'N',
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 472, M_MatchInv_ID, 'N',
|
||||
posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_MATCHINV
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateTrx, 473, M_MatchPO_ID, 'N',
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 473, M_MatchPO_ID, 'N',
|
||||
posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_MATCHPO
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
|
|
|
@ -0,0 +1,95 @@
|
|||
create or replace view rv_unposted
|
||||
as
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateDoc, DateAcct, 224 AS AD_Table_ID,
|
||||
GL_Journal_ID AS Record_ID, 'N' AS IsSOTrx, posted, processing,
|
||||
processed, docstatus, processedon
|
||||
from GL_JOURNAL
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT pi.AD_Client_ID, pi.AD_Org_ID, pi.Created, pi.CreatedBy, pi.Updated,
|
||||
pi.UpdatedBy, pi.IsActive, p.NAME || '_' || pi.Line,
|
||||
pi.MovementDate, pi.MovementDate, 623, pi.C_ProjectIssue_ID, 'N',
|
||||
posted, pi.processing, pi.processed, 'CO' as DocStatus, processedon
|
||||
from C_PROJECTISSUE pi INNER JOIN C_PROJECT p
|
||||
ON (pi.C_Project_ID = p.C_Project_ID)
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateInvoiced, DateAcct, 318, C_Invoice_ID,
|
||||
IsSOTrx, posted, processing, processed, docstatus, processedon
|
||||
from C_INVOICE
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, MovementDate, DateAcct, 319, M_InOut_ID,
|
||||
IsSOTrx, posted, processing, processed, docstatus, processedon
|
||||
from M_INOUT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, MovementDate, MovementDate, 321,
|
||||
M_Inventory_ID, 'N', posted, processing, processed, docstatus, processedon
|
||||
from M_INVENTORY
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, MovementDate, MovementDate, 323,
|
||||
M_Movement_ID, 'N', posted, processing, processed, docstatus, processedon
|
||||
from M_MOVEMENT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, NAME, MovementDate, MovementDate, 325, M_Production_ID,
|
||||
'N', posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_PRODUCTION
|
||||
WHERE Posted <> 'Y' -- AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, NAME, StatementDate, DateAcct, 407, C_Cash_ID, 'N',
|
||||
posted, processing, processed, docstatus, processedon
|
||||
from C_CASH
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 335, C_Payment_ID, 'N',
|
||||
posted, processing, processed, docstatus, processedon
|
||||
from C_PAYMENT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 735, C_AllocationHdr_ID,
|
||||
'N', posted, processing, processed, docstatus, processedon
|
||||
from C_ALLOCATIONHDR
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, NAME, StatementDate, StatementDate, 392,
|
||||
C_BankStatement_ID, 'N', posted, processing, processed, docstatus, processedon
|
||||
from C_BANKSTATEMENT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 472, M_MatchInv_ID, 'N',
|
||||
posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_MATCHINV
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 473, M_MatchPO_ID, 'N',
|
||||
posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_MATCHPO
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateOrdered, DateAcct, 259, C_Order_ID,
|
||||
IsSOTrx, posted, processing, processed, docstatus, processedon
|
||||
from C_ORDER
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateRequired, DateRequired, 702,
|
||||
M_Requisition_ID, 'N', posted, processing, processed, docstatus, processedon
|
||||
from M_REQUISITION
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
;
|
|
@ -0,0 +1,95 @@
|
|||
create or replace view rv_unposted
|
||||
as
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateDoc, DateAcct, 224 AS AD_Table_ID,
|
||||
GL_Journal_ID AS Record_ID, 'N' AS IsSOTrx, posted, processing,
|
||||
processed, docstatus, processedon
|
||||
from GL_JOURNAL
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT pi.AD_Client_ID, pi.AD_Org_ID, pi.Created, pi.CreatedBy, pi.Updated,
|
||||
pi.UpdatedBy, pi.IsActive, p.NAME || '_' || pi.Line,
|
||||
pi.MovementDate, pi.MovementDate, 623, pi.C_ProjectIssue_ID, 'N',
|
||||
posted, pi.processing, pi.processed, 'CO' as DocStatus, processedon
|
||||
from C_PROJECTISSUE pi INNER JOIN C_PROJECT p
|
||||
ON (pi.C_Project_ID = p.C_Project_ID)
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateInvoiced, DateAcct, 318, C_Invoice_ID,
|
||||
IsSOTrx, posted, processing, processed, docstatus, processedon
|
||||
from C_INVOICE
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, MovementDate, DateAcct, 319, M_InOut_ID,
|
||||
IsSOTrx, posted, processing, processed, docstatus, processedon
|
||||
from M_INOUT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, MovementDate, MovementDate, 321,
|
||||
M_Inventory_ID, 'N', posted, processing, processed, docstatus, processedon
|
||||
from M_INVENTORY
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, MovementDate, MovementDate, 323,
|
||||
M_Movement_ID, 'N', posted, processing, processed, docstatus, processedon
|
||||
from M_MOVEMENT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, NAME, MovementDate, MovementDate, 325, M_Production_ID,
|
||||
'N', posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_PRODUCTION
|
||||
WHERE Posted <> 'Y' -- AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, NAME, StatementDate, DateAcct, 407, C_Cash_ID, 'N',
|
||||
posted, processing, processed, docstatus, processedon
|
||||
from C_CASH
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 335, C_Payment_ID, 'N',
|
||||
posted, processing, processed, docstatus, processedon
|
||||
from C_PAYMENT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 735, C_AllocationHdr_ID,
|
||||
'N', posted, processing, processed, docstatus, processedon
|
||||
from C_ALLOCATIONHDR
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, NAME, StatementDate, StatementDate, 392,
|
||||
C_BankStatement_ID, 'N', posted, processing, processed, docstatus, processedon
|
||||
from C_BANKSTATEMENT
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 472, M_MatchInv_ID, 'N',
|
||||
posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_MATCHINV
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateTrx, DateAcct, 473, M_MatchPO_ID, 'N',
|
||||
posted, processing, processed, 'CO' as docstatus, processedon
|
||||
from M_MATCHPO
|
||||
WHERE Posted <> 'Y' --AND DocStatus<>'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateOrdered, DateAcct, 259, C_Order_ID,
|
||||
IsSOTrx, posted, processing, processed, docstatus, processedon
|
||||
from C_ORDER
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
UNION
|
||||
SELECT AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy,
|
||||
IsActive, DocumentNo, DateRequired, DateRequired, 702,
|
||||
M_Requisition_ID, 'N', posted, processing, processed, docstatus, processedon
|
||||
from M_REQUISITION
|
||||
WHERE Posted <> 'Y' AND DocStatus <> 'VO'
|
||||
;
|
Loading…
Reference in New Issue