chore: update

This commit is contained in:
2026-03-08 21:07:19 +01:00
parent 78f8a787c1
commit bda2a1d31a
@@ -641,13 +641,30 @@ export default function DashboardScreen() {
{item.total_prix ?? 0}
</Text>
</View>
{(item.referral_used ?? 0) > 0 && (
<View style={[styles.totalRow, { marginTop: 2 }]}>
<Text style={[styles.totalLabel, { color: colors.success }]}>
Parrainage client
</Text>
<Text style={[styles.totalValue, { color: colors.success }]}>
-{(item.referral_used ?? 0).toFixed(2)}
</Text>
</View>
)}
</View>
)}
{(!item.items || item.items.length === 0) && (
<Text style={styles.priceOnly}>
{item.total_prix ?? 0}
</Text>
<>
<Text style={styles.priceOnly}>
{item.total_prix ?? 0}
</Text>
{(item.referral_used ?? 0) > 0 && (
<Text style={[styles.priceOnly, { color: colors.success, marginTop: 2 }]}>
Parrainage: -{(item.referral_used ?? 0).toFixed(2)}
</Text>
)}
</>
)}
{item.clientPhone && (