Skip to content

Commit 7558a98

Browse files
authored
fix: replacing & in item names to avoid order erros (#164)
1 parent 33b401a commit 7558a98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • functions/lib/integration/parsers/order-to-tiny

functions/lib/integration/parsers/order-to-tiny/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module.exports = (order, appData, storeId) => {
9595
tinyOrder.itens.push({
9696
item: {
9797
codigo: itemRef,
98-
descricao: item.name ? item.name.substring(0, 120) : itemRef,
98+
descricao: item.name ? item.name.substring(0, 120).replaceAll('&', 'e') : itemRef,
9999
unidade: 'UN',
100100
quantidade: item.quantity,
101101
valor_unitario: ecomUtils.price(item)

0 commit comments

Comments
 (0)