feat: review sale estimates.

This commit is contained in:
Ahmed Bouhuolia
2020-10-24 18:16:07 +02:00
parent 173c14bd14
commit 5e139e9b54
9 changed files with 340 additions and 346 deletions

View File

@@ -32,7 +32,7 @@ export default class SaleEstimate extends TenantModel {
to: 'contacts.id',
},
filter(query) {
query.where('contact_type', 'Customer');
query.where('contact_service', 'customer');
}
},
@@ -49,4 +49,17 @@ export default class SaleEstimate extends TenantModel {
},
};
}
/**
* Model defined fields.
*/
static get fields() {
return {
created_at: {
label: 'Created at',
column: 'created_at',
columnType: 'date',
},
};
}
}