Skip to content

Commit c2e3f1e

Browse files
Update text descriptions in 'process-invoices' page (#142)
1 parent 178f2aa commit c2e3f1e

File tree

2 files changed

+46
-63
lines changed

2 files changed

+46
-63
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ ALMA_SAP_INVOICES_ECS_CLUSTER=### The full ARN of the ECS cluster to run the Alm
2929
ALMA_SAP_INVOICES_ECS_TASK_DEFINITION=### The family and revision (formatted as <family>:<revision>) or full ARN of Alma SAP Invoices CLI ECS task.
3030
ALMA_SAP_INVOICES_ECS_GROUPS=### Security group(s) for the Alma SAP Invoices ECS task (formatted as a comma-separated string excluding whitespaces, e.g. "sg-abc123,sg-def456").
3131
ALMA_SAP_INVOICES_ECS_SUBNETS=### Subnet(s) for the Alma SAP Invoices ECS task (formatted as a comma-separated string excluding whitespaces, e.g. "subnet-abc123,subnet-def456").
32-
ALMA_SAP_INVOICES_ECS_NETWORK_CONFIG=### The network configuration for the Alma SAP Invoices ECS task.
3332
ALMA_SAP_INVOICES_CLOUDWATCH_LOG_GROUP=### The name of the log group containing logs from Alma SAP Invoices ECS task runs.
3433
LOGIN_DISABLED=### String variable representing a boolean to disable login (i.e., ignore 'login_required' decorator). Set to 'true' to disable login (recommended for unit testing and Dev); must be set to 'false' for Stage and Prod.
3534
SECRET_KEY=### A secret key used for securely signing the session cookie and can be used for any other security related needs by extensions or the application. It should be a long random bytes or string.

webapp/templates/process_invoices.html

Lines changed: 46 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -6,87 +6,71 @@
66
<h1>Process invoices</h1>
77
<div class="review-run well">
88
<h3 class="title"><strong>Review run</strong></h3>
9+
<p><strong>Always execute a <u>review run</u> first.</strong></p>
910
<p>
10-
A review run is always executed before a final run. Executing a review run will
11-
create formatted review reports, which are then sent to Acquisitions staff.
12-
This process is described in more detail below:
11+
A review run:
1312
<ol>
13+
<li>Retrieves invoices from Alma with “Ready to be paid” status*</li>
14+
<li>Creates two (2) formatted reports -- one for monographs and one for serials</li>
15+
<li>Creates two (2) summary lists of invoices -- one for monographs and one for serials</li>
1416
<li>
15-
Invoices from Alma with status "Waiting to be sent" are retrieved,
16-
sorted by vendor code and invoice number.
17-
</li>
18-
<li>
19-
For every invoice record, the following occur:
20-
<ul>
21-
<li>Given the vendor code, the vendor's payment address is retrieved from Alma.</li>
22-
<li>Data about funds are retrieved from Alma.</li>
23-
<li>The data is inspected for multibyte errors.</li>
24-
</ul>
25-
If any errors occur during the three steps described above, the errors are flagged for the
26-
invoice record. Invoices flagged with any errors are denoted "problem invoices" and are
27-
<strong>not</strong> processed further.
28-
29-
Invoice records parsed successfully are denoted "parsed invoices" and further processed.
30-
</li>
31-
<li>
32-
The "parsed invoices" are grouped into monographs and serials based on the "purchase type"
33-
of the record.
34-
</li>
35-
<li>
36-
For each purchase type (monographs and serials), the following occur:
37-
<ul>
38-
<li>
39-
A summary and report is generated. The summary is used as the text in the body of the email
40-
while the report is a text file that is attached to the email. <br>
41-
</li>
42-
<li>
43-
An email is created and sent to the [email protected] Moira list. Emails for
44-
review runs are identified by the subject heading: "REVIEW libraries invoice feed - &lt;purchase type&gt;".
45-
</li>
46-
</ul>
17+
Sends two (2) emails with the formatted reports and summary lists
18+
(one email for monographs and one email for serials) to the
19+
[email protected] Moira list, which includes members of
20+
the Libraries’ invoice processing staff and Enterprise Systems staff
4721
</li>
4822
</ol>
23+
After receiving the formatted reports, invoice processing staff compare the report
24+
to the vendor’s invoices, and adjust the Alma invoices as needed.
25+
Review runs can be executed as many times as needed,
26+
until all invoices in Alma are accurate.
4927
</p>
50-
<p><strong>What happens to "problem invoices"?</strong></p>
51-
<p>
52-
Warnings are created for every invoice that encountered an error during processing.
53-
These warning statements will indicate all the errors for a given record and
54-
are included in the summary used as the content of the email.
55-
</p>
56-
<p><strong>IMPORTANT: All errors <u>must</u> be addressed before executing a final run.</strong></p>
5728
<p><a class="btn button-primary" href="{{ url_for('process_invoices_run', run_type='review') }}">Execute <strong>review</strong> run</a></p>
5829
</div>
5930
<div class="final-run well">
6031
<h3 class="title"><strong>Final run</strong></h3>
6132
<p>
62-
A final run is only executed after a successful review run without any errors. The process for a final run
63-
involves the same steps as the review run (see description for "Review run" above) but with some
64-
additional steps. These additional steps are described in more detail below:
33+
<strong>
34+
IMPORTANT:
35+
<ul>
36+
<li>
37+
A <u>final run</u> can only be executed once because it
38+
alters the invoices in Alma and transmits the invoices to SAP.
39+
</li>
40+
<li>
41+
All errors from a <u>review run</u> <em>must</em> be addressed before
42+
executing a final run.
43+
</li>
44+
</ul>
45+
</strong>
46+
Only execute a <strong>final run</strong> once all Alma invoices have been adjusted
47+
and a review run produces a report that matches the vendor invoices.
48+
</p>
49+
<p>
50+
A final run:
6551
<ol>
52+
<li>Retrieves invoices from Alma with “Ready to be paid” status*</li>
53+
<li>Creates two (2) formatted reports -- one for monographs and one for serials</li>
54+
<li>Creates two (2) summary lists of the invoices -- one for monographs and one for serials</li>
6655
<li>
67-
The total amount across all SAP invoices, which are invoices for which the payment method
68-
labeled as "ACCOUNTINGDEPARTMENT", is calculated.
69-
</li>
70-
<li>
71-
A <a href="https://wikis.mit.edu/confluence/display/SAPdev/MIT+SAP+Dropbox">data file and control file</a> are generated for the SAP invoices.
72-
</li>
73-
<li>
74-
The data files and control file are uploaded to the SAP Dropbox folder.
75-
</li>
76-
<li>
77-
The SAP sequence number is updated for the next run.
56+
Creates two (2) sets of a data file and a control file -- one for monographs and
57+
one for serials
7858
</li>
59+
<li>Transmits the data files and control files to Accounts Payable</li>
60+
<li>Marks the invoices "Paid" in Alma</li>
7961
<li>
80-
Invoices are marked as paid in Alma.
62+
Sends two (2) emails with the formatted reports and summary lists
63+
(one email for monographs and one email for serials) to the
64+
[email protected] Moira list, which includes members of
65+
the Libraries’ invoice processing staff, Enterprise Systems staff,
66+
and Accounts Payable staff
8167
</li>
8268
</ol>
8369
</p>
84-
<p>
85-
<strong>Note:</strong> In contrast to the review run, email with the generated summary and report
86-
are sent to the [email protected] Moira list. Emails for final runs are identified
87-
by the subject heading: "Libraries invoice feed - &lt;purchase type&gt;".
8870
</p>
89-
<p><strong>IMPORTANT: All errors from a review run <u>must</u> be addressed before executing a final run.</strong></p>
9071
<p><a class="btn button-primary" href="{{ url_for('process_invoices_confirm_final_run') }}">Execute a <strong>final</strong> run</a></p>
9172
</div>
73+
*In the Alma UI, the invoices will display the status of “Ready to be paid”, but
74+
under the hood, the status of these invoices is “Waiting to be sent”.
75+
Strange but true!
9276
{% endblock content %}

0 commit comments

Comments
 (0)