\r\n
{itm.giftcard.name}
\r\n
{itm.description}
\r\n {isMobile && (\r\n
\r\n {!editable && (\r\n <>\r\n {itm.discountType == \"\" ? (\r\n
\r\n
${itm.amount / 100}
\r\n
\r\n ) : (\r\n
\r\n
${itm.amount / 100}
\r\n
\r\n )}\r\n {itm.discountType == \"amount\" && itm.discountType != \"\" && (\r\n
${itm.amount / 100 - itm.discountAmount}
\r\n )}\r\n {itm.discountType == \"percent\" && itm.discountType != \"\" && (\r\n
${itm.amount / 100 - (itm.amount / 10000) * itm.discountAmount}
\r\n )}\r\n >\r\n )}\r\n {editable && (\r\n <>\r\n
\r\n \r\n {({ field }) => (\r\n <>\r\n {amountsFixed.length == 0 || amountsRange ? (\r\n $}\r\n />\r\n ) : (\r\n \r\n \r\n {amountsFixed.map((el, ind) => (\r\n \r\n $ {el.amount / 100}{\" \"}\r\n {el.description != \"\" && el.description ? \" ( \" + el.description + \" ) \" : \"\"}\r\n \r\n ))}\r\n \r\n \r\n )}\r\n >\r\n )}\r\n \r\n \r\n >\r\n )}\r\n
\r\n )}\r\n {!editable && itm.isGift && (\r\n <>\r\n {itm.toName &&
Para: {itm.toName}
}\r\n {itm.toEmail &&
{itm.toEmail}
}\r\n {itm.toMessage &&
{itm.toMessage}
}\r\n >\r\n )}\r\n {editable && itm.isGift && (\r\n <>\r\n
\r\n \r\n Destinatario * \r\n \r\n {({ field }) => (\r\n {\r\n handleChangeName(e);\r\n handleChange(e);\r\n }}\r\n inputProps={{\r\n maxLength: 60,\r\n }}\r\n labelWidth={100}\r\n />\r\n )}\r\n \r\n \r\n \r\n Email * \r\n \r\n {({ field }) => (\r\n {\r\n handleChangeEmail(e);\r\n handleChange(e);\r\n }}\r\n inputProps={{\r\n maxLength: 60,\r\n }}\r\n labelWidth={50}\r\n />\r\n )}\r\n \r\n \r\n \r\n Mensaje \r\n \r\n {({ field }) => (\r\n {\r\n handleChangeMessage(e);\r\n handleChange(e);\r\n }}\r\n inputProps={{\r\n maxLength: 500,\r\n }}\r\n labelWidth={60}\r\n />\r\n )}\r\n \r\n \r\n \r\n >\r\n )}\r\n
\r\n {!editable && (\r\n <>\r\n {itm.discountType == \"\" ? (\r\n couponResult.applyTo ? (\r\n couponResult.applyTo == \"all\" ? (\r\n
\r\n
${itm.amount / 100}
\r\n
\r\n ) : sessionStorage.getItem(\"couponGiftcard\") == \"true\" ? (\r\n
\r\n
${itm.amount / 100}
\r\n
\r\n ) : (\r\n
\r\n
${itm.amount / 100}
\r\n
\r\n )\r\n ) : (\r\n
\r\n
${itm.amount / 100}
\r\n
\r\n )\r\n ) : (\r\n
\r\n
${itm.amount / 100}
\r\n
\r\n )}\r\n {itm.discountType == \"amount\" && itm.discountType != \"\" && (\r\n
\r\n ${itm.amount / 100 - itm.discountAmount}\r\n
\r\n )}\r\n {itm.discountType == \"percent\" && itm.discountType != \"\" && (\r\n
\r\n ${itm.amount / 100 - (itm.amount / 10000) * itm.discountAmount}\r\n
\r\n )}\r\n {couponResult.type && couponResult.type == \"amount\" && couponResult.applyTo == \"all\" && (\r\n
\r\n $ { getDiscountBalance(itm) }\r\n
\r\n )}\r\n {couponResult.type &&\r\n couponResult.type == \"amount\" &&\r\n couponResult.applyTo == \"giftcards\" &&\r\n sessionStorage.getItem(\"couponGiftcard\") == \"true\" && (\r\n
\r\n $\r\n {itm.discountType == \"amount\"\r\n ? isInteger(\r\n Number(\r\n itm.amount / 100 -\r\n itm.discountAmount -\r\n couponResult.amount / 100 / Number(sessionStorage.getItem(\"orderCount\"))\r\n )\r\n )\r\n ? Number(\r\n itm.amount / 100 -\r\n itm.discountAmount -\r\n couponResult.amount / 100 / Number(sessionStorage.getItem(\"orderCount\"))\r\n )\r\n : Number(\r\n itm.amount / 100 -\r\n itm.discountAmount -\r\n couponResult.amount / 100 / Number(sessionStorage.getItem(\"orderCount\"))\r\n ).toFixed(2)\r\n : itm.discountType == \"percent\"\r\n ? isInteger(\r\n Number(\r\n itm.amount / 100 -\r\n (itm.amount / 10000) * itm.discountAmount -\r\n couponResult.amount / 100 / Number(sessionStorage.getItem(\"orderCount\"))\r\n )\r\n )\r\n ? Number(\r\n itm.amount / 100 -\r\n (itm.amount / 10000) * itm.discountAmount -\r\n couponResult.amount / 100 / Number(sessionStorage.getItem(\"orderCount\"))\r\n )\r\n : Number(\r\n itm.amount / 100 -\r\n (itm.amount / 10000) * itm.discountAmount -\r\n couponResult.amount / 100 / Number(sessionStorage.getItem(\"orderCount\"))\r\n ).toFixed(2)\r\n : itm.discountType == \"\" &&\r\n isInteger(\r\n Number(\r\n itm.amount / 100 - couponResult.amount / 100 / Number(sessionStorage.getItem(\"orderCount\"))\r\n )\r\n )\r\n ? Number(itm.amount / 100 - couponResult.amount / 100 / Number(sessionStorage.getItem(\"orderCount\")))\r\n : Number(\r\n itm.amount / 100 - couponResult.amount / 100 / Number(sessionStorage.getItem(\"orderCount\"))\r\n ).toFixed(2)}\r\n
\r\n )}\r\n {couponResult.type && couponResult.type == \"percent\" && couponResult.applyTo == \"all\" && (\r\n
\r\n $\r\n {itm.discountType == \"amount\"\r\n ? isInteger(Number(((itm.amount / 100 - itm.discountAmount) * (100 - couponResult.amount)) / 100))\r\n ? Number(((itm.amount / 100 - itm.discountAmount) * (100 - couponResult.amount)) / 100)\r\n : Number(((itm.amount / 100 - itm.discountAmount) * (100 - couponResult.amount)) / 100).toFixed(2)\r\n : itm.discountType == \"percent\"\r\n ? isInteger(\r\n Number(\r\n ((itm.amount / 100 - (itm.amount / 10000) * itm.discountAmount) * (100 - couponResult.amount)) /\r\n 100\r\n )\r\n )\r\n ? Number(\r\n ((itm.amount / 100 - (itm.amount / 10000) * itm.discountAmount) * (100 - couponResult.amount)) /\r\n 100\r\n )\r\n : Number(\r\n ((itm.amount / 100 - (itm.amount / 10000) * itm.discountAmount) * (100 - couponResult.amount)) /\r\n 100\r\n ).toFixed(2)\r\n : itm.discountType == \"\" && isInteger(Number((itm.amount / 100) * (100 - couponResult.amount)) / 100)\r\n ? Number(((itm.amount / 100) * (100 - couponResult.amount)) / 100)\r\n : Number(((itm.amount / 100) * (100 - couponResult.amount)) / 100).toFixed(2)}\r\n
\r\n )}\r\n {couponResult.type &&\r\n couponResult.type == \"percent\" &&\r\n couponResult.applyTo == \"giftcards\" &&\r\n sessionStorage.getItem(\"couponGiftcard\") == \"true\" && (\r\n
\r\n $\r\n {itm.discountType == \"amount\"\r\n ? isInteger(Number(((itm.amount / 100 - itm.discountAmount) * (100 - couponResult.amount)) / 100))\r\n ? Number(((itm.amount / 100 - itm.discountAmount) * (100 - couponResult.amount)) / 100)\r\n : Number(((itm.amount / 100 - itm.discountAmount) * (100 - couponResult.amount)) / 100).toFixed(2)\r\n : itm.discountType == \"percent\"\r\n ? isInteger(\r\n Number(\r\n ((itm.amount / 100 - (itm.amount / 10000) * itm.discountAmount) * (100 - couponResult.amount)) /\r\n 100\r\n )\r\n )\r\n ? Number(\r\n ((itm.amount / 100 - (itm.amount / 10000) * itm.discountAmount) * (100 - couponResult.amount)) /\r\n 100\r\n )\r\n : Number(\r\n ((itm.amount / 100 - (itm.amount / 10000) * itm.discountAmount) * (100 - couponResult.amount)) /\r\n 100\r\n ).toFixed(2)\r\n : itm.discountType == \"\" && isInteger(Number((itm.amount / 100) * (100 - couponResult.amount)) / 100)\r\n ? Number(((itm.amount / 100) * (100 - couponResult.amount)) / 100)\r\n : Number(((itm.amount / 100) * (100 - couponResult.amount)) / 100).toFixed(2)}\r\n
\r\n )}\r\n >\r\n )}\r\n {editable && (\r\n <>\r\n\r\n
\r\n \r\n {({ field }) => (\r\n \r\n {amountsFixed.length == 0 || amountsRange ? (\r\n $}\r\n />\r\n ) : (\r\n \r\n \r\n {amountsFixed.map((el, ind) => (\r\n \r\n $ {el.amount / 100}{\" \"}\r\n {el.description != \"\" && el.description ? \" ( \" + el.description + \" ) \" : \"\"}\r\n \r\n ))}\r\n \r\n \r\n )}\r\n
\r\n )}\r\n \r\n \r\n >\r\n )}\r\n
\r\n {!editable &&
}\r\n {editable &&\r\n (partner && partner.colors && partner.colors.linkHoover ? (\r\n
\r\n Guardar\r\n
\r\n ) : (\r\n
\r\n Guardar\r\n
\r\n ))}\r\n {partner && partner.colors && partner.colors.linkHoover ? (\r\n
setOpenDeleteModal(true)}\r\n style={{ fontSize: 12 }}\r\n className={classes.btn}\r\n >\r\n Eliminar\r\n
\r\n ) : (\r\n
setOpenDeleteModal(true)} style={{ fontSize: 12 }} className={classes.btn}>\r\n Eliminar\r\n
\r\n )}\r\n