2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/common/index.js

17 lines
518 B
JavaScript
Raw Normal View History

2018-01-08 12:30:14 +00:00
const utils = require('../utils');
2018-02-07 13:23:52 +00:00
const number_format = require('../utils/number_format');
2018-02-14 12:50:56 +00:00
const format = require('../utils/format');
2018-01-08 12:30:14 +00:00
const model = require('../model');
const _session = require('../session');
const errors = require('./errors');
2018-01-08 12:30:14 +00:00
module.exports = {
2018-01-12 12:25:07 +00:00
init_libs(frappe) {
Object.assign(frappe, utils);
2018-02-07 13:23:52 +00:00
Object.assign(frappe, number_format);
2018-02-14 12:50:56 +00:00
Object.assign(frappe, format);
2018-01-12 12:25:07 +00:00
frappe.model = model;
frappe._session = _session;
frappe.errors = errors;
2018-01-12 12:25:07 +00:00
}
2018-01-08 12:30:14 +00:00
}