/*
 * ac_feeadj_repeat_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_feeadj_repeat_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: GROUP BY purchase_id HAVING count(*) > 1 (복수 수수료조정).
 */
#ifndef AC_FEEADJ_REPEAT_DBIO_H
#define AC_FEEADJ_REPEAT_DBIO_H

typedef struct { long purchase_id; long adj_count; long delta_sum; } ac_feeadj_repeat_rec_t;

long acdb_feeadj_repeat_purchases(const char *bizdate, long *delta_out);

#endif /* AC_FEEADJ_REPEAT_DBIO_H */
