/*
 * ACQ_REPROC.pgc - ac 모듈 서비스 ACQ_REPROC (one service = one file).
 * Moved verbatim from the former inline ac_svr.pgc; runs on the caller's XA
 * branch (no EXEC SQL CONNECT). Advertised by ac_svr at tpsvrinit.
 */
#include "ACQ_REPROC.h"

void ACQ_REPROC(TPSVCINFO *p)
{
    UBFH *b = (UBFH *)p->data;
    long pid = getl(b, T_PURCHASE_ID);
    if (acdb_update_status(pid, "A") < 0) FAIL(b);
    Bchg(b, T_STATUS, 0, "A", 0L);
    OK(b);
}
