chore: update
This commit is contained in:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user