/*
 * ac_purchase_query_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_purchase_query_dbio, part of libacdbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 */
#ifndef AC_PURCHASE_QUERY_DBIO_H
#define AC_PURCHASE_QUERY_DBIO_H

typedef struct { long purchase_id; long amount; long fee; long net; char status[8]; } ac_purchase_q_rec_t;

long acdb_purchase_amount(long pid);
long acdb_purchase_fee(long pid);

#endif /* AC_PURCHASE_QUERY_DBIO_H */
