Fix quote count
This commit is contained in:
parent
b65cb1590c
commit
c0b79794a8
|
|
@ -75,11 +75,9 @@ EntityStats quoteStatsForClient(
|
||||||
String clientId, BuiltMap<String, InvoiceEntity> quoteMap) {
|
String clientId, BuiltMap<String, InvoiceEntity> quoteMap) {
|
||||||
int countActive = 0;
|
int countActive = 0;
|
||||||
int countArchived = 0;
|
int countArchived = 0;
|
||||||
print('## CLIENT ID: $clientId');
|
|
||||||
quoteMap.forEach((quoteId, quote) {
|
quoteMap.forEach((quoteId, quote) {
|
||||||
print('## QUOTE ID: $quoteId, ${quote.number} ${quote.amount}');
|
|
||||||
if (quote.clientId == clientId) {
|
if (quote.clientId == clientId) {
|
||||||
print('## MATCH');
|
|
||||||
if (quote.isActive) {
|
if (quote.isActive) {
|
||||||
countActive++;
|
countActive++;
|
||||||
} else if (quote.isArchived) {
|
} else if (quote.isArchived) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue