billing:billing_rules
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| billing:billing_rules [2026/08/19 02:09] – [How Rules Are Selected] Scott Cunliffe | billing:billing_rules [2026/08/19 02:29] (current) – [Pricing] Scott Cunliffe | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Rules are stored in a billing definition file, normally with the '' | Rules are stored in a billing definition file, normally with the '' | ||
| - | <WRAP important> | ||
| - | Always run '' | ||
| - | </ | ||
| ===== How Rules Are Selected ===== | ===== How Rules Are Selected ===== | ||
| Line 45: | Line 42: | ||
| The supplied definitions demonstrate these common filter patterns: | The supplied definitions demonstrate these common filter patterns: | ||
| - | ^ Filter ^ Meaning ^ | + | ^ Filter |
| - | | ''" | + | | ''" |
| - | | ''" | + | | ''" |
| - | | ''" | + | | ''" |
| - | | ''" | + | | ''" |
| - | | ''" | + | | ''" |
| - | | ''" | + | | ''" |
| - | | ''" | + | | ''" |
| - | | ''" | + | | ''" |
| <WRAP warning> | <WRAP warning> | ||
| Line 130: | Line 127: | ||
| </ | </ | ||
| - | The following rule bills US07 LTO storage in '' | + | The following rule bills US01 LTO storage in '' |
| < | < | ||
| - | AddStorageChargeItem(" | + | AddStorageChargeItem(" |
| 0, 0, 0, 0, 0, | 0, 0, 0, 0, 0, | ||
| - | " | + | " |
| " | " | ||
| 2, 0); | 2, 0); | ||
| Line 141: | Line 138: | ||
| ^ Position ^ Value ^ Explanation ^ | ^ Position ^ Value ^ Explanation ^ | ||
| - | | Package | '' | + | | Package | '' |
| - | | Customer | '' | + | | Customer | '' |
| | Media | '' | | Media | '' | ||
| | Repository | '' | | Repository | '' | ||
| Line 148: | Line 145: | ||
| | Model | '' | | Model | '' | ||
| | Output Customer | '' | | Output Customer | '' | ||
| - | | Item Code | '' | + | | Item Code | '' |
| | Cost | '' | | Cost | '' | ||
| | Continue | '' | | Continue | '' | ||
| Line 181: | Line 178: | ||
| < | < | ||
| - | AddMovementChargeItem(" | + | AddMovementChargeItem(" |
| 0, 0, 0, 0, 0, | 0, 0, 0, 0, 0, | ||
| - | " | + | " |
| "LTO tape delivery from OFFS to CUST", | "LTO tape delivery from OFFS to CUST", | ||
| 5, 0); | 5, 0); | ||
| Line 193: | Line 190: | ||
| < | < | ||
| - | AddMovementChargeItem(" | + | AddMovementChargeItem(" |
| 0, 0, 0, 0, 0, | 0, 0, 0, 0, 0, | ||
| - | " | + | " |
| "LTO tape pickup from CUST to OFFS", | "LTO tape pickup from CUST to OFFS", | ||
| 3, 0); | 3, 0); | ||
| Line 290: | Line 287: | ||
| < | < | ||
| - | AddAppendFile(" | + | AddAppendFile(" |
| </ | </ | ||
| Append files may be used for fixed fees, recurring charges, credits, or Customer-specific contract items. | Append files may be used for fixed fees, recurring charges, credits, or Customer-specific contract items. | ||
| - | <WRAP warning> | ||
| - | Append-file content is written directly into the processor output. Keep every append file under version control and validate the resulting XML before import. | ||
| - | </ | ||
| ===== Output Variables ===== | ===== Output Variables ===== | ||
| Line 308: | Line 302: | ||
| <file - customer.ttmap> | <file - customer.ttmap> | ||
| - | US07 New York Data Center | + | US01 New York Data Center |
| </ | </ | ||
| - | For this Customer, '' | + | For this Customer, '' |
| ===== Pricing ===== | ===== Pricing ===== | ||
| Line 327: | Line 321: | ||
| When cost is zero, the QuickBooks Interface omits the '' | When cost is zero, the QuickBooks Interface omits the '' | ||
| - | < | + | |
| + | < | ||
| Do not assume that a zero cost makes an item free. Use no matching rule for free activity, or verify the intended pricing behavior in a QuickBooks test company. | Do not assume that a zero cost makes an item free. Use no matching rule for free activity, or verify the intended pricing behavior in a QuickBooks test company. | ||
| </ | </ | ||
| Line 347: | Line 342: | ||
| < | < | ||
| # Specific free rule, but Continue is enabled | # Specific free rule, but Continue is enabled | ||
| - | AddMovementChargeItem(" | + | AddMovementChargeItem(" |
| 0, 0, 0, 0, 0, | 0, 0, 0, 0, 0, | ||
| " | " | ||
| Line 377: | Line 372: | ||
| Before approving a definition: | Before approving a definition: | ||
| - | * Run '' | ||
| * Confirm the package map assigns the Customer to the expected package. | * Confirm the package map assigns the Customer to the expected package. | ||
| * Confirm Customer, Media-ID, and Repository-ID values match TapeTrack exactly. | * Confirm Customer, Media-ID, and Repository-ID values match TapeTrack exactly. | ||
| Line 410: | Line 404: | ||
| * [[object: | * [[object: | ||
| + | |||
| + | {{tag> billing}} | ||
billing/billing_rules.1787105381.txt.gz · Last modified: 2026/08/19 02:09 by Scott Cunliffe
