report profit loss

This commit is contained in:
efrilm
2025-11-03 21:28:36 +07:00
parent 5a7892aa99
commit 07932d688f
23 changed files with 5188 additions and 1 deletions
+10
View File
@@ -44,3 +44,13 @@ Map<String, int> getChairDistribution(int capacity) {
return {'top': side, 'bottom': side, 'left': 1, 'right': 1};
}
}
double safeDouble(double value) {
if (value.isNaN || value.isInfinite) return 0.0;
return value;
}
int safeRound(double value) {
if (value.isNaN || value.isInfinite) return 0;
return value.round();
}
+1
View File
@@ -13,4 +13,5 @@ class ApiPath {
static const String analyticProducts = '/api/v1/analytics/products';
static const String analyticPaymentMethods =
'/api/v1/analytics/payment-methods';
static const String analyticProfitLoss = '/api/v1/analytics/profit-loss';
}