{value}
+ {subtitle &&{subtitle}
} ++ {formatDate(profitData.date_from)} - {formatDate(profitData.date_to)} +
++ {formatShortCurrency(profitData.summary.net_profit)} +
+Margin: {formatPercentage(profitData.summary.net_profit_margin)}
+{profitData.summary.total_orders}
++ {formatShortCurrency(profitData.summary.total_tax + profitData.summary.total_discount)} +
++ Tax: {formatShortCurrency(profitData.summary.total_tax)} | Discount:{' '} + {formatShortCurrency(profitData.summary.total_discount)} +
+| Date | +Revenue | +Cost | +Profit | +Margin | +Orders | +
|---|---|---|---|---|---|
| + {formatDate(day.date)} + | ++ {formatCurrency(day.revenue)} + | ++ {formatCurrency(day.cost)} + | += 0 ? 'text-green-600' : 'text-red-600' + }`} + > + {formatCurrency(day.gross_profit)} + | ++ + {formatPercentage(day.gross_profit_margin)} + + | +{day.orders} | +
{product.category_name}
+= 0 ? 'text-green-600' : 'text-red-600'}`}> + {formatCurrency(product.gross_profit)} +
+{formatPercentage(product.gross_profit_margin)}
+| Product | +Category | +Qty | +Revenue | +Cost | +Profit | +Margin | +Per Unit | +
|---|---|---|---|---|---|---|---|
|
+ {product.product_name}
+ |
+ + + {product.category_name} + + | ++ {product.quantity_sold} + | ++ {formatCurrency(product.revenue)} + | ++ {formatCurrency(product.cost)} + | += 0 ? 'text-green-600' : 'text-red-600' + }`} + > + {formatCurrency(product.gross_profit)} + | ++ + {formatPercentage(product.gross_profit_margin)} + + | += 0 ? 'text-green-600' : 'text-red-600' + }`} + > + {formatCurrency(product.profit_per_unit)} + | +