few fixes and made sure ledger widget displays the name of ledger wallet
This commit is contained in:
14
frontend/pweb/lib/utils/report/operations/document_rule.dart
Normal file
14
frontend/pweb/lib/utils/report/operations/document_rule.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:pweb/utils/payment/operation_code.dart';
|
||||
|
||||
const String _documentOperation = 'card_payout';
|
||||
const String _documentAction = 'send';
|
||||
|
||||
bool isOperationDocumentEligible(String? operationCode) {
|
||||
final pair = parseOperationCodePair(operationCode);
|
||||
if (pair == null) return false;
|
||||
return _isDocumentOperationPair(pair);
|
||||
}
|
||||
|
||||
bool _isDocumentOperationPair(OperationCodePair pair) {
|
||||
return pair.operation == _documentOperation && pair.action == _documentAction;
|
||||
}
|
||||
Reference in New Issue
Block a user