|
@@ -517,6 +517,13 @@
|
|
|
tmc.cus_name as "cusName",
|
|
tmc.cus_name as "cusName",
|
|
|
tmc.cus_phone as "cusPhone",
|
|
tmc.cus_phone as "cusPhone",
|
|
|
tmc.address_full as "addressFull",
|
|
tmc.address_full as "addressFull",
|
|
|
|
|
+ tmsp.sup_id,
|
|
|
|
|
+ tmsp.sup_code,
|
|
|
|
|
+ tmsp.sup_name,
|
|
|
|
|
+ tmsp.sup_type,
|
|
|
|
|
+ tmsp.contact_name,
|
|
|
|
|
+ tmsp.contact_phone,
|
|
|
|
|
+ tmsp.return_address,
|
|
|
t.org_id,
|
|
t.org_id,
|
|
|
tmo.org_name as "orgName",
|
|
tmo.org_name as "orgName",
|
|
|
t.staff_id,
|
|
t.staff_id,
|
|
@@ -546,6 +553,7 @@
|
|
|
tma.receipt_residue
|
|
tma.receipt_residue
|
|
|
from dkic_b.t_mac_rec_pay as t
|
|
from dkic_b.t_mac_rec_pay as t
|
|
|
left join dkic_b.t_mst_customer tmc on tmc.cus_id = t.object_id
|
|
left join dkic_b.t_mst_customer tmc on tmc.cus_id = t.object_id
|
|
|
|
|
+ left join dkic_b.t_mst_supplier tmsp on tmsp.sup_id = t.object_id
|
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.rp_type
|
|
left join sys.t_data_kind as tdk1 on tdk1.kind_code = t.rp_type
|
|
|
left join dkic_b.t_mst_org tmo on tmo.org_id = t.org_id
|
|
left join dkic_b.t_mst_org tmo on tmo.org_id = t.org_id
|
|
|
left join dkic_b.t_mst_staff tms on tms.staff_id = t.staff_id
|
|
left join dkic_b.t_mst_staff tms on tms.staff_id = t.staff_id
|