Opened 2 years ago

Closed 2 years ago

#2925 closed Bug (fixed)

Ecommerce API: some numbers have .0 where as others are rounded

Reported by: matt Owned by:
Priority: normal Milestone: 1.7 Piwik 1.7
Component: Core Keywords:
Cc: Sensitive: no

Description

for example: index.php?module=API&method=Goals.getItemsName&format=XML&idSite=16&period=week&date=2012-02-12&expanded=1&idGoal=ecommerceOrder&filter_limit=100&token_auth=

returns:

<result>

<row><label>XXXXXX</label><revenue>76</revenue><quantity>4</quantity><orders>4</orders><avg_price>19</avg_price><avg_quantity>1</avg_quantity><conversion_rate>0%</conversion_rate></row>

<row><label>XXXX</label><revenue>64</revenue><quantity>2.00</quantity><orders>1</orders><avg_price>32</avg_price><avg_quantity>2</avg_quantity><conversion_rate>0%</conversion_rate></row>

One has quantity = 4 the other quantity = 2.0

This gets displayed this way in PDF/HTML/UI which is quite ugly/confusing.

Change History (1)

comment:1 Changed 2 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5843]) Fixes #2925

Note: See TracTickets for help on using tickets.