mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: invoice, estimate and receipt printing.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Model, mixin } from 'objection';
|
||||
import { snakeCase } from 'lodash';
|
||||
import { snakeCase, transform } from 'lodash';
|
||||
import { mapKeysDeep } from 'utils';
|
||||
import PaginationQueryBuilder from 'models/Pagination';
|
||||
import DateSession from 'models/DateSession';
|
||||
@@ -47,4 +47,9 @@ export default class ModelBase extends mixin(Model, [DateSession]) {
|
||||
static relationBindKnex(model) {
|
||||
return this.knexBinded ? model.bindKnex(this.knexBinded) : model;
|
||||
}
|
||||
|
||||
toObject(opt) {
|
||||
const parsedJson = super.$formatJson(this, opt);
|
||||
return parsedJson;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user