/*
 * py_ledger_dbio.h - py 모듈 DB 접근 계층 copybook (py_ledger_dbio, part of libpydbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 */
#ifndef PY_LEDGER_DBIO_H
#define PY_LEDGER_DBIO_H

typedef struct { long ledger_id; long payout_id; char entry_type[16]; long amount; } py_ledger_rec_t;

long pydb_ledger_xfer_sum(const char *bizdate);
long pydb_ledger_balance(long payout_id);

#endif /* PY_LEDGER_DBIO_H */
