question

saad-bin-iqbal avatar image
saad-bin-iqbal asked Jeffrey Blattman answered

How to add price to the Category Item with two or three decimal points ? For Instance, 1.734 and 17.34

I'm creating a Per Unit item and I want to set its price with 2 or 3 decimal points like(1.734 Or 17.34) so waht value should I pass to the method to set the exact price I want. Please consider the below code as this is the code to create a item.
Item newItem = new Item().setName(itemName).setPrice(1734).setPriceType(PriceType.PER_UNIT).setUnitName("lb").setDefaultTaxRates(false);
Clover Android SDK
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered
Clover only supports amounts with 2 decimal places.
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community