Skip to content

Commit

Permalink
chore: log for export order
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored May 2, 2024
1 parent 06a66c8 commit 1a21225
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions functions/lib/integration/parsers/order-to-bling/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ module.exports = (order, blingOrderNumber, blingStore, appData, storeId) => {
}

if (storeId == 51292 && order.shipping_method_label === 'Entrega própria') {
blingOrder.transporte.volumes = {
blingOrder.transporte.volumes = [{
volume: {
servico: 'Homem Raio'
}
}
}]
}

if (typeof amount.freight === 'number') {
Expand Down Expand Up @@ -240,5 +240,8 @@ module.exports = (order, blingOrderNumber, blingStore, appData, storeId) => {
blingOrder['vendedor'] = order.utm.campaign
}

if (storeId == 51292) {
console.log('pedido', JSON.stringify(blingOrder))
}
return blingOrder
}

0 comments on commit 1a21225

Please sign in to comment.