BIG-9: fix estimates sorting by customer column.

BIG-10: fix invoices sorting by balance column.
This commit is contained in:
a.bouhuolia
2021-09-11 16:50:09 +02:00
parent 996f1d7718
commit 1ebb5cd8ad
2 changed files with 4 additions and 6 deletions

View File

@@ -171,12 +171,12 @@ export default class SaleEstimate extends mixin(TenantModel, [
*/
static get relationMappings() {
const ItemEntry = require('models/ItemEntry');
const Contact = require('models/Contact');
const Customer = require('models/Customer');
return {
customer: {
relation: Model.BelongsToOneRelation,
modelClass: Contact.default,
modelClass: Customer.default,
join: {
from: 'sales_estimates.customerId',
to: 'contacts.id',