WIP Financial accounting module.

This commit is contained in:
Ahmed Bouhuolia
2020-01-25 23:34:08 +02:00
parent 488709088b
commit 77c67cc4cb
26 changed files with 1414 additions and 354 deletions

View File

@@ -8,7 +8,10 @@ export default class ModelBase extends Model {
static query(...args) {
return super.query(...args).runAfter((result) => {
return this.collection.from(result);
if (Array.isArray(result)) {
return this.collection.from(result);
}
return result;
});
}
}