Commits
Thomas Tornevall authored 4267dd299eb
* Some code adjustments forced. * userQuantity and paymentQuantity should not count in differences: + intval($paymentQuantity) > 0 + /*&& + intval($userQuantity) !== intval($paymentQuantity)*/ -- Restore if not working. * Gert fixed formulas that could recalculate "final quantity" on cancelPayment. * getQuantityDifferences - changed name of specObject to authorizedObject. * currentPaymentStatusList controls switch/casified. * Speclines rerenderer by removeFromArray. * validation objects moved into getValidatedCreditObject() * Added tests for strange handling of aftershop (on quantity level). -- Quantity with addOrderLine (= Now has static prices so we can test it) -- Quantity with the old array()-methods -- annul-debit-credit one row -- "Troll"-the-order-test: annul-debit-credit one row. Then kill the rest of the order (Must have a static::assertTrue). * Added getPaymentStatusQuantity() for quick matching quantity rows.