Skip to content

Commit

Permalink
fix: qoute price
Browse files Browse the repository at this point in the history
  • Loading branch information
devasakshay committed Dec 28, 2022
1 parent 761f8e2 commit a6186a4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions seller-app-api/services/product.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,6 @@ class ProductService {
}
}//TODO: need to map all items in the catalog to find out delivery charges

let totalPriceObj = {value: ""+totalPrice, currency: "INR"}

detailedQoute.push(deliveryCharges);

console.log("qouteItems------------------", qouteItems)
console.log("totalPriceObj------------------", totalPriceObj)
console.log("detailedQoute------------------", detailedQoute)
Expand Down Expand Up @@ -720,6 +716,14 @@ class ProductService {
detailedQoute.push(qouteItemsDetails)
}

console.log("totalPrice---->",totalPrice)
console.log("logisticData.message.order.quote.price.currency---->",logisticData.message.order.quote.price.value)

totalPrice = parseInt(logisticData.message.order.quote.price.value) + parseInt(totalPrice)
let totalPriceObj = {value: ""+totalPrice, currency: "INR"}

detailedQoute.push(deliveryCharges);

let savedLogistics = new InitRequest()

savedLogistics.transactionId = initData.context.transaction_id
Expand Down

0 comments on commit a6186a4

Please sign in to comment.