mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 02:10:53 +00:00
Changed: Display inventory bulk with two decimal places
--HG-- branch : develop
This commit is contained in:
parent
8aff509f0f
commit
3895644589
1 changed files with 3 additions and 3 deletions
|
@ -4048,7 +4048,7 @@ public:
|
||||||
|
|
||||||
// Get the sum of the bulk for this db branch
|
// Get the sum of the bulk for this db branch
|
||||||
const double epsilon = 0.001;
|
const double epsilon = 0.001;
|
||||||
sint32 val = sint32(CInventoryManager::getBranchBulk(dbBranch, 0, 10000) + epsilon);
|
float val = CInventoryManager::getBranchBulk(dbBranch, 0, 10000) + epsilon;
|
||||||
|
|
||||||
// Get the Max value
|
// Get the Max value
|
||||||
sint32 maxVal= 0;
|
sint32 maxVal= 0;
|
||||||
|
@ -4058,7 +4058,7 @@ public:
|
||||||
|
|
||||||
// Replace in the formated text
|
// Replace in the formated text
|
||||||
ucstring str= CI18N::get("uittBulkFormat");
|
ucstring str= CI18N::get("uittBulkFormat");
|
||||||
strFindReplace(str, "%v", toString(val) );
|
strFindReplace(str, "%v", toString("%.2f", val) );
|
||||||
strFindReplace(str, "%m", toString(maxVal) );
|
strFindReplace(str, "%m", toString(maxVal) );
|
||||||
CWidgetManager::getInstance()->setContextHelpText(str);
|
CWidgetManager::getInstance()->setContextHelpText(str);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue