chore: build
This commit is contained in:
@@ -678,12 +678,17 @@ export default function OrderDetailScreen() {
|
||||
<Text style={styles.info}>Client: {command.username}</Text>
|
||||
<Text style={styles.info}>Adresse: {command.adresse}</Text>
|
||||
<Text style={styles.info}>
|
||||
Total: {command.total_prix?.toFixed(2)} €
|
||||
Total brut: {command.total_prix?.toFixed(2)} €
|
||||
</Text>
|
||||
{command.referral_used > 0 && (
|
||||
<Text style={[styles.info, { color: colors.success }]}>
|
||||
Parrainage utilisé: -{command.referral_used?.toFixed(2)} €
|
||||
</Text>
|
||||
<>
|
||||
<Text style={[styles.info, { color: colors.success }]}>
|
||||
Parrainage utilisé: -{command.referral_used?.toFixed(2)} €
|
||||
</Text>
|
||||
<Text style={[styles.info, { fontWeight: "700", color: colors.textPrimary }]}>
|
||||
Net: {(command.total_prix - command.referral_used).toFixed(2)} €
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
{command.livreur_assign && (
|
||||
<Text style={styles.info}>
|
||||
|
||||
@@ -487,8 +487,18 @@ export default function OrdersScreen() {
|
||||
<Text style={styles.info}>Client: {item.username}</Text>
|
||||
<Text style={styles.info}>Adresse: {item.adresse}</Text>
|
||||
<Text style={styles.info}>
|
||||
Total: {item.total_prix.toFixed(2)} €
|
||||
Total{(item.referral_used ?? 0) > 0 ? " brut" : ""}: {item.total_prix.toFixed(2)} €
|
||||
</Text>
|
||||
{(item.referral_used ?? 0) > 0 && (
|
||||
<>
|
||||
<Text style={[styles.info, { color: colors.success }]}>
|
||||
Parrainage: -{(item.referral_used ?? 0).toFixed(2)} €
|
||||
</Text>
|
||||
<Text style={[styles.info, { fontWeight: "700" }]}>
|
||||
Net: {(item.total_prix - (item.referral_used ?? 0)).toFixed(2)} €
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
|
||||
<TouchableOpacity
|
||||
style={styles.selectBtn}
|
||||
|
||||
@@ -721,24 +721,34 @@ export default function DashboardScreen() {
|
||||
</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 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 style={[styles.totalRow, { marginTop: 2 }]}>
|
||||
<Text style={[styles.totalLabel, { fontWeight: "700" }]}>
|
||||
Net à encaisser
|
||||
</Text>
|
||||
<Text style={[styles.totalValue, { fontWeight: "700" }]}>
|
||||
{((item.total_prix ?? 0) - (item.referral_used ?? 0)).toFixed(2)}€
|
||||
</Text>
|
||||
</View>
|
||||
</>
|
||||
)}
|
||||
</View>
|
||||
)}
|
||||
@@ -1994,24 +2004,34 @@ export default function DashboardScreen() {
|
||||
</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>
|
||||
<>
|
||||
<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>
|
||||
<View style={[styles.detailTotalRow, { marginTop: 4 }]}>
|
||||
<Text style={[styles.detailTotalLabel, { fontWeight: "700" }]}>
|
||||
Net à encaisser
|
||||
</Text>
|
||||
<Text style={[styles.detailTotalValue, { fontWeight: "700" }]}>
|
||||
{((detailsDelivery?.total_prix ?? 0) - (detailsDelivery?.referral_used ?? 0)).toFixed(2)}€
|
||||
</Text>
|
||||
</View>
|
||||
</>
|
||||
)}
|
||||
</ScrollView>
|
||||
</DetailsModal>
|
||||
|
||||
Reference in New Issue
Block a user