mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
15 lines
427 B
JavaScript
15 lines
427 B
JavaScript
const frappe = require('frappejs');
|
|
const registerReportMethods = require('../reports');
|
|
|
|
module.exports = function registerServerMethods() {
|
|
registerReportMethods();
|
|
|
|
frappe.registerMethod({
|
|
method: 'import-coa',
|
|
async handler() {
|
|
const standardCOA = require('../fixtures/standardCOA');
|
|
const importCOA = require('../models/doctype/Account/importCOA');
|
|
await importCOA(standardCOA);
|
|
}
|
|
});
|
|
} |