mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
1a8a23d2a2
- refactor Common Js imports to ES6
15 lines
327 B
JavaScript
15 lines
327 B
JavaScript
import frappe from 'frappejs';
|
|
import importCharts from '../accounting/importCOA';
|
|
import registerReportMethods from '../reports';
|
|
|
|
export default function registerServerMethods() {
|
|
registerReportMethods();
|
|
|
|
frappe.registerMethod({
|
|
method: 'import-coa',
|
|
async handler() {
|
|
await importCharts();
|
|
}
|
|
});
|
|
};
|