mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
- feat: Sales estimates.
- feat: Sales invoices. - feat: Sales payment receives. - feat: Purchases bills. - feat: Purchases bills payments that made to the vendors.
This commit is contained in:
27
server/src/lib/QueryBuilderBulkOperations/QueryBuilder.js
Normal file
27
server/src/lib/QueryBuilderBulkOperations/QueryBuilder.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import { QueryBuilder } from "knex"
|
||||
import { QueryBuilder } from 'objection';
|
||||
|
||||
export default class BulkOperationsQueryBuilder extends QueryBuilder {
|
||||
|
||||
bulkInsert(collection) {
|
||||
const opers = [];
|
||||
|
||||
collection.forEach((dataset) => {
|
||||
const insertOper = this.insert({ ...dataset });
|
||||
opers.push(insertOper);
|
||||
});
|
||||
return Promise.all(opers);
|
||||
}
|
||||
|
||||
bulkDelete(rowsIds) {
|
||||
|
||||
}
|
||||
|
||||
bulkUpdate(dataset, whereColumn) {
|
||||
|
||||
}
|
||||
|
||||
bulkPatch(newDataset, oldDataset) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user