2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/server/registerServerMethods.js

15 lines
327 B
JavaScript
Raw Normal View History

import frappe from 'frappejs';
import importCharts from '../accounting/importCOA';
import registerReportMethods from '../reports';
2018-10-21 12:49:33 +00:00
export default function registerServerMethods() {
2018-10-21 12:49:33 +00:00
registerReportMethods();
frappe.registerMethod({
method: 'import-coa',
async handler() {
await importCharts();
2018-10-21 12:49:33 +00:00
}
});
};