Much of the information on a cash receipt is lost when the cash receipt is posted. This updated version of the "postCashReceipt()" function creates a comment that is used in arapply_refnumber (for payment applications) and aropen_notes (for credit memos and cash deposits). The comment has the following format:
<cashrcpt_docnumber> | Amt Rec: <cashrcpt_amount> | CR <cashrcpt_id>
<cashrcpt_notes on new line if they exist>
Here is the rationale for including each new section:
<cashrcpt_amount> - amount of original receipt is not easy to find when reviewing a CR application in the AR History tab of the Customer Info Workbench.
<cashrcpt_id> - unique identifier for CR since the doc number may not be unique (often the doc number is "visa" or something generic like that--we use a stand-alone credit card machine).
<cashrcpt_notes> - these are completely lost when the CR is posted.
Steps to reproduce:
Read more at http://www.xtuple.org/mantis/view.php?id=6864