<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=EmilyCollins</id>
	<title>Calidus HUB - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=EmilyCollins"/>
	<link rel="alternate" type="text/html" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/index.php/Special:Contributions/EmilyCollins"/>
	<updated>2026-08-13T19:43:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/index.php?title=DHL_Invoicing&amp;diff=15353</id>
		<title>DHL Invoicing</title>
		<link rel="alternate" type="text/html" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/index.php?title=DHL_Invoicing&amp;diff=15353"/>
		<updated>2026-07-17T12:36:10Z</updated>

		<summary type="html">&lt;p&gt;EmilyCollins: /* DHL Invoicing – CTMS */ Amend location of database list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= DHL Invoicing =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The invoicing is transactional so requires data extracted from each system. &lt;br /&gt;
&lt;br /&gt;
= DHL Invoicing – CTMS =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each server has a crontab entry to run the processing on the 1&amp;lt;sup&amp;gt;st&amp;lt;/sup&amp;gt; of the month. It runs at 0421. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;#Entry for DHL monthly invoicing&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;21 4 1 * * /oraapp/util/sql/dhl_invoicing &amp;gt;&amp;gt; /tmp/dhl_invoicing&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script calls a database process called DP_DHL_INVOICING.RUN_ME&lt;br /&gt;
&lt;br /&gt;
A file '''/oraapp/util/sql/orainv''' as reference, the script will run against each database name annotated as Y. Previously this used the standard oratab entries but has been amended as part of the DHL Migration Project.  &lt;br /&gt;
&lt;br /&gt;
The package code is in CVS and should be maintained through the standard code change procedures.&lt;br /&gt;
&lt;br /&gt;
A system parameter called DHL_INV_EMAIL which contains the list of email addresses to send the output to. Multiple entries should be separated with a semi-colon. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The processing runs slightly different iterations of the queries depending on the system. The queries were split into groups based on the agreed costing models. &lt;br /&gt;
&lt;br /&gt;
There is also a listing of users. &lt;br /&gt;
&lt;br /&gt;
Users: &lt;br /&gt;
&lt;br /&gt;
* List of users who logged in in the last month.&lt;br /&gt;
&lt;br /&gt;
Group 1: &lt;br /&gt;
&lt;br /&gt;
* Trips - count of non-deleted trips in the previous month&lt;br /&gt;
* Bookings - count of schedule bookings in the previous month&lt;br /&gt;
* Scheduled Orders - count of orders' Load activities in the previous month.&lt;br /&gt;
&lt;br /&gt;
Group 2: &lt;br /&gt;
&lt;br /&gt;
* Scheduled Orders - count of orders' Load activities in the previous month, split down by cost centre and planning group (depot).&lt;br /&gt;
&lt;br /&gt;
Databases and Groups: &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Database&lt;br /&gt;
!Processes Run&lt;br /&gt;
|-&lt;br /&gt;
|aam&lt;br /&gt;
|Users, Group 1, Group 2&lt;br /&gt;
|-&lt;br /&gt;
|bnl&lt;br /&gt;
|Users, Group 1, Group 2&lt;br /&gt;
|-&lt;br /&gt;
|con&lt;br /&gt;
|Users, Group 1, Group 2&lt;br /&gt;
|-&lt;br /&gt;
|dun&lt;br /&gt;
|Users, Group 1, Capped Orders, Group 2&lt;br /&gt;
|-&lt;br /&gt;
|eur&lt;br /&gt;
|Users, Group 1, Group 2&lt;br /&gt;
|-&lt;br /&gt;
|hcr&lt;br /&gt;
|Users, Group 1, Group 2, Scheduled Low Volume Orders, Scheduled Standard Orders&lt;br /&gt;
|-&lt;br /&gt;
|ind&lt;br /&gt;
|Users, Group 1, Group 2&lt;br /&gt;
|}&lt;br /&gt;
{{Note|1=* dun - includes a list of capped orders (order count is a minimum of 30 orders per trip, or the count of orders per trip, whichever is the larger).&lt;br /&gt;
* hcr - includes a split of low-volume orders (volume &amp;lt;= 0.20) and standard orders (any order not in that list above).}} &lt;br /&gt;
&lt;br /&gt;
Each database will send an email with an attachment which contains tab separated data. It can be pasted directly into Excel. &lt;br /&gt;
&lt;br /&gt;
= DHL Invoicing – LOTS =&lt;br /&gt;
There is a stored procedure in the MySQL database called dhl_invoicing that contains the SQL. &lt;br /&gt;
&lt;br /&gt;
A bat file D:\LOTS\Invoicing\invoicing.bat runs the stored procedure and emails the file created. The file is then deleted (MySQL cannot overwrite a file). &lt;br /&gt;
&lt;br /&gt;
The list of email addresses is hard coded but it is just a text file that can be edited as required. &lt;br /&gt;
&lt;br /&gt;
The bat file runs from the Windows task scheduler on the first of the month at 0421&lt;br /&gt;
&lt;br /&gt;
[[Category:DHLT]]&lt;br /&gt;
[[Category:Technical Guides]]&lt;br /&gt;
[[Category:CTMS]]&lt;br /&gt;
[[Category:Support Documents]]&lt;br /&gt;
[[Category:Processes]]&lt;/div&gt;</summary>
		<author><name>EmilyCollins</name></author>
	</entry>
</feed>