Skip to content

Commit

Permalink
fix(order-to-horus): add debug get customer
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Aug 13, 2024
1 parent f5321b4 commit 88f5332
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/lib/integration/exports/orders-to-horus.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = async ({ appSdk, storeId, auth }, orderId, opts = {}) => {
getClientByCustomer(storeId, horus, customer)
])

console.log('>> Number: ', number, ' Order ERP: ', JSON.stringify(orderHorus))
console.log(`>> Number: ${number} Order ERP: ${JSON.stringify(orderHorus)} custumer: ${customerHorus && JSON.stringify(customerHorus)}`)

if (!customerHorus) {
const opts = {
Expand Down
2 changes: 1 addition & 1 deletion functions/lib/integration/exports/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const getClientByCustomer = (storeId, horus, customer) => {
return null
}
queryHorus += `?${documentType}=${documentNumber}&OFFSET=0&LIMIT=1`
console.log(`getCustomerHorus ${queryHorus}`)
// console.log(`getCustomerHorus ${queryHorus}`)

return requestHorus(horus, queryHorus)
.then((data) => {
Expand Down

0 comments on commit 88f5332

Please sign in to comment.