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