# Automated tests

<div>Business case for developing automated tests to replace manual work</div>

# Missed opportunity preferential rate versus substantiating for correct use

#### Preference code

<div id="bkmrk-in-the-customs-decla">In the customs declaration a code is used to identify if a Preferential rate is used or not. Below an overview of the codes. Basically 100 means the general Tariff is applied.</div><div id="bkmrk-">  
</div><div id="bkmrk--1" style="cursor: auto;">![editor_16_5_8b4b0d42-195a-4328-9753-5df9e58ffa41_rte_image_34.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_8b4b0d42-195a-4328-9753-5df9e58ffa41_rte_image_34.png)</div><div id="bkmrk--2" style="cursor: auto;">   
</div>####  Example Dutch XML Import declaration

<div id="bkmrk--3" style="cursor: auto;">![editor_16_5_1fc8d1ec-ea57-4a02-aa85-fd977f555dec_rte_image_76.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_1fc8d1ec-ea57-4a02-aa85-fd977f555dec_rte_image_76.png)</div><div id="bkmrk--4" style="cursor: auto;">   
</div><div id="bkmrk-here-the-code-is-300" style="cursor: auto;"> Here the code is 300 showing that a Preferential Tariff is applied. The following elements are relevant in this regard.</div><div id="bkmrk--5" style="cursor: auto;">  
</div>1. <div style="cursor: auto;">The Commodity code: i.e. 2710124190 (TSP concatenated with TRC)</div>

<div id="bkmrk--6" style="cursor: auto;">  
</div><div id="bkmrk--7" style="cursor: auto;">![editor_16_5_b3ed8dea-2db2-4e55-9b15-075e2c8aac4c_rte_image_82.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_b3ed8dea-2db2-4e55-9b15-075e2c8aac4c_rte_image_82.png)</div><div id="bkmrk--8" style="cursor: auto;"></div><div id="bkmrk--9" style="cursor: auto;">  
</div><div id="bkmrk-2.-the-origin" style="cursor: auto;">2. The origin</div><div id="bkmrk--10" style="cursor: auto;">  
</div><div id="bkmrk--11" style="cursor: auto;">![editor_16_5_01d390d9-262a-453a-8393-ef9cd06a08a1_rte_image_109.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_01d390d9-262a-453a-8393-ef9cd06a08a1_rte_image_109.png)</div><div id="bkmrk--12" style="cursor: auto;">  
</div><div id="bkmrk--13" style="cursor: auto;">![editor_16_5_4d17b31d-7286-4a87-b88f-27dc2c596e9a_rte_image_99.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_4d17b31d-7286-4a87-b88f-27dc2c596e9a_rte_image_99.png)</div><div id="bkmrk--14" style="cursor: auto;">   
</div><div id="bkmrk-3.-the-available-ori" style="cursor: auto;"> 3. The available origin type of document.</div><div id="bkmrk--15" style="cursor: auto;">  
</div><div id="bkmrk--16" style="cursor: auto;">![editor_16_5_617a50a4-156b-455e-b69e-7092fa288cc7_rte_image_121.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_617a50a4-156b-455e-b69e-7092fa288cc7_rte_image_121.png)</div><div id="bkmrk--17" style="cursor: auto;">  
</div><div id="bkmrk--18" style="cursor: auto;">![editor_16_5_c8be43a6-82dd-4e00-bdb2-927a5c8d6dfb_rte_image_178.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_c8be43a6-82dd-4e00-bdb2-927a5c8d6dfb_rte_image_178.png)</div><div id="bkmrk--19" style="cursor: auto;">![editor_16_5_18f3b2c1-6d73-4a68-96c5-e59fc68168a0_rte_image_136.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_18f3b2c1-6d73-4a68-96c5-e59fc68168a0_rte_image_136.png)</div><div id="bkmrk--20" style="cursor: auto;"></div><div id="bkmrk--21" style="cursor: auto;">  
  
</div><div id="bkmrk-example-belgian-xml-" style="cursor: auto;">#### Example Belgian XML Import declaration

<div>  
</div><div style="cursor: auto;">![editor_16_5_7e634d18-5e18-4dfb-b4f7-af770bc3dc53_rte_image_212.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_7e634d18-5e18-4dfb-b4f7-af770bc3dc53_rte_image_212.png)</div></div><div id="bkmrk--22" style="cursor: auto;">  
</div><div id="bkmrk-here-the-code-is-100" style="cursor: auto;"><span>Here the code is 100 showing that no Preferential Tariff is applied. The following elements are relevant in this regard.</span></div><div id="bkmrk--23" style="cursor: auto;"><span>  
</span>![editor_16_5_77d8feb0-5479-4e78-a435-feb16b2defec_rte_image_216.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_77d8feb0-5479-4e78-a435-feb16b2defec_rte_image_216.png)   
  
</div><div id="bkmrk-commodity-code-conca" style="cursor: auto;"><span>Commodity code concatenation of 3 elements 7019110000</span></div><div id="bkmrk--24" style="cursor: auto;"><span style="cursor: auto;">  
![editor_16_5_cbeabac9-e725-4933-b13f-9f16e14de934_rte_image_229.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_cbeabac9-e725-4933-b13f-9f16e14de934_rte_image_229.png)   
</span>  
Origin = Malaysia (MY)</div><div id="bkmrk--25" style="cursor: auto;">  
  
</div>#### The Controls

<div id="bkmrk--26" style="cursor: auto;">  
</div><div id="bkmrk-we-have-the-tariff-i" style="cursor: auto;">We have the tariff information available to validate. On the basis of the Commodity code + the Country of Origin we can identify the applicable measures and validate against the declarations. We can use the Taric service data we have at our disposal.</div><div id="bkmrk--27" style="cursor: auto;">  
</div><div id="bkmrk-for-the-dutch-exampl" style="cursor: auto;">For the Dutch example, the control would be on the availability of the underlying documentation. A preferential rate is claimed on the basis of U116 Statement on Origin. The Control would be to validate the availability and the correctness of the document (output). The automated Control should show the Controls performed and the result, which in this case would be a To do to complete. In this case we would start with creating a Form to check the correctness of the Statement on Origin document.</div><div id="bkmrk--28" style="cursor: auto;">  
</div><div id="bkmrk--29" style="cursor: auto;">![editor_16_5_bdb5c258-2452-4162-8868-afd3fdf5aef7_rte_image_200.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_bdb5c258-2452-4162-8868-afd3fdf5aef7_rte_image_200.png)   
</div><div id="bkmrk--30" style="cursor: auto;">  
</div><div id="bkmrk--31" style="cursor: auto;">  
</div><div id="bkmrk--32" style="cursor: auto;">  
</div><div id="bkmrk-for-the-belgian-exam" style="cursor: auto;">For the Belgian example Commodity 7019110000 + Origin MY (Malaysia) does not offer a Tariff preference (142) Measure so correct application of Preference code 100. Automated Control should show checks done and result being Green score.</div><div id="bkmrk--33" style="cursor: auto;">  
</div><div id="bkmrk--34" style="cursor: auto;">![editor_16_5_0cfa4e1e-576c-4dc6-ae23-7680cd74a71d_rte_image_237.png](https://www.bzctrl.com/bzctrl-core-api/api/v1/download/editor_16_5_0cfa4e1e-576c-4dc6-ae23-7680cd74a71d_rte_image_237.png)</div><div id="bkmrk--35" style="cursor: auto;">  
</div><div id="bkmrk--36" style="cursor: auto;">   
  
</div>