/*
 * ac_purchase_incancel_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_purchase_incancel_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: WHERE purchase_id IN (SELECT ... FROM ac_cancel).
 */
#ifndef AC_PURCHASE_INCANCEL_DBIO_H
#define AC_PURCHASE_INCANCEL_DBIO_H

typedef struct { long cancelled_cnt; long cancelled_amount; } ac_incancel_rec_t;

long acdb_cancelled_purchase_count(const char *bizdate);
long acdb_cancelled_purchase_amount(const char *bizdate);

#endif /* AC_PURCHASE_INCANCEL_DBIO_H */
