/*
 * ac_purchase_agg_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_purchase_agg_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_AGG_DBIO_H
#define AC_PURCHASE_AGG_DBIO_H

typedef struct { char biz_date[16]; long gross; long fee; long net; } ac_purchase_agg_rec_t;

long acdb_purchase_gross_by_date(const char *bizdate);
long acdb_purchase_net_by_date(const char *bizdate);

#endif /* AC_PURCHASE_AGG_DBIO_H */
