Fix currency symbol bug

This commit is contained in:
Hillel Coren 2020-05-19 10:50:18 +03:00
parent 7eafd0d75c
commit 50ffcf9df2
5 changed files with 7 additions and 4 deletions

View File

@ -135,6 +135,7 @@ class WebClient {
}
String _checkUrl(String url) {
print('## _checkUrl (PRE): $url');
if (!url.contains('/api/v1')) {
url = '/api/v1' + url;
}
@ -147,6 +148,7 @@ String _checkUrl(String url) {
url += '?';
}
print('## _checkUrl (POST): $url');
return url;
}

View File

@ -122,6 +122,7 @@ class ClientScreen extends StatelessWidget {
floatingActionButton: userCompany.canCreate(EntityType.client)
? FloatingActionButton(
heroTag: 'client_fab',
backgroundColor: Theme.of(context).primaryColorDark,
onPressed: () {
createEntityByType(
context: context, entityType: EntityType.client);

View File

@ -39,7 +39,7 @@ class CreditPresenter extends EntityPresenter {
case CreditFields.date:
return Text(formatDate(credit.date, context));
case CreditFields.amount:
return Text(formatNumber(credit.amount, context));
return Text(formatNumber(credit.amount, context, clientId: credit.clientId));
case CreditFields.balance:
return Text(formatNumber(credit.balance, context));
}

View File

@ -43,9 +43,9 @@ class InvoicePresenter extends EntityPresenter {
case InvoiceFields.invoiceDate:
return Text(formatDate(invoice.date, context));
case InvoiceFields.amount:
return Text(formatNumber(invoice.amount, context));
return Text(formatNumber(invoice.amount, context, clientId: invoice.clientId));
case InvoiceFields.balance:
return Text(formatNumber(invoice.balance, context));
return Text(formatNumber(invoice.balance, context, clientId: invoice.clientId));
case InvoiceFields.dueDate:
return Text(formatDate(invoice.dueDate, context));
}

View File

@ -43,7 +43,7 @@ class QuotePresenter extends EntityPresenter {
case QuoteFields.date:
return Text(formatDate(quote.date, context));
case QuoteFields.amount:
return Text(formatNumber(quote.amount, context));
return Text(formatNumber(quote.amount, context, clientId: quote.clientId));
case QuoteFields.validUntil:
return Text(formatDate(quote.dueDate, context));
}