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!!