Transactions
This commit is contained in:
parent
7834bba793
commit
6dd37a02f4
|
|
@ -51,6 +51,7 @@ class CreditStatusColors {
|
||||||
kCreditStatusSent: _colorTheme.colorInfo,
|
kCreditStatusSent: _colorTheme.colorInfo,
|
||||||
kCreditStatusPartial: _colorTheme.colorPrimary,
|
kCreditStatusPartial: _colorTheme.colorPrimary,
|
||||||
kCreditStatusApplied: _colorTheme.colorSuccess,
|
kCreditStatusApplied: _colorTheme.colorSuccess,
|
||||||
|
kCreditStatusViewed: _colorTheme.colorWarning,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -67,6 +68,7 @@ class PurchaseOrderStatusColors {
|
||||||
kPurchaseOrderStatusAccepted: _colorTheme.colorPrimary,
|
kPurchaseOrderStatusAccepted: _colorTheme.colorPrimary,
|
||||||
kPurchaseOrderStatusReceived: _colorTheme.colorSuccess,
|
kPurchaseOrderStatusReceived: _colorTheme.colorSuccess,
|
||||||
kPurchaseOrderStatusCancelled: _colorTheme.colorDanger,
|
kPurchaseOrderStatusCancelled: _colorTheme.colorDanger,
|
||||||
|
kPurchaseOrderStatusViewed: _colorTheme.colorWarning,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,13 +74,13 @@ class EntityStatusChip extends StatelessWidget {
|
||||||
final credit = entity as InvoiceEntity;
|
final credit = entity as InvoiceEntity;
|
||||||
label = kCreditStatuses[credit.calculatedStatusId];
|
label = kCreditStatuses[credit.calculatedStatusId];
|
||||||
color = CreditStatusColors(state.prefState.colorThemeModel)
|
color = CreditStatusColors(state.prefState.colorThemeModel)
|
||||||
.colors[credit.statusId];
|
.colors[credit.calculatedStatusId];
|
||||||
break;
|
break;
|
||||||
case EntityType.purchaseOrder:
|
case EntityType.purchaseOrder:
|
||||||
final purchaseOrder = entity as InvoiceEntity;
|
final purchaseOrder = entity as InvoiceEntity;
|
||||||
label = kPurchaseOrderStatuses[purchaseOrder.calculatedStatusId];
|
label = kPurchaseOrderStatuses[purchaseOrder.calculatedStatusId];
|
||||||
color = PurchaseOrderStatusColors(state.prefState.colorThemeModel)
|
color = PurchaseOrderStatusColors(state.prefState.colorThemeModel)
|
||||||
.colors[purchaseOrder.statusId];
|
.colors[purchaseOrder.calculatedStatusId];
|
||||||
break;
|
break;
|
||||||
case EntityType.transaction:
|
case EntityType.transaction:
|
||||||
final transaction = entity as TransactionEntity;
|
final transaction = entity as TransactionEntity;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue