2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 09:24:04 +00:00
books/common/index.js

17 lines
559 B
JavaScript
Raw Normal View History

2018-01-08 12:30:14 +00:00
const utils = require('../utils');
2018-07-14 16:12:34 +00:00
const numberFormat = require('../utils/numberFormat');
2018-02-14 12:50:56 +00:00
const format = require('../utils/format');
const errors = require('./errors');
const BaseDocument = require('frappejs/model/document');
const BaseMeta = require('frappejs/model/meta');
2018-01-08 12:30:14 +00:00
module.exports = {
initLibs(frappe) {
2018-01-12 12:25:07 +00:00
Object.assign(frappe, utils);
2018-07-14 16:12:34 +00:00
Object.assign(frappe, numberFormat);
2018-02-14 12:50:56 +00:00
Object.assign(frappe, format);
frappe.errors = errors;
frappe.BaseDocument = BaseDocument;
frappe.BaseMeta = BaseMeta;
2018-01-12 12:25:07 +00:00
}
2018-01-08 12:30:14 +00:00
}