How To: Add Intrastat and Country of Origin to Invoices using Basic Reports

WARNING icon
WARNING: Before making changes to ANY of your Basic Report templates it is advisable to take a backup.



WARNING icon
Basic Reports is an Advanced User feature.



The following fields, pulled from the stock items, are available to be added to the Invoice Basic Report:

These will then be able to be placed on the Basic Report design in the detail section to allow for an international Invoice design for use with international customers.

These options are already setup for you if you are using a new Customs Invoice, see How To: Setup a New Customs Invoice.

Note: before making changes it maybe useful to:

  1. Make a backup of your reports.
  2. Try this out on your testing system to ensure that the changes are as required before implementing it in your live system.


Preparing to add the new fields

  1. Follow the menu route [ System Operations | Basic Reports Setup ] to open the "Basic Reports Setup" dialog.
  2. From the dialog's [ Reports List ] tab, double-click on "Invoice Report".
  3. If this is a new report, you will need to click on the New Report Configuration button button. This displays a new report that can be configured. As this is a 'blank' basic report you may wish to use the following options:
    • In the 'Report Template Path:' field at the bottom of the window, use File lookup to navigate to and open the main Sales Invoice Report template.
    • The Basic Reports Design button button opens the loaded report in design view, allowing the user to make changes to the report. Before you make any changes select Save As... from the file menu, to make sure you do not overwrite the original template.
  4. Press the Basic Reports Design button button to edit the Sales Invoice's report template using Report Builder Designer.
    Note: you can save the current layout with a new name so that you don't affect the invoice layout as you are updating it. It also means that you have a backup. To do this select Save As... from the file menu.
  5. Click on the srDetails: DBDetails tab at the bottom of the screen.

    Basic Reports Detail area expanded
  6. You may need to make some room while you are manipulating the layout of the new fields. To do this:
    1. Click on the Details bar (in red in the image).
    2. Drag the bar down the page about 6 or 7 cm below any existing fields, in the image it is srSkBuildChildren (the bottom purple box) .
  7. Notice the two fields that have a purple outline. The thicker grey line around the box means that these fields are part of a 'Region' and need to be handled carefully if you wish to move them. We are going to move the field srSkBuildChildren region (the bottom purple box) as we will be adding the Country of Origin and the Intrastat Code above it so need to make room. To do this:
    1. Click on the srSkBuildChildren region (the bottom purple box) and you will see that the rgSkBuildChildren region has been selected in the report tree on the left (in green).
      Selecting the region
    2. Below the Report Tree panel the configuration options for the selected field are now displayed. This is where you make your changes.
    3. Make sure you have selected the rgSkBuildChildren in the Report Tree.
      Selecting the region for build children in Basic Reports
    4. In the panel below find the Layout section as this is where we are going to make the changes so the rgSkBuildChildren can be moved down the page.
      The Region Layout area in Basic Reports
    5. The Top is the distance between the top of the Region box and the top of this part of the form. This is the figure that needs to be increased in order to move the rgSkBuildChildren down the page.
    6. Change the Top to about 80.00, this might take a bit of trial and error.
  8. If you are happy with the layout so far, it is best to save what you have done by going to File -> Save. As you are making changes to your report is is best to save regularly, otherwise you may lose all your hard work and have to start again.
  9. In our example we will also need to move the rgSkExtDesc region, the top region as this needs to be closer to the field above it, in this case the calc_stock_desc.
    1. You can work out the rough place that the rgSkExtDesc region needs to move to by clicking on the fields above and adding together the Heights in the Layout section. In our example there is only one field above, calc_stock_desc and that is 3.175. That means that if we change the Top for the rgSkExtDesc region to 4.00, then it should move to just below the calc_stock_desc field.
    2. Click on the srSkExtDesc' region (the top purple box) and you will see that the rgSkExtDesc' region has been selected in the report tree on the left.
      Extended Stock Description Region in Basic Reports
    3. In the panel below find the Layout section as this is where we are going to make the changes so the rgSkExtDesc can be moved up the page to below the field directly above it.
    4. Change the Top to the value you calculated in step 8.1 above, again this might take a bit of trial and error.
  10. If you are happy with the layout so far, it is best to save what you have done by going to File -> Save.

Adding the Country of Manufacturer

  1. Click on the Basic Reports Memo button button on the top menu.
  2. Click in the Detail area and position and resize the DBMemo field using the handles (the circles at the sides and corners).
    Adding the country of manufacture to the invoice
  3. Click on the drop-down to the right of DBDetails in the top right and select manuf_country.
    Manuf_country in drop down
  4. Save the report and test to see what it looks like.


Adding the Intrastat

  1. Click on the Basic Reports Memo button button on the top menu.
  2. Click in the Detail area and position and resize the DBMemo field using the handles (the circles at the sides and corners).
  3. Click on the drop-down to the right of DBDetails in the top right and select Intrastat Intrastat .
  4. Save the report and test to see what it looks like.

Adding the Intrastat Barcode

  1. Click on the Database barcode button in Basic Reports button on the menu bar at the top.
  2. Click in the Detail area and position and resize the DB2DBarCode field using the handles (the circles at the sides and corners).
  3. Focus on the barcode and on the left select Intrastat from the DataField dropdown:
    Basic Reports Intrastat barcode settings
  4. Configure the rest of the report as required, for example naming the components.
  5. Save and close the Design screen.
  6. Test to ensure that it appears as required in the report and make any changes as appropriate.

See Also


Did you find this article helpful?