Recipient uid

This commit is contained in:
CHIEFSOFT\ameye
2023-07-21 13:46:38 -04:00
parent 574c98a5da
commit 5ba200f3e7
3 changed files with 20 additions and 1 deletions
+7 -1
View File
@@ -81,7 +81,7 @@ long getUserRecipientCombo( CVars in, CVars &out ){
out["total_record"] = "0";
const PGresult *res;
res = pgsql_query("SELECT b.id,b.firstname||' '||b.lastname||' '||b.account_no||' '||k.name AS recipient, b.account_no,b.country,b.added "
res = pgsql_query("SELECT b.id,b.firstname||' '||b.lastname||' '||b.account_no||' '||k.name AS recipient, b.account_no,b.country,b.added,b.uid AS recipient_uid ,b.uid"
"FROM sendmoney_recipient b "
"LEFT JOIN bank_entity_codes k ON k.code=b.bank_code "
"WHERE b.member_id = %lu AND b.status=1",member_id);
@@ -112,6 +112,12 @@ long getUserRecipientCombo( CVars in, CVars &out ){
snprintf(vname, sizeof (vname), "added_%05d", i);
out[vname] = rec["added"];
snprintf(vname, sizeof (vname), "recipient_uid_%05d", i);
out[vname] = rec["recipient_uid"];
snprintf(vname, sizeof (vname), "uid_%05d", i);
out[vname] = rec["uid"];
}
}
ret = PHP_API_OK;