summaryrefslogtreecommitdiff
path: root/src/seed.h
blob: 826391bcc6ebf0f6d84e3915b0be81823b9141b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef BOKF_SEED_H
#define BOKF_SEED_H

#include <sqlite3.h>
#include <stdint.h>

/* Seeds a fresh org inside an existing transaction: chart of accounts,
   moms report rules and the current fiscal year. Returns 0 on success. */
int seed_org(sqlite3 *db, int64_t org_id, const char *framework,
             int fy_start_month, int64_t *out_fy_id, char **err);

#endif