OpenERP Point of Sale: Create invoice for multiple orders together


Though its not so complex module but still would like to share with you what we have developed.

As we know that from POS Back Order, we can create invoice one by one. So here we made solution where we can select more than one POS Orders and create invoice at once.

In below screen, we can see that there is no invoice created for these POS Orders.

OpenERP POS Orders
OpenERP POS Orders

We can easily filter POS Order by dates and it will display order which are not relate with any invoices.

Search POS Orders
Search POS Orders

For creating invoice for POS Orders, it requires to select customer.

Create Invoice
Create Invoice

It will take order lines of all selected POS Order and create one customer invoice in DRAFT state.

Selection of Customer
Selection of Customer

After creating invoice, all selected POS Orders “Status” and “Invoice” fields value will be change.

POS Order after invoice validation
POS Order after invoice validation

In case of “Cancel” invoice, it will update both fields into POS Orders.

POS Order after cancel invoice
POS Order after cancel invoice

Advertisements

OpenERP SagePay with Token


SagePay is providing very good feature to process with Credit Card. It is not necessary to store credit card details into database.
SagePay server will provide you TOKEN like below {5C0DC8AD-DE7A-F65C-C53D-CC6C23BF3BEF}.

This TOKEN can be used for further transactions and make your work very easy. User can also remove current token and generate new one.

We have implemented functionality in such a way that we can store more than one TOKEN for customer. First we have to make configuration for SagePay server authentication.

SagePAy Configuration
SagePAy Configuration

It requires to generate token from SagePay server. It will not store credit card number into database.

Generate SagePay Tocken
Generate SagePay Tocken

Once we will click on Generate button, it will store some required information into openerp database with TOKEN for further operations.

Credit Card details
Credit Card details

In Customer Payment, we will find new button “Pay by SagePay” which will open popup window like below screen. User can select one credit card to process with SagePay. It will display only valid credit card number which has TOKEN generated from server.

Credit Card Selection
Credit Card Selection

After successful transaction, sagepay server will return transaction ID and messages which are stored into Customer Payment for future reference.

SagePay Transaction Success
SagePay Transaction Success

We are also keeping history of all successful transactions into OpenERP.

SagePay Transaction History
SagePay Transaction History