Description |
* Objective
** Create a Sales Receive Payment record for each customer payment entered on the checkout
* Requirement
** Remove Store Payment Item Id from Store > Setup Tab
** Add Payment Method to Checkout Customer Payment Grid
*** This field is mandatory and should be a drop down linking to tblSMPaymentMethod
** No longer create Customer Payments entries on the Sales Invoice record
** When posting a checkout - For each Customer Payment
*** Create and Post a Sales > Receive Payment Record
**** Type = Cash Receipts
**** Customer = from Checkout Payment Grid > Customer
**** Payment Method = from Checkout Payment Grid > Payment Method
**** Amount Paid = from Checkout Payment Grid > Amount
**** Notes = "Store Payment: " + from Checkout Payment Grid > Comment
**** Location = from Checkout > Store > Location
**** Date Paid = from Checkout Date
**** Check No = from Checkout Payment Grid > Check No
*** Store Direct Reference to the Receive Payment Record
**** This is for later use in unpost/deletion as needed.
** When Unposting a checkout
*** Unpost and Delete the payment record
*** If payment cannot be unposted in AR
**** Then rollback and cancel the unposting of the entire checkout.
**** Capture Unpost error message from AR.
**** Give error message to user that checkout cannot be unposted for __[insert AR error message here]_on record [insert AR record]__.
|