Skip to content

Commit

Permalink
delivery type disable fix, product sku name change (#939)
Browse files Browse the repository at this point in the history
Co-authored-by: nabeelmd-eGov <[email protected]>
  • Loading branch information
nabeelmd-eGov and nabeelmd-eGov authored Jun 19, 2024
1 parent 072759a commit 9e66851
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const deliveryConfig = [
conditionConfig: [
{
deliveryType: "DIRECT",
disableDeliveryType: true,
attributeConfig: [
{
key: 1,
Expand Down Expand Up @@ -78,6 +79,7 @@ export const deliveryConfig = [
],
},
{
disableDeliveryType: true,
deliveryType: "DIRECT",
attributeConfig: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function AddProduct() {
tenantId: tenantId,
productId: i?.id,
variation: target?.variant,
sku: target?.variant,
sku: `${target?.name} - ${target?.variant}`,
};
}
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,12 @@ const AddDeliveryRule = ({ targetedData, deliveryRules, setDeliveryRules, index,
optionsKey="code"
onSelect={(value) => updateDeliveryType(value)}
t={t}
disabled={
filteredDeliveryConfig?.deliveryConfig?.find((i, n) => n === targetedData?.deliveryIndex - 1)?.conditionConfig?.[delivery?.ruleKey - 1]
?.disableDeliveryType
? true
: false
}
/>
</LabelFieldPair>
)}
Expand Down

0 comments on commit 9e66851

Please sign in to comment.