/*
 * ac_settle_join_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_settle_join_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.
 * Shape: purchase JOIN settlement 집계.
 */
#ifndef AC_SETTLE_JOIN_DBIO_H
#define AC_SETTLE_JOIN_DBIO_H

typedef struct { char merchant_id[64]; long settled_net; long matched; } ac_settle_join_rec_t;

long acdb_settled_net_by_merchant(const char *merch, const char *bizdate);
long acdb_settled_match_count(const char *bizdate);

#endif /* AC_SETTLE_JOIN_DBIO_H */
