/*
 * ac_wht_distinct_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_wht_distinct_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: count(DISTINCT purchase_id) + sum(tax_amount).
 */
#ifndef AC_WHT_DISTINCT_DBIO_H
#define AC_WHT_DISTINCT_DBIO_H

typedef struct { long distinct_purchases; long total_tax; } ac_wht_distinct_rec_t;

int acdb_wht_distinct_summary(const char *bizdate, ac_wht_distinct_rec_t *out);

#endif /* AC_WHT_DISTINCT_DBIO_H */
