mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
refactoring: bills service.
refactoring: bills payments made service.
This commit is contained in:
@@ -9,7 +9,7 @@ exports.up = function(knex) {
|
||||
table.integer('reference_id').index();
|
||||
table.integer('account_id').unsigned().index().references('id').inTable('accounts');
|
||||
table.string('contact_type').nullable().index();
|
||||
table.integer('contact_id').unsigned().nullable().index().references('id').inTable('contacts');
|
||||
table.integer('contact_id').unsigned().nullable().index();
|
||||
table.string('note');
|
||||
table.boolean('draft').defaultTo(false);
|
||||
table.integer('user_id').unsigned().index();
|
||||
|
||||
@@ -14,6 +14,7 @@ exports.up = function(knex) {
|
||||
table.decimal('payment_amount', 13, 3).defaultTo(0);
|
||||
|
||||
table.string('inv_lot_number').index();
|
||||
table.integer('user_id').unsigned();
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Container from 'typedi';
|
||||
import TenancyService from 'services/Tenancy/TenancyService'
|
||||
import TenancyService from 'services/Tenancy/TenancyService';
|
||||
|
||||
exports.up = (knex) => {
|
||||
const tenancyService = Container.get(TenancyService);
|
||||
|
||||
Reference in New Issue
Block a user