Jump to content

When creating products through API, sales_prices values are rounded to 2 decimals.


 Share

Recommended Posts

We have products with 3 and 4 decimals as unit prices (Sales Price), which is accepted as input, but recorded as 2 decimals. How do I overcome this? I'm not keen on redefining units as batches, so there must be another way. The products are normally ordered in large quantities, but not in pre-defined batches.

Thanks.

Link to comment
Share on other sites

  • 1 month later...

As a follow-up - batches don't work well either, because quantity suffers from the same 2 decimal limit. In the API reference, invoice_lines.quantity is specified as a double. A Double data type is normally 15 digits of precision.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...