fix: sale invoice relation with customer.

This commit is contained in:
Ahmed Bouhuolia
2020-10-26 16:45:49 +02:00
parent dea6cdd245
commit 7558f68fa0
3 changed files with 13 additions and 8 deletions

View File

@@ -85,7 +85,7 @@ export default class SaleInvoice extends TenantModel {
to: 'contacts.id',
},
filter(query) {
query.where('contact_type', 'Customer');
query.where('contact_service', 'Customer');
}
},