This commit is contained in:
Hillel Coren 2019-01-01 23:40:23 +02:00
parent 2b82821065
commit 94f779975e
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ abstract class TaskEntity extends Object
} }
double calculateAmount(double taskRate) => double calculateAmount(double taskRate) =>
taskRate * calculateDuration.inSeconds / 3600; taskRate * round(calculateDuration.inSeconds / 3600, 3);
Duration get calculateDuration { Duration get calculateDuration {
int seconds = 0; int seconds = 0;

View File

@ -27,7 +27,7 @@ InvoiceItemEntity convertTaskToInvoiceItem(
..notes = notes ..notes = notes
..cost = taskRateSelector( ..cost = taskRateSelector(
company: state.selectedCompany, project: project, client: client) company: state.selectedCompany, project: project, client: client)
..qty = round(task.duration / (60 * 60), 2)); ..qty = round(task.duration / 3600, 3));
} }
var memoizedTaskList = memo2( var memoizedTaskList = memo2(