feat: add ordersCount to product model and display in SelectProductElement

This commit is contained in:
2025-06-07 12:37:55 +03:00
parent 640a9fb3a2
commit 43ddf76827
2 changed files with 4 additions and 1 deletions

View File

@@ -24,7 +24,9 @@ const SelectProductElement: FC<Props> = React.memo(({product, onPress}) => {
<View style={styles.descriptionContent}> <View style={styles.descriptionContent}>
<DText>{product.productName}</DText> <DText>{product.productName}</DText>
<DText style={{textAlign: "justify"}}>{}</DText> <DText>Заказов: {product.ordersCount}</DText>
<DText style={{textAlign: "justify"}}>""</DText>
<DText>Артикул DENCO: {product.dencoArticle}</DText> <DText>Артикул DENCO: {product.dencoArticle}</DText>
</View> </View>

View File

@@ -3,4 +3,5 @@ export type Product = {
dencoArticle: number; dencoArticle: number;
productName: string; productName: string;
thumbUrl: string; thumbUrl: string;
ordersCount?:number
} }