Commits
Thomas Tornevall authored 52ced50fdd4
ECOMPHP-318 - Major patch for half-aftershop. * The aftershop objects calculated are completely based on a new SQL query that always picks the right data (and converts it to table if needed). * Removed after patching unused function removeFromArray. It does only half the work of the work that array_intersect do. * Removed getMatchedQuantity (unused). * For some reason getCreateBy was changed in this branch. Bad choice. But merging. * New function: getPaymentDiffByStatus (SQL based). * New function: getPaymentDiffByAbility (SQL based). * New function: getRecalculatedPaymentDiff (For recalculation of unitAmountWithoutVat/quantity). * New function: getPaymentDiffAsTable (data from getPaymentDiffByStatus converted to complete table). * New function: getOrderRowMatch - for matching orderrows with keys. * New function: getMergedPaymentDiff (compiler that replaces the old merger). * Removed getQuantityDifferences * Some validators are no longer in use, replaced by the query based algorithm. * New function: getValidatedAftershopRows, handles the contrary of getPaymentDiffByStatus (and compiles "what's left to do").