fix: item reporting revenue discounted

This commit is contained in:
Sebastian Rindom
2021-02-15 15:57:13 +01:00
parent 93f68126bf
commit 6e6669dee8
@@ -106,10 +106,10 @@ class SegmentService extends BaseService {
let name = item.title let name = item.title
const unit_price = item.unit_price const unit_price = item.unit_price
const line_total = (unit_price * item.quantity) / 100 const line_total = this.totalsService_.getLineItemRefund(order, item)
const revenue = await this.getReportingValue( const revenue = await this.getReportingValue(
order.currency_code, order.currency_code,
line_total line_total / 100
) )
let sku = "" let sku = ""