some updates
This commit is contained in:
@@ -81,6 +81,10 @@ export class SalesInvoicesService {
|
||||
'TspProviderResponseStatus',
|
||||
invoice.tsp_attempts?.[0]?.status || TspProviderResponseStatus.NOT_SEND,
|
||||
),
|
||||
settlement_type: translateEnumValue(
|
||||
'InvoiceSettlementType',
|
||||
invoice.settlement_type,
|
||||
),
|
||||
}
|
||||
|
||||
return ResponseMapper.single(mappedInvoice)
|
||||
@@ -290,7 +294,9 @@ export class SalesInvoicesService {
|
||||
|
||||
if (query.status) {
|
||||
if (query.status === TspProviderResponseStatus.NOT_SEND) {
|
||||
where.tsp_attempts = undefined
|
||||
where.tsp_attempts = {
|
||||
none: {},
|
||||
}
|
||||
} else {
|
||||
where.tsp_attempts = {
|
||||
some: {
|
||||
|
||||
Reference in New Issue
Block a user