Difference between revisions of "Information Systems:Gilead Sales Report (Python)"

From uniWIKI
Jump to navigation Jump to search
m
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{quote|For the old page, click here:[[Information Systems:Gilead Sales Report - Old|Gilead Sales Report - Old]]}}
+
{{quote|This program has been re-factored in Python, refer here: [[Information Systems:Gilead Sales Report|Gilead Sales Report]]}}
   
 
==Overview==
 
==Overview==
  +
Gilead requires daily inventory reporting on their products from uniPHARM. A Python script generates and sends this report to ValueCentric, the data broker used by Gilead.
Gilead requires daily sales and inventory reporting from uniPHARM, so a solution needed to be developed to generate and transmit such reports according to their specifications. This endeavor was a greenfield project of sorts, in that it was developed from scratch and comprises new techniques, all of which will be discussed here. This article represents the documentation for this solution.
 
   
  +
==Running manually==
Important notes:
 
 
Gilead uses ValueCentric as their data/analytics provider, so reports are sent to their servers. There is no communication with Gilead servers in this process.
 
   
 
(uwdutils) norwinu@BART /uwdsrc/uwdutils$ '''python3 gilead_852csv.py -h'''
 
(uwdutils) norwinu@BART /uwdsrc/uwdutils$ '''python3 gilead_852csv.py -h'''
Line 21: Line 19:
 
e.g. 20180501
 
e.g. 20180501
 
-s --supplier SUPPLIER
 
-s --supplier SUPPLIER
5-digit uniPHARM customer number e.g. 1234
+
5-digit uniPHARM customer number e.g. 12345
  +
  +
[[Category: I.T. Periodic Tasks]]

Latest revision as of 15:16, 28 April 2021

This program has been re-factored in Python, refer here: Gilead Sales Report

Overview

Gilead requires daily inventory reporting on their products from uniPHARM. A Python script generates and sends this report to ValueCentric, the data broker used by Gilead.

Running manually

(uwdutils) norwinu@BART /uwdsrc/uwdutils$ python3 gilead_852csv.py -h
usage: gilead_852csv.py [-h] [-f --force] [-d --date DATE]
                       [-s --supplier SUPPLIER]

Run daily sales report for Gilead.

optional arguments:
 -h, --help            show this help message and exit
 -f --force            Bypasses one-run-per-day check and forces program to
                       run
 -d --date DATE        Date report will be generated for, in format YYYYMMDD
                       e.g. 20180501
 -s --supplier SUPPLIER
                       5-digit uniPHARM customer number e.g. 12345