CREATE VIEW "SBODEMODE"."B1_PaymentsView" ( "DocType", "DocDate", "CancelDate", "TaxDate", "VatDate", "DocNum", "Series", "DocCurr", "DocRate", "FinncPriod", "Canceled", "JrnlMemo", "TransCode", "DocEntry", "ObjType", "CardCode", "CardName", "ResidenNum", "OperatCode", "PayToCode", "Address", "CIG", "CUP", "CreateDate", "CreateTS", "Comments" ) AS ((SELECT T0."DocType", T0."DocDate", T0."CancelDate", T0."TaxDate", T0."VatDate", T0."DocNum", T0."Series", T0."DocCurr", T0."DocRate", T0."FinncPriod", T0."Canceled", T0."JrnlMemo", T0."TransCode", T0."DocEntry", T0."ObjType", T0."CardCode", T0."CardName", T0."ResidenNum", T0."OperatCode", T0."PayToCode", T0."Address", T0."CIG", T0."CUP", T0."CreateDate", T0."CreateTS", T0."Comments" FROM  "SBODEMODE"."ORCT" T0) UNION ALL (SELECT T0."DocType", T0."DocDate", T0."CancelDate", T0."TaxDate", T0."VatDate", T0."DocNum", T0."Series", T0."DocCurr", T0."DocRate", T0."FinncPriod", T0."Canceled", T0."JrnlMemo", T0."TransCode", T0."DocEntry", T0."ObjType", T0."CardCode", T0."CardName", T0."ResidenNum", T0."OperatCode", T0."PayToCode", T0."Address", T0."CIG", T0."CUP", T0."CreateDate", T0."CreateTS", T0."Comments" FROM  "SBODEMODE"."OVPM" T0)) WITH READ ONLY