2
0
mirror of https://github.com/frappe/books.git synced 2025-01-23 23:28:24 +00:00
books/common/index.js

17 lines
559 B
JavaScript
Raw Normal View History

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