Merge branch 'fix/marketing' into 'development'

[FIX/FE] Marketing

See merge request mbugroup/lti-web-client!476
This commit is contained in:
Rivaldi A N S
2026-05-13 06:55:55 +00:00
@@ -123,8 +123,17 @@ export const SalesProductToFieldValues = (
total_price: product.total_price, total_price: product.total_price,
marketing_type: product.marketing_type marketing_type: product.marketing_type
? { ? {
value: product.marketing_type, value:
label: formatTitleCase(product.marketing_type), product.marketing_type === 'AYAM' ||
product.marketing_type === 'AYAM_PULLET'
? 'AYAM,AYAM_PULLET'
: product.marketing_type,
label: formatTitleCase(
product.marketing_type === 'AYAM' ||
product.marketing_type === 'AYAM_PULLET'
? 'AYAM'
: product.marketing_type
),
} }
: null, : null,
convertion_unit: product.convertion_unit convertion_unit: product.convertion_unit
@@ -185,8 +194,17 @@ export const DeliveryProductToFieldValues = (
marketing_product_id: item.marketing_product_id ?? salesOrder?.id, marketing_product_id: item.marketing_product_id ?? salesOrder?.id,
marketing_type: salesOrder?.marketing_type marketing_type: salesOrder?.marketing_type
? { ? {
value: salesOrder?.marketing_type, value:
label: formatTitleCase(salesOrder?.marketing_type), salesOrder?.marketing_type === 'AYAM' ||
salesOrder?.marketing_type === 'AYAM_PULLET'
? 'AYAM,AYAM_PULLET'
: salesOrder?.marketing_type,
label: formatTitleCase(
salesOrder?.marketing_type === 'AYAM' ||
salesOrder?.marketing_type === 'AYAM_PULLET'
? 'AYAM'
: salesOrder?.marketing_type
),
} }
: null, : null,
convertion_unit: salesOrder?.convertion_unit convertion_unit: salesOrder?.convertion_unit