/*
 * ac_settle_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_settle_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_SETTLE_DBIO_H
#define AC_SETTLE_DBIO_H

typedef struct { long settlement_id; long purchase_id; char merchant_id[64]; long net; char biz_date[16]; } ac_settle_rec_t;

long acdb_insert_settlement(long pid, const char *merch, long net, const char *bizdate);
long acdb_settle_net_sum(const char *bizdate);

#endif /* AC_SETTLE_DBIO_H */
