aboutsummaryrefslogtreecommitdiff
path: root/src/reports.h
blob: d4a0545ecc18d3610154250c522a101a28b5091f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef BOKF_REPORTS_H
#define BOKF_REPORTS_H

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

#include "yyjson.h"

yyjson_mut_val *report_trial_balance(yyjson_mut_doc *doc, sqlite3 *db,
                                     int64_t org_id, int64_t fy_id,
                                     const char *from, const char *to,
                                     int include_zero, char **err);
yyjson_mut_val *report_income_statement(yyjson_mut_doc *doc, sqlite3 *db,
                                        int64_t org_id, int64_t fy_id,
                                        const char *from, const char *to,
                                        char **err);
yyjson_mut_val *report_balance_sheet(yyjson_mut_doc *doc, sqlite3 *db,
                                     int64_t org_id, int64_t fy_id,
                                     const char *to, char **err);
yyjson_mut_val *report_vat(yyjson_mut_doc *doc, sqlite3 *db, int64_t org_id,
                           const char *from, const char *to, char **err);
yyjson_mut_val *report_general_ledger(yyjson_mut_doc *doc, sqlite3 *db,
                                      int64_t org_id, int64_t fy_id,
                                      const char *from, const char *to,
                                      yyjson_val *accounts, char **err);
yyjson_mut_val *report_voucher_list(yyjson_mut_doc *doc, sqlite3 *db,
                                    int64_t org_id, int64_t fy_id,
                                    const char *series, char **err);

#endif