Alias column names could not be used as normal column and computation could not be performed on that.
However you can use SQL Variables @receipt_qty etc to save your SUM and then use it for addition purpose.
By the way, your commented code logic is fine and good option to use. Just format for better understanding
