summaryrefslogtreecommitdiff
path: root/src/seed.h
blob: 7192398f0fbea46f1f3ce5688acf038bf0ed45fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);

/* Inserts the default moms report rules for an org (no transaction). */
int seed_vat_rules(sqlite3 *db, int64_t org_id, char **err);

#endif