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

17 lines
562 B
JavaScript
Raw Normal View History

2018-01-08 18:00:14 +05:30
const utils = require('../utils');
2018-02-07 18:53:52 +05:30
const number_format = require('../utils/number_format');
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-02-07 18:53:52 +05:30
Object.assign(frappe, number_format);
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
}