feat: Link sale invoice to payment receive entries.

This commit is contained in:
Ahmed Bouhuolia
2020-08-26 13:06:16 +02:00
parent ab6bc0517f
commit e23b8d9947
2 changed files with 11 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ export default class PaymentReceiveService {
const paymentReceive = await PaymentReceive.tenant()
.query()
.where('id', paymentReceiveId)
.withGraphFetched('entries')
.withGraphFetched('entries.invoice')
.first();
return paymentReceive;
}