Currently, purchase records only include the ID of the product purchased, and the corresponding product record includes the (current) cost. This means that the amount that CASHNet reports was actually paid is ignored, and any discrepancies between what should and is paid wouldn't be caught.
Proposed:
[x] Add the field Purchases.amount_paid (in cents), populated by the dollar amount provided by $this->request->getData('amount1') in PurchasesController::postback(). (example value given by Ben Johnson: "25.00")
[x] Update how purchase records are displayed in /admin/purchases to use Purchases.amount_paid instead of Products.price
[x] Populate Purcahses.amount_paid field in all existing records in purchases table
[x] Call administrator attention to any purchase being made (according to postback) for an amount that doesn't match what should be paid for that product.
[x] Special display in /admin/purchases (red text? warning icon?)
Currently, purchase records only include the ID of the product purchased, and the corresponding product record includes the (current) cost. This means that the amount that CASHNet reports was actually paid is ignored, and any discrepancies between what should and is paid wouldn't be caught.
Proposed:
Purchases.amount_paid
(in cents), populated by the dollar amount provided by$this->request->getData('amount1')
inPurchasesController::postback()
. (example value given by Ben Johnson: "25.00")/admin/purchases
to usePurchases.amount_paid
instead ofProducts.price
Purcahses.amount_paid
field in all existing records inpurchases
table/admin/purchases
(red text? warning icon?)