mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
Merge branch 'master' of https://github.com/abouolia/Bigcapital
This commit is contained in:
@@ -189,11 +189,9 @@ export function useInvoicesTableColumns() {
|
|||||||
clickable: true,
|
clickable: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'balance',
|
id: 'amount',
|
||||||
Header: intl.get('balance'),
|
Header: intl.get('balance'),
|
||||||
accessor: (r) => (
|
accessor: 'formatted_amount',
|
||||||
<Money amount={r.balance} currency={r.currency_code} />
|
|
||||||
),
|
|
||||||
width: 120,
|
width: 120,
|
||||||
className: 'balance',
|
className: 'balance',
|
||||||
clickable: true,
|
clickable: true,
|
||||||
|
|||||||
@@ -29,13 +29,13 @@ export default {
|
|||||||
payment_account: {
|
payment_account: {
|
||||||
name: 'bill_payment.field.payment_account',
|
name: 'bill_payment.field.payment_account',
|
||||||
column: 'payment_account_id',
|
column: 'payment_account_id',
|
||||||
|
|
||||||
fieldType: 'relation',
|
fieldType: 'relation',
|
||||||
fieldRelation: 'paymentAccount',
|
|
||||||
|
|
||||||
fieldRelationType: 'enumeration',
|
relationType: 'enumeration',
|
||||||
relationLabelField: 'name',
|
relationKey: 'paymentAccount',
|
||||||
relationKeyField: 'slug',
|
|
||||||
|
relationEntityLabel: 'name',
|
||||||
|
relationEntityKey: 'slug',
|
||||||
},
|
},
|
||||||
payment_number: {
|
payment_number: {
|
||||||
name: 'bill_payment.field.payment_number',
|
name: 'bill_payment.field.payment_number',
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export default {
|
|||||||
relationType: 'enumeration',
|
relationType: 'enumeration',
|
||||||
relationKey: 'customer',
|
relationKey: 'customer',
|
||||||
|
|
||||||
relationEntityLabel: 'name',
|
relationEntityLabel: 'display_name',
|
||||||
relationEntityKey: 'id',
|
relationEntityKey: 'id',
|
||||||
},
|
},
|
||||||
payment_date: {
|
payment_date: {
|
||||||
|
|||||||
@@ -38,13 +38,13 @@ export default class PaymentReceive extends mixin(TenantModel, [
|
|||||||
static get relationMappings() {
|
static get relationMappings() {
|
||||||
const PaymentReceiveEntry = require('models/PaymentReceiveEntry');
|
const PaymentReceiveEntry = require('models/PaymentReceiveEntry');
|
||||||
const AccountTransaction = require('models/AccountTransaction');
|
const AccountTransaction = require('models/AccountTransaction');
|
||||||
const Contact = require('models/Contact');
|
const Customer = require('models/Customer');
|
||||||
const Account = require('models/Account');
|
const Account = require('models/Account');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
customer: {
|
customer: {
|
||||||
relation: Model.BelongsToOneRelation,
|
relation: Model.BelongsToOneRelation,
|
||||||
modelClass: Contact.default,
|
modelClass: Customer.default,
|
||||||
join: {
|
join: {
|
||||||
from: 'payment_receives.customerId',
|
from: 'payment_receives.customerId',
|
||||||
to: 'contacts.id',
|
to: 'contacts.id',
|
||||||
|
|||||||
@@ -171,12 +171,12 @@ export default class SaleEstimate extends mixin(TenantModel, [
|
|||||||
*/
|
*/
|
||||||
static get relationMappings() {
|
static get relationMappings() {
|
||||||
const ItemEntry = require('models/ItemEntry');
|
const ItemEntry = require('models/ItemEntry');
|
||||||
const Contact = require('models/Contact');
|
const Customer = require('models/Customer');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
customer: {
|
customer: {
|
||||||
relation: Model.BelongsToOneRelation,
|
relation: Model.BelongsToOneRelation,
|
||||||
modelClass: Contact.default,
|
modelClass: Customer.default,
|
||||||
join: {
|
join: {
|
||||||
from: 'sales_estimates.customerId',
|
from: 'sales_estimates.customerId',
|
||||||
to: 'contacts.id',
|
to: 'contacts.id',
|
||||||
|
|||||||
Reference in New Issue
Block a user