cookbook:billing_process
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cookbook:billing_process [2019/07/26 01:59] – created Scott Cunliffe | cookbook:billing_process [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
The TapeTrack Billing process uses the following steps: | The TapeTrack Billing process uses the following steps: | ||
- | * Extract data related to billing | + | * Extract data related to Billing |
* Write the Billing data to .ttstats files, one for each Customer ID | * Write the Billing data to .ttstats files, one for each Customer ID | ||
* Process the Billing data using a definition file which filters the data and applies the relevant charges | * Process the Billing data using a definition file which filters the data and applies the relevant charges | ||
- | * Output the Customer Billing data to XML file for input into your Invoice generating software, | + | * Output the Customer Billing data to XML file for input into your Invoice generating software, |
===== Extracting Data ===== | ===== Extracting Data ===== | ||
- | [[cli: | + | [[cli: |
- | At the completion of the program you will have one .ttstats (TapeTrack Statistics) file for each TapeTrack customer. | + | At the completion of the program you will have one .ttstats (TapeTrack Statistics) file for each TapeTrack |
==== Example ==== | ==== Example ==== | ||
Line 21: | Line 21: | ||
* '' | * '' | ||
- | <sxh> | + | <code> |
TMSS10LogStatsExtractDB -R M-1:m-1 -h " | TMSS10LogStatsExtractDB -R M-1:m-1 -h " | ||
- | </sxh> | + | </code> |
==== Output ==== | ==== Output ==== | ||
Line 31: | Line 31: | ||
US01.ttstats | US01.ttstats | ||
- | <sxh> | + | <code> |
- | + | CUS02 | |
- | </sxh> | + | ILTO 20201029000221000000 |
+ | SLTO LIBR20201029000220000000 | ||
+ | HLTO LIBR20201029000000000000 | ||
+ | SLTO OFFS20201029000001000000 | ||
+ | HLTO OFFS20201029000000000000 | ||
+ | ILTO 20201030000221000001 | ||
+ | SLTO LIBR20201030000220000001 | ||
+ | HLTO LIBR20201030000000000001 | ||
+ | SLTO OFFS20201030000001000001 | ||
+ | HLTO OFFS20201030000000000001 | ||
+ | ILTO 00000000000221000002 | ||
+ | SLTO LIBR00000000000440000002 | ||
+ | HLTO LIBR00000000000000000002 | ||
+ | SLTO OFFS00000000000002000002 | ||
+ | HLTO OFFS00000000000000000002 | ||
+ | </code> | ||
===== Processing Data ===== | ===== Processing Data ===== | ||
Line 43: | Line 58: | ||
=== Billing Definition File === | === Billing Definition File === | ||
- | <sxh> | + | Add storage charges for: |
- | # | + | * US01 |
+ | * DLT Catridges @ 4 cents per day | ||
+ | * LTO Cartridges @ 5 cents per day | ||
+ | |||
+ | Add Movement or Transport charges for: | ||
+ | * US01 | ||
+ | * From Customer to Vault @ 10 Cents per Volume | ||
+ | * From Vault to Customer @ 10 cents per Volume | ||
+ | |||
+ | Add Delivery surcharge on non standard delivery times for: | ||
+ | * US01 | ||
+ | * Express @ $4.00 | ||
+ | * Overnight @ $6.00 | ||
+ | * Immediate @ $10.00 | ||
+ | |||
+ | <code> | ||
+ | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | ||
+ | # | ||
# AddStorageCharge( | # AddStorageCharge( | ||
# Package Filter, <-- Package Filter | # Package Filter, <-- Package Filter | ||
# Customer Filter, | # Customer Filter, | ||
# Media Filter, | # Media Filter, | ||
- | # Rep Filter, <-- Repository filter e.g. OFFS | + | # Rep Filter, <-- Repository filter e.g. OFFS |
# Round Up Factor, | # Round Up Factor, | ||
# Minumum Units, | # Minumum Units, | ||
- | # | + | # |
- | # Cap, <-- Cap Value | + | # Cap, <-- Cap Value |
- | # Model, <-- Model number | + | # Model, <-- Model number |
- | # Item Code, <-- Item code string | + | # Item Code, <-- Item code string |
- | # | + | # |
# | # | ||
- | # Cost, <-- Cost in cents | + | # Cost, <-- Cost in cents |
- | # | + | # |
# ); | # ); | ||
- | # | + | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
- | AddStorageChargeItem(" | + | |
- | AddStorageChargeItem(" | + | AddStorageChargeItem( |
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | 0, | ||
+ | 0, | ||
+ | 00000, | ||
+ | 00000, | ||
+ | 0, | ||
+ | " | ||
+ | " | ||
+ | "DLT Vaulting Charge", | ||
+ | 4, | ||
+ | false | ||
+ | ); | ||
+ | |||
+ | AddStorageChargeItem( | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | 0, | ||
+ | 0, | ||
+ | 00000, | ||
+ | 00000, | ||
+ | 0, | ||
+ | " | ||
+ | " | ||
+ | "LTO Cartridge Vaulting Charge", | ||
+ | 5, | ||
+ | false | ||
+ | ); | ||
+ | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | ||
# | # | ||
# AddMovementChargeItem( | # AddMovementChargeItem( | ||
Line 75: | Line 140: | ||
# Round Up Factor, <-- Round up factor e.g. if 10 number will be rounded up to nearest 10 | # Round Up Factor, <-- Round up factor e.g. if 10 number will be rounded up to nearest 10 | ||
# Minumum Units, | # Minumum Units, | ||
- | # | + | # |
- | # Cap, <-- Cap Value | + | # Cap, <-- Cap Value |
- | # Model, <-- Model number | + | # Model, <-- Model number |
- | # Item Code, <-- Item code string | + | # Item Code, <-- Item code string |
- | # | + | # |
# | # | ||
- | # Cost, <-- Cost in cents | + | # Cost, <-- Cost in cents |
- | # | + | # |
# ); | # ); | ||
- | # | + | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
- | AddMovementChargeItem(" | + | |
- | AddMovementChargeItem(" | + | AddMovementChargeItem( |
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | 0, | ||
+ | 0, | ||
+ | 00000, | ||
+ | 00000, | ||
+ | 0, | ||
+ | " | ||
+ | " | ||
+ | "DLT Transport Charge", | ||
+ | 10, | ||
+ | false | ||
+ | ); | ||
+ | |||
+ | AddMovementChargeItem( | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | 0, | ||
+ | 0, | ||
+ | 00000, | ||
+ | 00000, | ||
+ | 0, | ||
+ | " | ||
+ | " | ||
+ | "LTO Transport Charge", | ||
+ | 10, | ||
+ | false | ||
+ | ); | ||
+ | |||
+ | AddMovementChargeItem( | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | 0, | ||
+ | 0, | ||
+ | 00000, | ||
+ | 00000, | ||
+ | 0, | ||
+ | " | ||
+ | " | ||
+ | "DLT Transport Charge", | ||
+ | 10, | ||
+ | false | ||
+ | ); | ||
- | AddMovementChargeItem(" | + | AddMovementChargeItem( |
- | AddMovementChargeItem(" | + | " |
- | $CUSTOMER2", | + | " |
+ | " | ||
+ | " | ||
+ | " | ||
+ | 0, | ||
+ | 0, | ||
+ | 00000, | ||
+ | 00000, | ||
+ | 0, | ||
+ | " | ||
+ | "Vault to $CUSTOMER2", | ||
+ | "LTO Transport Charge", | ||
+ | 10, | ||
+ | false | ||
+ | ); | ||
+ | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | ||
# | # | ||
# AddJournalChargeItem( | # AddJournalChargeItem( | ||
Line 100: | Line 232: | ||
# Round Up Factor, | # Round Up Factor, | ||
# Minumum Units, | # Minumum Units, | ||
- | # | + | # |
- | # Cap, <-- Cap Value | + | # Cap, <-- Cap Value |
- | # Model, <-- Model number | + | # Model, <-- Model number |
- | # Item Code, <- Item code string | + | # Item Code, <- Item code string |
- | # | + | # |
# | # | ||
- | # Cost, <-- Cost in cents | + | # Cost, <-- Cost in cents |
- | # Continue <- continue on and bill next item if appropriate (0=No, !0=Yes) | + | # Continue <- continue on and bill next item if appropriate (0=No, !0=Yes) |
# ); | # ); | ||
# | # | ||
- | # | + | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
+ | |||
+ | AddJournalChargeItem( | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | 0, | ||
+ | 0, | ||
+ | 0, | ||
+ | 0, | ||
+ | 0, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | 400, | ||
+ | false | ||
+ | ); | ||
- | AddJournalChargeItem(" | + | AddJournalChargeItem( |
- | AddJournalChargeItem(" | + | " |
- | AddJournalChargeItem(" | + | " |
- | AddJournalChargeItem(" | + | " |
+ | 0, | ||
+ | 0, | ||
+ | 0, | ||
+ | 0, | ||
+ | 0, | ||
+ | " | ||
+ | " | ||
+ | "Over Night Delivery", | ||
+ | 600, | ||
+ | false | ||
+ | ); | ||
- | </ | + | AddJournalChargeItem( |
+ | " | ||
+ | " | ||
+ | " | ||
+ | 0, | ||
+ | 0, | ||
+ | 0, | ||
+ | 0, | ||
+ | 0, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | 1000, | ||
+ | false | ||
+ | ); | ||
+ | |||
+ | </ | ||
+ | {{tag> cookbook}} | ||
cookbook/billing_process.1564106360.txt.gz · Last modified: 2025/01/21 22:07 (external edit)