-
-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jan development #431
base: develop
Are you sure you want to change the base?
Jan development #431
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all thanks for contribution, since I'm the main maintainer of Bigcapital, wanted to give some early notes just to keep the feedback frequency early to maintain the code consistency and be able to merge the PR later.
@@ -0,0 +1,433 @@ | |||
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid adding these kind of files in the PR since not related to it.
@@ -526,6 +526,10 @@ html[lang^=en] body { | |||
border-top: 3px double #666; | |||
font-weight: bold; | |||
} | |||
.invoice__table-total table tbody tr.total td { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That kind of change would be better if it was in another PR.
exports.up = function (knex) { | ||
return knex.schema.createTable('user_tenants', (table) => { | ||
table.increments(); | ||
table.integer('user_id'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No database relation to users and tenants table.
const tenant = await Tenant.query() | ||
.findById(user.tenantId) | ||
.withGraphFetched('metadata'); | ||
const tenant = await UserTenants.query() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of exposing all the tenants data in sign-in response would be better to add another endpoint retrieves all associated tenants to the current authenticated user.
Integrated API to get data of tenants