2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 19:29:02 +00:00
books/server/registerServerMethods.js
2019-12-26 23:56:42 +05:30

15 lines
344 B
JavaScript

const frappe = require('frappejs');
const registerReportMethods = require('../reports');
module.exports = function registerServerMethods() {
registerReportMethods();
frappe.registerMethod({
method: 'import-coa',
async handler() {
const importCOA = require('../accounting/importCOA');
await importCOA();
}
});
};