HOWTO Setup Proforma invoices
In this HOWTO, we will explain to you how to set up proforma invoices and procedure for them works.
How to turn on Proforma invoices
Before you can start using proforma invoices, it is necessary to set them up. First, it is necessary to change Web.config file that is located in C:\Program Files (x86)\Atomia\BillingAPIs\BillingApi. In Web.Config file you need to change line where it says <invoiceMode mode="Invoice" /> to <InvoiceMode mode="Proforma" />.
Changes to this file need to be done thru transformation files. In order to make changes to configuration files in Atomia Applications, you have to follow rules and regulations regarding Atomia configuration files and transformation. More information about it can be found on following links:
http://support.atomia.com/solution/articles/4000010876-atomia-configuration-files-and
New transformation file that will do changes to Web.config file needs to be located in C:\Program Files (x86)\Atomia\BillingAPIs\BillingApi\Transformation Files. After the transformation file is made and stored at the location mentioned in the previous sentence, it is necessary to start Recreate config files that are located in C:\Program Files (x86)\Atomia\BillingAPIs .It is important to run it as Administrator.
The last step that needs to be taken in order to proforma invoices to work in to reset IIS. You can do that by opening Windows PowerShell and run command iisreset.
In order to see all Proforma invoices you need to follow next steps:
-
Login into Admin panel
-
Go to tab Invoices
-
Choose List of invoices
-
Choose Proforma invoices
In order to see all proforma invoices for the desired customer, you need to follow next steps
-
Login into Admin panel
-
In global search look for the desired customer
-
Open Customer card and under the tab Proforma invoices you can see all proforma invoices for this customer.
How to set up counter for proforma invoices
This solution will help you out how to set up counter for, in this case, proforma invoices. In order to set a counter to start from the desired number, it is necessary to update table sequence_counter in database AtomiaBilling.
Setting up start number for counter you can do by running following query on this table:
begin tran
update sequence_counter
set value = '500000'
where id = 'E5A5E194-1487-4CA7-AE78-2917B569A902'
rollback
commit
This query will set up a counter on the desired number for the master reseller. You can also set up for each reseller to have different starting numbers for proforma counter or any other counter.
In table sequance_counter, there is column counter_type, and explanation for what numbers in this table stands for is in the following table:
Counter type |
Description |
0 |
Invoice number counter |
1 |
Credited invoice number counter |
2 |
Order number counter. |
3 |
Subscription number counter. |
4 |
The payment ID counter |
5 |
The default payment document ID counter |
6 |
Credit card payment method document ID counter. |
7 |
DirectPayment payment method document ID counter. |
8 |
Bank Giro payment method document ID counter. |
9 |
PayPal payment method document ID counter. |
10 |
PayEx Redirect payment method document ID counter. |
11 |
WorldPay payment method document ID counter. |
12 |
Dibs FlexWin payment method document ID counter. |
13 |
WorldPay Xml payment method document ID counter. |
14 |
Adyen HPP payment method document ID counter. |
15 |
Proforma number counter |
IMPORTANT