2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/server/registerServerMethods.js
2022-01-21 02:27:29 +05:30

15 lines
325 B
JavaScript

import frappe from 'frappe';
import importCharts from '../accounting/importCOA';
import registerReportMethods from '../reports';
export default function registerServerMethods() {
registerReportMethods();
frappe.registerMethod({
method: 'import-coa',
async handler() {
await importCharts();
},
});
}