diff --git a/ClientSpecific.py b/ClientSpecific.py
new file mode 100644
index 0000000..b9f2ab8
--- /dev/null
+++ b/ClientSpecific.py
@@ -0,0 +1,16 @@
+def client_Specific_Tabs(option):
+ if option == "Westfield":
+ Westfield()
+ elif option == " CCM":
+ CCM()
+ else:
+ return
+
+
+def Westfield():
+ print("Neat westfield stuff will go here")
+ exit()
+
+def CCM():
+ print("Neat CCM stuff will go here")
+ exit()
\ No newline at end of file
diff --git a/Config_ORIG.xml b/Config_ORIG.xml
deleted file mode 100644
index 4f184ff..0000000
--- a/Config_ORIG.xml
+++ /dev/null
@@ -1,2320 +0,0 @@
-
-
-
-
- ADA
- http://diabetes-storefront.gli.us.com/store/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Balance Due
- Currency
- SummaryBalanceDue
-
-
- Checkout Field: PaymentChargeCode
- PaymentChargeCode
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Item Status
-
-
- Printing Option: HagenJobID
- GLI Job #
- DetailGLIJobID
-
-
- Product Name
- DetailProductName
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Data List Record Count
- DetailDataListRecordCount
-
-
- Printing Option: OverrunQuantity
- OverrunQuantity
- DetailOverrunQuantity
-
-
- Printing Option: OptionalDataList
- OptionalDataList
- DetailOptionalDataList
-
-
- Printing Option: OptionalDownload
- OptionalDownload
-
-
- Checkout Field: PaymentChargeCode
- PaymentChargeCode
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfilePhoneNumber
- UserProfilePhone
- Text
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
- Shipping Field: ShippingPhoneNumber
- ShippingPhoneNumber
- Text
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
- CCM
- http://ccm.gli.us.com/store/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Balance Due
- Currency
- SummaryBalanceDue
-
-
- Payment Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Item Status
-
-
- Printing Option: HagenJobID
- GLI Job #
- DetailGLIJobID
-
-
- Product Name
- DetailProductName
-
-
- Product Metadata Field: PRODUCT_SKU
- CCM Item #
- DetailCCMItem
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Payment Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfilePhoneNumber
- UserProfilePhone
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
- Shipping Field: ShippingPhoneNumber
- ShippingPhoneNumber
- Text
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
- CFF
- http://cff.gli.us.com/store/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Balance Due
- Currency
- SummaryBalanceDue
-
-
- Checkout Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingEmailAddress
- InvoiceEmailAddress
-
-
- Shipping Field: ShippingCompany
- ShippingCompany
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Item Status
-
-
- Printing Option: HagenJobID
- GLI Job #
- DetailGLIJobID
-
-
- Product Name
- DetailProductName
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Data List Record Count
- DetailDataListRecordCount
-
-
- Printing Option: OverrunQuantity
- OverrunQuantity
- DetailOverrunQuantity
-
-
- Printing Option: OptionalDataList
- OptionalDataList
- DetailOptionalDataList
-
-
- Checkout Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfilePhone
- UserProfilePhone
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
- Shipping Field: ShippingPhone
- ShippingPhoneNumber
- Text
-
-
- Printing Option: AppealCode_1
- Appeal Code 1
- Text
-
-
- Printing Option: AppealCode_1_Quantity
- Appeal Code 1 Quantity
-
-
- Printing Option: AppealCode_2
- Appeal Code 2
- Text
-
-
- Printing Option: AppealCode_2_Quantity
- Appeal Code 2 Quantity
-
-
- Printing Option: AppealCode_3
- Appeal Code 3
- Text
-
-
- Printing Option: AppealCode_3_Quantity
- Appeal Code 3 Quantity
-
-
- Printing Option: AppealCode_4
- Appeal Code 4
- Text
-
-
- Printing Option: AppealCode_4_Quantity
- Appeal Code 4 Quantity
-
-
- Printing Option: AppealCode_5
- Appeal Code 5
- Text
-
-
- Printing Option: AppealCode_5_Quantity
- Appeal Code 5 Quantity
-
-
- Printing Option: AppealCode_6
- Appeal Code 6
- Text
-
-
- Printing Option: AppealCode_7_Quantity
- Appeal Code 7 Quantity
-
-
- Printing Option: AppealCode_8
- Appeal Code 8
- Text
-
-
- Printing Option: AppealCode_9_Quantity
- Appeal Code 9 Quantity
-
-
- Printing Option: AppealCode_10
- Appeal Code 10
- Text
-
-
- Printing Option: AppealCode_10_Quantity
- Appeal Code 10 Quantity
-
-
- Printing Option: AppealCode_11
- Appeal Code 11
- Text
-
-
- Printing Option: AppealCode_11_Quantity
- Appeal Code 11 Quantity
-
-
- Printing Option: AppealCode_12
- Appeal Code 12
- Text
-
-
- Printing Option: AppealCode_12_Quantity
- Appeal Code 12 Quantity
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
- FMSA
- http://fmsaprintportal.gli.us.com/store/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Balance Due
- Currency
- SummaryBalanceDue
-
-
- Checkout Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Item Status
-
-
- Printing Option: HagenJobID
- GLI Job #
- DetailGLIJobID
-
-
- Product Name
- DetailProductName
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Checkout Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfilePhoneNumber
- UserProfilePhone
- Text
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
- Shipping Field: ShippingPhoneNumber
- ShippingPhoneNumber
- Text
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
- FOMO
- http://fomocc.gli.us.com/store/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Balance Due
- Currency
- SummaryBalanceDue
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Item Status
-
-
- Printing Option: HagenJobID
- GLI Job #
- DetailGLIJobID
-
-
- Product Name
- DetailProductName
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Data List Record Count
- DetailDataListRecordCount
-
-
- Printing Option: OverrunQuantity
- OverrunQuantity
- DetailOverrunQuantity
-
-
- Printing Option: OptionalDataList
- OptionalDataList
- DetailOptionalDataList
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
- LLS
- http://llsmarketingassets.gli.us.com/store/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Balance Due
- Currency
- SummaryBalanceDue
-
-
- Checkout Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Item Status
-
-
- Printing Option: HagenJobID
- GLI Job #
- DetailGLIJobID
-
-
- Product Name
- DetailProductName
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Data List Record Count
- DetailDataListRecordCount
-
-
- Printing Option: OverrunQuantity
- OverrunQuantity
- DetailOverrunQuantity
-
-
- Printing Option: OptionalDataList
- OptionalDataList
- DetailOptionalDataList
-
-
- Printing Option: OptionalDownload
- OptionalDownload
- DetailOptionalDownload
-
-
- Checkout Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- Printing Option: BusinessUnits
- Business Unit
-
-
- Printing Option: Subledger
- Subledger
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfilePhoneNumber
- UserProfilePhone
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
- MCFA
- http://webbasedmarketing.aksess-it.com/mcfa/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Order Price
- Currency
- SummaryBalanceDue
-
-
- Checkout Field: PaymentMethodOfPayment
- Payment Method
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileCompany
- UserProfileCompanyName
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Item Status
-
-
- Product Name
- DetailProductName
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Data List Record Count
- DetailDatalistRecordCount
-
-
- Printing Option: OverrunQuantity
- OverrunQuantity
- DetailOverrunQuantity
-
-
- Printing Option: OptionalDataList
- OptionalDataList
- DetailOptionalDataList
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
- TIMKEN
- http://timkendesign4u.gli.us.com/store/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Order Price
- Currency
-
-
- Balance Due
- Currency
- SummaryBalanceDue
-
-
- Checkout Field: PaymentMethodOfPayment
- Payment Method
-
-
- Checkout Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- Checkout Field: PaymentCreditCardType
- Credit Card Type
-
-
- User Logon
- Text
- SummaryUserLogon
-
-
- Owner Profile: UserProfileCompany
- UserProfileCompanyName
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Date/Time Shipped
- DateTime
-
-
- Item Status
-
-
- Printing Option: HagenJobID
- GLI Job #
-
-
- Product Name
- DetailProductName
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Printing Option: OptionalDownload
- OptionalDownload
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
- Timken Distributor
- http://timkendistributor.gli.us.com/store/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Order Price
- Currency
-
-
- Balance Due
- Currency
- SummaryBalanceDue
-
-
- Checkout Field: PaymentMethodOfPayment
- Payment Method
-
-
- Checkout Field: PaymentChargeCode
- Payment Charge Code
- Text
-
-
- Checkout Field: PaymentCreditCardType
- Credit Card Type
-
-
- User Logon
- Text
- SummaryUserLogon
-
-
- Owner Profile: UserProfileDistributorName
- UserProfileDistributorName
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Date/Time Shipped
- DateTime
-
-
- Item Status
-
-
- Printing Option: HagenJobID
- GLI Job #
-
-
- Product Name
- DetailProductName
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Printing Option: OptionalDownload
- OptionalDownload
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
- Westfield
- http://westfield.gli.us.com/store/storefrontapi.asmx
-
-
-
-
- Order ID
- SummaryOrderID
-
-
- Date/Time Created
- DateTime
- SummaryDateTime
-
-
- Order Status
-
-
- Balance Due
- Currency
- SummaryBalanceDue
-
-
- Order Price
- Currency
-
-
- Checkout Field: PaymentMethodOfPayment
- Payment Method
-
-
- Shipping Field: DepartmentCode
- DepartmentCode
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
-
-
-
-
- Order ID
- DetailOrderID
-
-
- Document ID
- DetailDocumentID
-
-
- Date/Time Order Created
- DateTime
- DetailDateTime
-
-
- Item Status
-
-
- Printing Option: HagenJobID
- GLI Job #
- DetailGLIJobID
-
-
- Product Name
- DetailProductName
-
-
- Printing Option: PrintingQuantity
- Quantity
- DetailQuantity
-
-
- Item Price
- Currency
- DetailItemPrice
-
-
- Printing Option: ReasonCodes
- Reason Codes
-
-
- Product Metadata Field: PromailProductID
- PromailProductID
-
-
- Shipping Field: DepartmentCode
- ShippingDepartmentCode
-
-
- Shipping Field: AgencyCode
- ShippingAgencyCode
-
-
- Checkout Field: DepartmentCode
- DepartmentCode
- Text
-
-
- User Logon
- Text
-
-
- Owner Profile: UserProfileFirstName
- UserProfileFirstName
-
-
- Owner Profile: UserProfileLastName
- UserProfileLastName
-
-
- Owner Profile: UserProfilePhoneNumber
- UserProfilePhone
-
-
- Owner Profile: UserProfileEmailAddress
- UserProfileEmailAddress
-
-
- Shipping Field: ShippingFirstName
- ShippingFirstName
-
-
- Shipping Field: ShippingLastName
- ShippingLastName
-
-
- Shipping Field: ShippingAddress1
- ShippingAddress1
-
-
- Shipping Field: ShippingAddress2
- ShippingAddress2
-
-
- Shipping Field: ShippingCity
- ShippingCity
-
-
- Shipping Field: ShippingState
- ShippingState
-
-
- Shipping Field: ShippingPostalCode
- ShippingPostalCode
- Text
-
-
- Shipping Field: ShippingPhone
- ShippingPhoneNumber
- Text
-
-
- Document's Description
- Document's Description
- Text
-
-
-
-
-
-
-
-
- Login
- Text
- UserAccounts
-
-
- Status
-
-
- First Name
-
-
- Last Name
-
-
- User Profile: UserProfileEmailAddress
- Email
- Text
-
-
- Date/Time Last Logged In
- DateTime
-
-
- Date/Time Created
- DateTime
-
-
- User Profile: AgencyQuestion
- Agency Question
-
-
- User Profile: AgencyCode
- Agency Code
- Text
-
-
- User Profile: DepartmentCode
- Department Code
- Text
-
-
- Is Admin
-
-
- Is User
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/StorefrontUtilitiesConfig.xml b/StorefrontUtilitiesConfig.xml
index 19dd35e..1dd6815 100644
--- a/StorefrontUtilitiesConfig.xml
+++ b/StorefrontUtilitiesConfig.xml
@@ -98,7 +98,6 @@
Date/Time Order Created
DateTime
DetailDateTime
- None
Item Status
@@ -119,7 +118,7 @@
Printing Option: PrintingQuantity
Quantity
DetailQuantity
- None
+ Integer
Item Price
@@ -129,13 +128,13 @@
Data List Record Count
DetailDataListRecordCount
- None
+ Integer
Printing Option: OverrunQuantity
OverrunQuantity
DetailOverrunQuantity
- None
+ Integer
Printing Option: OptionalDataList
diff --git a/WriteReport.py b/WriteReport.py
index 72e6a80..cb52c59 100644
--- a/WriteReport.py
+++ b/WriteReport.py
@@ -1,31 +1,48 @@
-def Write_Report(y, ws, columnFormat, SSheader):
+def Write_Report(y, columnFormat, SSheader, sheet):
results = []
count = 0
for child in y.report:
for childs in child:
- print(columnFormat[SSheader[count]])
- count = count + 1
- if '$' in childs.text:
- convert = childs.text
- apply = convert[1:]
- results.append(float(apply.replace(',', '')))
+ if childs.text is not "":
+ asdf = Format_Check(columnFormat, SSheader, childs, count)
else:
- results.append(childs.text)
- ws.append(results)
- results = []
+ asdf = childs.text
+ results.append(asdf)
+ count = count + 1
count = 0
+ sheet.append(results)
+ results = []
-def Detail_Write_Report(y, ws):
+# def Detail_Write_Report(y, sheet):
+# results = []
+#
+# for child in y.report:
+# for childs in child:
+# if '$' in childs.text:
+# convert = childs.text
+# apply = convert[1:]
+# results.append(float(apply.replace(',', '')))
+# else:
+# results.append(childs.text)
+# sheet.append(results)
+# results = []
+
+def Format_Check(columnFormat, SSheader, childs, count):
+ check = columnFormat[SSheader[count]]
results = []
- for child in y.report:
- for childs in child:
- if '$' in childs.text:
- convert = childs.text
- apply = convert[1:]
- results.append(float(apply.replace(',', '')))
- else:
- results.append(childs.text)
- ws.append(results)
- results = []
+ if check == "None":
+ return childs.text
+ elif check == "Currency":
+ if '$' in childs.text:
+ convert = childs.text
+ apply = convert[1:]
+ results.append(float(apply.replace(',', '')))
+ return results[0]
+ else:
+ return float(childs.text)
+ elif check == "Integer":
+ return int(childs.text)
+ else:
+ return childs.text
diff --git a/main.py b/main.py
index 1ba35f4..201cb42 100644
--- a/main.py
+++ b/main.py
@@ -1,10 +1,9 @@
import requests
from bs4 import BeautifulSoup as bs
-# import csv
from openpyxl import workbook
from openpyxl.styles import Font
-
from WriteReport import *
+from ClientSpecific import *
bold = Font(bold=True)
@@ -42,11 +41,8 @@ def Release_Ticket(ticket, URL, HOST):
response = requests.post(url=URL, data=ReleaseTicket, headers=headers).text
print("released ticket "+ticket)
-def Westfield():
- print("Westfield")
- exit()
-def Run_Report(ticket, URL, HOST, REPORT_FIELDS, wb, ws, ws2, DETAIL_REPORT_FIELDS, columnFormat, SSheader):
+def Run_Report(ticket, URL, HOST, REPORT_FIELDS, wb, ws, ws2, DETAIL_REPORT_FIELDS, summary_columnFormat, summary_SSheader, detail_columnFormat, detail_SSheader):
ExternalID = []
id = []
@@ -82,7 +78,8 @@ def Run_Report(ticket, URL, HOST, REPORT_FIELDS, wb, ws, ws2, DETAIL_REPORT_FIEL
y = bs(report, "lxml")
# Opens report file and writes each row
- Write_Report(y, ws, columnFormat, SSheader)
+ sheet = ws
+ Write_Report(y, summary_columnFormat, summary_SSheader, sheet)
# Grabs all the Order IDs from Column A
for cell in ws['A']:
@@ -197,7 +194,8 @@ def Run_Report(ticket, URL, HOST, REPORT_FIELDS, wb, ws, ws2, DETAIL_REPORT_FIEL
# Opens report file and writes each row
- Detail_Write_Report(y, ws)
+ sheet = ws2
+ Write_Report(y, detail_columnFormat, detail_SSheader, sheet)
# Finalize Spreadsheet and save
@@ -225,6 +223,7 @@ def loadMenu():
detail_headers = []
CLIENT_COLUMN_FORMAT = []
COLUMN_FORMAT = []
+ detail_columnformat = []
# Open the config file
with open(ConfigFile) as f:
@@ -292,12 +291,11 @@ def loadMenu():
option = int(input())
- if ClientName[option] == "Westfield":
- Westfield()
+ client_Specific_Tabs(ClientName[option])
- columnformat = dict.fromkeys(headers[option])
+ summary_columnformat = dict.fromkeys(headers[option])
-# Get specific Column Types for chosen client
+# Get specific Summary Column Types for chosen client
for w in y.find_all('client'):
for x in w.find_all('name'):
if x.text == ClientName[option]:
@@ -305,10 +303,27 @@ def loadMenu():
for g in x.find_all('summarytab'):
for z in g.find_all('columnformat'):
CLIENT_COLUMN_FORMAT.append(z.text)
-# set Column Types Header Dictionary
+# set Summary Column Types Header Dictionary
count = 0
- for key in columnformat:
- columnformat[key] = CLIENT_COLUMN_FORMAT[count]
+ for key in summary_columnformat:
+ summary_columnformat[key] = CLIENT_COLUMN_FORMAT[count]
+ count = count + 1
+
+ CLIENT_COLUMN_FORMAT = []
+# Get specific Detail Column Types for chosen client
+ for w in y.find_all('client'):
+ for x in w.find_all('name'):
+ if x.text == ClientName[option]:
+ for x in w.find_all('monthlyreport'):
+ for g in x.find_all('detailtab'):
+ for z in g.find_all('columnformat'):
+ CLIENT_COLUMN_FORMAT.append(z.text)
+
+ detail_columnformat = dict.fromkeys(detail_headers[option])
+ # set Detail Column Types Header Dictionary
+ count = 0
+ for key in detail_columnformat:
+ detail_columnformat[key] = CLIENT_COLUMN_FORMAT[count]
count = count + 1
# create new report file and add headers based on config file
@@ -322,10 +337,9 @@ def loadMenu():
# converts summary_tab values to a string, adds everything to the URL_HOST array and returns it
-
REPORT_FIELDS = '\n'.join(map(str, SUMMARY_TAB[option]))
DETAIL_REPORT_FIELDS = '\n'.join(map(str, DETAIL_TAB[option]))
- URL_HOST = [SF_URL[option], SF_HOST[option], REPORT_FIELDS, wb, ws, ws2, DETAIL_REPORT_FIELDS, columnformat, headers[option]]
+ URL_HOST = [SF_URL[option], SF_HOST[option], REPORT_FIELDS, wb, ws, ws2, DETAIL_REPORT_FIELDS, summary_columnformat, headers[option], detail_columnformat, detail_headers[option]]
return URL_HOST
def main():
@@ -337,12 +351,14 @@ def main():
ws = URL_HOST[4]
ws2 = URL_HOST[5]
DETAIL_REPORT_FIELDS = URL_HOST[6]
- columnFormat = URL_HOST[7]
+ summary_columnFormat = URL_HOST[7]
- SSheader = URL_HOST[8]
+ summary_SSheader = URL_HOST[8]
+ detail_columnFormat = URL_HOST[9]
+ detail_SSheader = URL_HOST[10]
ticket = Obtain_Ticket(URL, HOST)
- Run_Report(ticket, URL, HOST, REPORT_FIELDS, wb, ws, ws2, DETAIL_REPORT_FIELDS, columnFormat, SSheader)
+ Run_Report(ticket, URL, HOST, REPORT_FIELDS, wb, ws, ws2, DETAIL_REPORT_FIELDS, summary_columnFormat, summary_SSheader, detail_columnFormat, detail_SSheader)
Release_Ticket(ticket, URL, HOST)
main()
\ No newline at end of file