Jump to content

about decimal places


LAZer414

Recommended Posts

hi, im hanged with currencies decimal places. i wanted to know if whmcs has a setup for defining how many decimal places each currency should have? or is there a way to round the currencies for example something like php ceil function ?

 

i have set the type of currency to no decimal places. but prorata function calculates the price with decimal places . and after that there is no payment with decimal places in that currency and so the payments to the invoice do not set the invoice as paid .

let me explain more.

for example a product`s price is 10 Rial

a prorata calculates it as 12.01 rial or for example 7.01 rial

then the a customer pays 12 rial and so the invoice yet remains unpaid because of that 0.01 decimal unpaid money. and there for a admin must set the invoice as paid till the product delivered to the customer.

 

please guide me on this.

Link to comment
Share on other sites

I think what the OP is saying is that .01 Rial ( or indeed any amount less than 1 Rial) is impossible to pay

he is exactly true , rial do not have decimal places for the customers to pay ! so we need to have a decimal places configuration for prorata invoices . or a function like php ceil to round the prices to a upper nearest value for them to pay and solve this issue.

any suggestions ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated