Commit 813e715d authored by Stephane Mankowski's avatar Stephane Mankowski
Browse files

BUG:334626

When doing a transfer, my specification of + or - is ignored
parent 6bf5d2df
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
......
......@@ -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()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment