I can get 4 decimal points now by following;
Is it possible to get 5 decimal points, like 0.06593?
I can get 4 decimal points now by following;
Is it possible to get 5 decimal points, like 0.06593?
Everywhere where they mention their decimal point amounts just fill in your “5” instead of their “4” or “3”
Every place that you were at in your phpmyadmin you’ve already changed your decimal points, right?
Then it should be only the format_amount, format_currency functions where you need to make those other changes.
Check out the changes the user made here:
You’ll want the similar changes, but then for your amount of decimal points
Yes, all php was changed to 4, and those few to float.
I will look at the rest tomorrow with fresh eyes. Thank you.
Don’t forget to keep showing your screenshots.
By the url of the screenshot and sometimes the contents of the screenshot i can guess where you want your change.
“I want my change when i’m viewing an invoice (quote, product, you name it)” will be application/modules/{module_name/views/view.php
“I want my change when i’m creating/editing an invoice (quote, product, you name it)” will be application/modules/{module_name/views/form.php
saving => Mdl_{mdl_name}, etcetera, etcetera
You already know where number_format is, so that’s great as well.
Could you explain the color coding difference? I assume red represents the old or replaced code, and green represents the new one?
You are absolutely correct about that. That way it makes it easier to compare it with your code.
In this case just focus on the files that this person has changed and ehat he did changs (mostly format_* and quantity_* function calls in hopefully view files)
Also see these things: _trans('default_item_decimals')
, it means there is a piece in the translation file so it can be translated to other languages using Crowdin.
In your settings you’ll find a setting for ‘default_item_decimals’, it’s in the General settings. If you cannot find ot, hit ctrl+f in your browser and search for ‘Default decimals for item’, i think you can set the number of decimals over there
I want the quantity to not have decimals, and I need the price to not round up the 5th decimal, it shows “0” but it should display the “3”, or whatever number it would be, just not rounded up or down.
It would be nice for the totals, and subtotals in this photo to be only 2 decimals.
I resolved these questions by adjusting the decimal value in the database table for each item.
Is there a way to create a flat rate fee with only 2 decimal points? Say $44.00, not $44.00000
Can this box be easily changed to a charge instead of a discount, perhaps even with a dropdown box offering choices to select from? I need an area to optionally pick a charge with a 2-decimal point space ($44.00).
Not easily.
It depends on your knowledge of html for 1 thing.
Second thing is ghat the discount gets calculated in the controller or in the model. You’ll have tl change that as well.
Personally i would add an extra product as a “charge”.
I just think that a negative “discount” will get very complicated very fast.
Could you tell me where I can set this subtotal to 2 decimal places?
i have found others in the db. just not this one.