2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00
books/common/index.js
2018-01-24 17:22:05 +05:30

18 lines
508 B
JavaScript

const utils = require('../utils');
const model = require('../model');
const BaseDocument = require('../model/document');
const BaseMeta = require('../model/meta');
const _session = require('../session');
const errors = require('./errors');
module.exports = {
init_libs(frappe) {
Object.assign(frappe, utils);
frappe.model = model;
frappe.BaseDocument = BaseDocument;
frappe.BaseMeta = BaseMeta;
frappe._session = _session;
frappe.errors = errors;
}
}