Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
Skrooge
Commits
813e715d
Commit
813e715d
authored
May 18, 2014
by
Stephane Mankowski
Browse files
BUG:334626
When doing a transfer, my specification of + or - is ignored
parent
6bf5d2df
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
813e715d
skrooge (1.10.0)
*Correction bug 334626: When doing a transfer, my specification of + or - is ignored
*Correction: Open URL does not work in unit page
*Correction: Wrong date in message "Operation 'XXX' will be inserted in YYY days"
*Correction: Auto repair of qif file not having sum of suboperation amount != operation amount
...
...
plugins/skrooge/skrooge_operation/skgoperationpluginwidget.cpp
View file @
813e715d
...
...
@@ -815,15 +815,15 @@ SKGError SKGOperationPluginWidget::updateSelection(const SKGObjectBase::SKGListS
double
oldQuantity
=
subOperation
.
getQuantity
();
if
(
oldQuantity
==
0
)
{
// Bug 192832 – Do not take amount sign into account vvv
if
(
qAbs
(
operationQuantity
)
!=
operationQuantity
)
{
operationQuantity
=
-
operationQuantity
;
if
(
ui
.
kAmountEdit
->
sign
()
==
0
)
{
operationQuantity
=
qAbs
(
operationQuantity
);
}
else
if
(
ui
.
kAmountEdit
->
sign
()
>
0
)
{
operationQuantity
=
-
qAbs
(
operationQuantity
);
}
else
{
operationQuantity
=
qAbs
(
operationQuantity
);
if
(
oldQuantity
==
0
)
{
err
=
getDocument
()
->
sendMessage
(
i18nc
(
"An information message"
,
"Absolute value has been used for transfer creation."
));
}
// Bug 192832 – Do not take amount sign into account ^^^
}
else
{
operationQuantity
=
-
operationQuantity
;
}
if
(
ui
.
kAmountEdit
->
isEnabled
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment