chore: update
This commit is contained in:
@@ -608,6 +608,11 @@ export default function OrdersScreen() {
|
|||||||
€
|
€
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
{(itemsModal.commandInfo?.referral_used ?? 0) > 0 && (
|
||||||
|
<Text style={[styles.modalTotal, { color: colors.success }]}>
|
||||||
|
Parrainage: -{Number(itemsModal.commandInfo.referral_used).toFixed(2)} €
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ interface EnrichedDelivery extends DeliveryItem {
|
|||||||
clientNom?: string;
|
clientNom?: string;
|
||||||
clientPrenom?: string;
|
clientPrenom?: string;
|
||||||
items?: Array<{ produit: string; quantite: number; prix: number }>;
|
items?: Array<{ produit: string; quantite: number; prix: number }>;
|
||||||
|
referral_used?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function DashboardScreen() {
|
export default function DashboardScreen() {
|
||||||
@@ -250,6 +251,8 @@ export default function DashboardScreen() {
|
|||||||
detail.delivery?.items ||
|
detail.delivery?.items ||
|
||||||
(d as any).items ||
|
(d as any).items ||
|
||||||
[],
|
[],
|
||||||
|
referral_used:
|
||||||
|
detail.delivery?.referral_used || 0,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
@@ -1715,6 +1718,16 @@ export default function DashboardScreen() {
|
|||||||
{detailsDelivery?.total_prix ?? 0}€
|
{detailsDelivery?.total_prix ?? 0}€
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
{(detailsDelivery?.referral_used ?? 0) > 0 && (
|
||||||
|
<View style={[styles.detailTotalRow, { marginTop: 4 }]}>
|
||||||
|
<Text style={[styles.detailTotalLabel, { color: colors.success }]}>
|
||||||
|
Parrainage client
|
||||||
|
</Text>
|
||||||
|
<Text style={[styles.detailTotalValue, { color: colors.success }]}>
|
||||||
|
-{detailsDelivery?.referral_used?.toFixed(2)}€
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</DetailsModal>
|
</DetailsModal>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user