After understanding the complete process (if I understood it correctly), I have concluded that it is not practicable to have one user for entering Cash invoices and one for entering Credit Card invoices, especially in a restaurant environment where there can be too many customers waiting to get their bills.
So, a better solution can either of the following:
1. Ask the developer to change the hardcoded account if the payment term is selected anything other than "Cash". Because anything other than cash is booked as receivable.
2. Create Credit Card Clearing account and declare it as a current account. Then make it the default receivable account from SETUP ==> System & GL Setup. Then create a new payment term as Credit Card and create a new Payment Term, call it credit card, select number of days and then 1. So that such sale automatically goes into credit card receivables account and is shown in receivables the very next day.
I apologize for taking a lot of time, but I am keen to understand the system in order to make the best use of it.
apmuthu wrote:Line 580 in sales/includes/ui/sales_order_ui.inc:
The POS is fixed in the users table and hence it this that ultimately determines the hardcoded value of the cash account! Hence, create a user and assign the Credit Card POS and link it to the Credit Card Cash Type account and login as that user to perform such transactions.