You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
694 B
Plaintext

SELECT
ppca.code_a Account,
acct.description Account_Desc,
ppca.code_b,
ppca.code_c,
ppca.code_d,
ppca.code_e,
ppca.code_f,
ppca.code_g,
ppca.code_h,
ppca.code_i,
ppca.code_j,
ppca.company,
ppca.curr_amount,
ppca.curr_code,
ppca.curr_rate,
ppca.dom_amount,
ppca.invoice_id,
ppca.line_authorized,
ppca.line_no,
ppca.voucher_company,
ppca.voucher_type_ref
FROM
IFSAPP.posting_proposal_cost_auth ppca
LEFT OUTER JOIN
(SELECT
account,
description
FROM
IFSAPP.ACCOUNT
) acct ON ppca.code_a = acct.account
WHERE
Voucher_Company='&Site'
AND VOUCHER_TYPE_REF IS NULL