Description |
* Objective
** Create Sales Invoice record that will have proper impact to Undeposited Funds/Bank Deposits.
*** Types of Invoice and Credit Memo can not be used for this purpose.
* Requirement
** When Posting Checkout and Sales Invoice is for Main Checkout.
*** Set Payment Method = Cash
*** If Total Deposted is >= 0
**** Set Sales Invoice > Type = Cash
*** Else
**** Set Sales Invoice > Type = Cash Refund
** When Posting Checkout and Sales Invoice is for Customer Charge
*** If Charge Amount > 0
**** Set Sales Invoice > Type = Invoice
*** Else
**** Set Sales Invoice > Type = Credit Memo
|