asdfas
This commit is contained in:
@@ -142,13 +142,13 @@ const Products = () => {
|
||||
const productData = {
|
||||
productId: sharedProduct.id, // Link to the shared product
|
||||
customName: sharedProduct.name, // Use the shared product's name as default
|
||||
customBrand: sharedProduct.brand,
|
||||
brand: sharedProduct.brand,
|
||||
categoryId: null, // Will use the shared product's category
|
||||
customProductType: sharedProduct.productType,
|
||||
customActiveIngredients: sharedProduct.activeIngredients,
|
||||
customDescription: sharedProduct.description,
|
||||
productType: sharedProduct.productType,
|
||||
activeIngredients: sharedProduct.activeIngredients,
|
||||
description: sharedProduct.description,
|
||||
// Set default rate if available
|
||||
customRateAmount: sharedProduct.rates?.[0]?.rateAmount || '',
|
||||
customRateAmount: sharedProduct.rates?.[0]?.rateAmount || null,
|
||||
customRateUnit: sharedProduct.rates?.[0]?.rateUnit || (sharedProduct.productType === 'granular' ? 'lbs/1000 sq ft' : 'oz/1000 sq ft'),
|
||||
notes: `Added from shared product: ${sharedProduct.name}`
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user