Installed Version:
Version 7.11.15
Sugar Version 6.5.25 (Build 344)
still checking this quantity issueā¦ going to see if I can force it to an integer on the web page generation side of things. So when the quantity value is then pulled from the dom it is an integer, not a fractional value that has to get converted to a string and then an integerā¦ ouch. I think this is the issueā¦ hmm. I think I am in the right local.
I do wonder why the āQuotesā has a British pound iconā¦ like wow.
I have seen posts about this Pound issueā¦ I will fix that when I have timeā¦
Time passesā¦
I was able to track down where this issue / bug was pinpointed by other developersā¦
//Bug #598 --- Line 222 - modules/AOS_Products_Quotes/Line_Items.php
//The original approach to trimming the characters was rtrim(rtrim(format_number($line_item->product_qty), '0'),$sep[1])
//This however had the unwanted side-effect of turning 1000 (or 10 or 100) into 1 when the Currency Significant Digits
//field was 0.
//The approach below will strip off the fractional part if it is only zeroes (and in this case the decimal separator
//will also be stripped off) The custom decimal separator is passed in to the function from the locale settings
I am still going to try to force this product_qty into a integer value right from the start. I could be walking up a mountain though.
Time passesā¦
.
.
.
.
I think I just finished climbing the mountainā¦
Seems the product_qty is now an integer. whoo hoo!! quotes will not be laughed at by customers seeing crazy prices.
Took some editingā¦ but I think things are working satisfactorily at this time. see picsā¦
This could be fixed. At least so farā¦ still testingā¦
Some icing on the cake. Seems updating the defaults is a mysterious act to get the defaults saved. forcing them via the custom filesā¦
//Manually Added Defaults to this file /custom/modules/AOS_Products_Quotes/Ext/Vardefs/vardefs.ext.php
$dictionary['AOS_Products_Quotes']['fields']['product_qty']['default']='1';
$dictionary['AOS_Products_Quotes']['fields']['product_qty']['min']=1;
$dictionary['AOS_Products_Quotes']['fields']['product_qty']['max']=9999;
btw the file that I was able to modify for the datatype change in the above image for the Decimal to Integer is at:
modules/Contacts/metadata/listviewdefs.php
Whoo hoo!!