This commit was merged in pull request #165.
This commit is contained in:
@@ -49,6 +49,10 @@ function entryLabelKey(operation: BrokerageOperation): string {
|
||||
return `ledger.category.${operation.category}`;
|
||||
}
|
||||
|
||||
function isCouponPayment(operation: BrokerageOperation): boolean {
|
||||
return isOperationType(operation.type, OperationType.Coupon);
|
||||
}
|
||||
|
||||
function isIncomePayment(operation: BrokerageOperation): boolean {
|
||||
return [OperationType.Coupon, OperationType.Dividend].some(type =>
|
||||
isOperationType(operation.type, type),
|
||||
@@ -131,6 +135,7 @@ function paymentPresentation(
|
||||
export {
|
||||
brokerageOperationGroupKey,
|
||||
entryLabelKey,
|
||||
isCouponPayment,
|
||||
isIncomePayment,
|
||||
isZeroDecimal,
|
||||
operationLabelKey,
|
||||
|
||||
Reference in New Issue
Block a user