fix for quote and operations addition
This commit is contained in:
@@ -23,14 +23,15 @@ OperationItem mapPaymentToOperation(Payment payment) {
|
||||
final payId = _firstNonEmpty([payment.paymentRef]) ?? '-';
|
||||
final name =
|
||||
_firstNonEmpty([payment.lastQuote?.quoteRef, payment.paymentRef]) ?? '-';
|
||||
final comment =
|
||||
_firstNonEmpty([
|
||||
payment.comment,
|
||||
payment.failureReason,
|
||||
payment.failureCode,
|
||||
payment.state,
|
||||
]) ??
|
||||
'';
|
||||
// final comment =
|
||||
// _firstNonEmpty([
|
||||
// ...payment.operations.map((operation) => operation.comment),
|
||||
// payment.comment,
|
||||
// payment.failureReason,
|
||||
// payment.failureCode,
|
||||
// payment.state,
|
||||
// ]) ??
|
||||
// '';
|
||||
final operationDocument = _resolveOperationDocument(payment);
|
||||
|
||||
return OperationItem(
|
||||
@@ -47,7 +48,7 @@ OperationItem mapPaymentToOperation(Payment payment) {
|
||||
cardNumber: null,
|
||||
name: name,
|
||||
date: resolvePaymentDate(payment),
|
||||
comment: comment,
|
||||
// comment: comment,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user