Sales Order Price Rounding  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Sales Order Price Rounding

Postby nsbandara » Thu Nov 16, 2017 5:45 pm

Hi,

We have updated price calculation stored procedure to do specific calculation based on pre-set conditions and we need to record price value with at least 5 decimal places .

sproc-price.JPG
price returned from usp_Jiwa_Price_DebtorPrice
sproc-price.JPG (33.34 KiB) Viewed 966 times


But in sales order screen Jiwa round above price to 2 decimal places

sales order price.JPG
sales order price.JPG (13.6 KiB) Viewed 966 times


Is there an applicable system setting or work around to set decimal places displayed/rounded in sales order and transactions in Jiwa 7.0.175.


Thanks.
User avatar
nsbandara
Occasional Contributor
Occasional Contributor
 
Posts: 43
Joined: Tue Jul 16, 2013 5:02 pm
Location: Sri Lanka
Topics Solved: 11

Re: Sales Order Price Rounding  Topic is solved

Postby SBarnes » Sun Nov 19, 2017 11:16 am

Hi

The biggest issue you are going to have with this is rounding as all things are going to lead you back to debtor transactions and the general ledger which are by the default system setting two decimal places.

There is a system setting the number of decimal places on money but this is system wide and probably not the best recommended answer to the problem although it would be the simplest.

You can also set the number of decimal places on an item but this relates to how a quantity works, which may be a simpler and then have the system operate with a multiple of the product for instance ten widgets might be the SKU so when ordering 1 the quantity is entered as 0.1.

Whilst you could probably change, the number of decimal points on the grid/column/cell as this is possible with plugin code as shown below you'd just have to substitute for jgLines, the business logic behind the scenes is going to use the decimal places for money to recalculate everything on the line based upon that.

Code: Select all
(jgLines.ActiveSheet.Columns["Price"].CellType as JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaCurrencyCellType).DecimalPlaces = 5;


So you are really back to the two setting mentioned above to try and solve your problem unless Mike or Scott can give you a better idea.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 18 guests