|
|
@@ -27,6 +27,7 @@ SELECT
|
|
|
t1.changeby,
|
|
|
t1.changedate,
|
|
|
t1.sa_openpromotionid,
|
|
|
+ t4.promname openpromname,
|
|
|
t1.openamount,
|
|
|
t2.brandname,
|
|
|
t3.accountno,
|
|
|
@@ -37,4 +38,6 @@ FROM
|
|
|
AND t1.siteid = t2.siteid
|
|
|
LEFT JOIN sa_accountclass t3 ON t1.sa_accountclassid = t3.sa_accountclassid
|
|
|
AND t1.siteid = t3.siteid
|
|
|
+ LEFT JOIN sa_promotion t4 ON t4.sa_promotionid = t1.sa_openpromotionid
|
|
|
+ AND t4.siteid = t1.siteid
|
|
|
where t1.sa_promotionid=$sa_promotionid$
|