Defining a Marketing Campaign in OpenERP Guidelines for creating a campaign

133 • means that the previous pattern can be repeated 0 or more times • + means that the previous pattern can be repeated 1 or more times • ? means that the previous pattern is optional 0 or 1 times • . would represent any character, repeated in 0 or more occurencies • .+ would represent at least 1 character but any • 5? would represent an optional 5 character 6.3 Reference of filter domains Generic format is: [ criterion_1, criterion_2 ] to filter for resources matching both criterions. It is possible to combine criterions differently with the following operators: • ‘’ is the boolean AND operator and will make a new criterion by combining the next 2 criterions always 2. This is also the implicit operator when no operator is specified. – for example: [ criterion_1, ‘’, criterion_2, criterion_3 ] means criterion_1 AND criterion_2 AND criterion_3 • ‘|’ is the boolean OR operator and will make a new criterion by combining the next 2 criterions always 2 – for example: [ criterion_1, ‘|’, criterion_2, criterion_3 ] means criterion_1 AND criterion_2 OR criterion_3 • ‘’ is the boolean NOT operator and will make a new criterion by reversing the value of the next criterion always only 1 – for example: [ criterion_1, ‘’, criterion_2, criterion_3 ] means criterion_1 AND NOT criterion_2 AND criterion_3 Criterion format is: ‘field_path_operand’, ‘operator’, value Where: • field_path_operand specifies the name of an attribute or a path starting with an attribute to reach the value we want to compare • operator is one of the possible operator: – ‘=’ , ‘=’ : equal and different – ‘’, ‘’, ‘=’, ‘=’ : greater or lower than or equal – ‘in’, ‘not in’ : present or absent in a list of value. Values must be specified as [ value1, value2 ], e.g. [ ‘Belgium’, ‘Croatia’ ] – ‘ilike’ : search for string value in the operand • value is the text or number or list value to compare with field_path_operand using comparator 134 135 Part IV Manage your Books 137 When it is well integrated with the management system, an accounting system offers a company special benefits in addition to the obvious abilities it should have to report on the financial position. This part deals with the practical aspects of accounting, and accounting’s role throughout the whole company. OpenERP’s accounting modules enable you not only to manage your operations clearly, following the workflow from invoicing to payment, but also to use various tools for financial analysis based on both real-time data and recent history depending on the analysis. Your accounting structure can be completely configured from A to Z to match the needs of your company very closely. 138 139 CHAPTER TWELVE HOW TO KEEP TRACK OF YOUR INVOICING PAYMENTS

12.1 Invoicing Workflow

In OpenERP, the Invoicing Workflow is very simple. You can see it in the following figure. Figure 12.1: Invoicing workflow An invoice can be generated form various other documents like a Sales Order, a Purchase Order and also at the time of confirmation of a shipment. The Invoicing system in OpenERP allows you to keep track of your accounting, even when you are not an accountant. It provides an easy way to follow up your suppliers and customers. So the systematic treatment of Invoicing Workflow is very important. Whenever an invoice is generated, it will be created in Draft state with no impact on your Accounting System. For instance, an invoice status can be changed to Open by an accountant after review or to Pro-forma status by any other user. The next step in the workflow will be the Paid status for the invoice. An invoice can be cancelled if it is not paid.

12.1.1 Customer Receipts Supplier Vouchers

When you sell products to a customer, you can give him an invoice or a Sales Receipt which is also called Customer Receipt . Sales Receipts are merely a kind of sales ticket and not a real invoice. 140 When the sales receipt is confirmed, it creates journal items automatically and you can record the customer payment related to this sales receipt. You can create and modify the sales receipt using the menu Accounting → Customers → Sales Receipt. Figure 12.2: Defining a Customer Receipt When you create a new Sales Receipt you have to enter the Customer for which you want to create a voucher. You can also define Sales lines in the Sales Information tab. Here you have to define Account, Amount and Description . At the bottom of the form you can have two options for Payment: one is Pay Directly and another is Pay Later or Group Funds . You have to enter Account in the case of the Pay Directly option. The Total amount displays automatically with calculation of tax when you click the Compute Tax button. After validating the sales receipt, you can print the voucher by clicking the Voucher Print action at the upper right side. The voucher will be printed as follows. Figure 12.3: Sales Voucher When you purchase products from a supplier, a Supplier Voucher a ticket is given to you which is also called 141 Notes Payable in accounting terminology. When a supplier voucher is confirmed, it creates journal items automatically and you can record the supplier payment related to this purchase receipt. You can create and modify the supplier voucher through the menu Accounting → Suppliers → Supplier Vouchers . Figure 12.4: Definition of Supplier Voucher The Supplier Voucher form looks like the Sales Receipt form. In this form carefully select the journal. After validating the Supplier Voucher you can print it using the Voucher Print action. Figure 12.5: Supplier Voucher

12.1.2 Keep Track of your Payments

You should efficiently keep track of payments of your customers and suppliers. Sales Payment allows you to register the payments you receive from your customers. In order to record a payment, you have enter the customer, the payment method = the journal and the payment amount. OpenERP 142 will propose to you automatically the reconciliation of this payment with the open invoices or sales receipts. You can do this in OpenERP using the menu Accounting → Customers → Customer Payment. Figure 12.6: Customer Payment Form To create a new Customer Payment, select the customer and Payment Method. You can add invoices and other transactions in the Payment Information tab. Now select the proper Payment Difference, i.e. Keep Open and Reconcile with Write-Off . In the case of Reconcile with Write-Off the write-off amount will come automatically but you have to enter the Write-Off account so that accounting entries can be generated by OpenERP. The supplier payment form allows you to track the payment you do to your suppliers. When you select a supplier, the payment method and an amount for the payment, OpenERP will propose to reconcile your payment with the open supplier invoices or bills. Through the menu Accounting → Suppliers → Supplier Payment, click the New button to create a new Supplier Payment . Figure 12.7: Supplier Payment Form To create a new Supplier Payment, select the supplier and Payment Method. You can create the Supplier Invoices and Outstanding transactions lines by selecting the invoice lines as well outstanding expenses. Now select the 143 proper Payment Difference, i.e. Keep Open and Reconcile with Write-Off. OpenERP provides various features to keep track of your invoicing and payment. The simple workflow of invoicing with efficient encoding of the payment process of your customer and supplier makes OpenERP more adoptable. In this section we discuss Customer Receipt and Supplier Voucher as well Customer Payment and Supplier Payment process.