Description
Sum all counts and those with countVerified, artworkMatched, and lotTraceable all true using exact integers; return decimal totals and their share.
Packaging counts distinguish first-pass acceptance, rework, scrap, verified support, and remaining inventory. A reconciled total does not independently establish product or labeling quality.
Sum all counts and those with countVerified, artworkMatched, and lotTraceable all true using exact integers; return decimal totals and their share.
When to use this tool
Use Packaging Count Support Share when you need a supplied packaging count or support term.
How to use the tool and how it works
- Enter componentCounts, countVerified, artworkMatched, lotTraceable. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read totalDecimal, supportedDecimal, share, defined. Inspect defined before interpreting the associated values.
Require aligned nonnegative component counts and three flags. Sum all counts and those with countVerified, artworkMatched, and lotTraceable all true using exact integers; return decimal totals and their share.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| componentCounts | Component Counts | Required. Array of safe integer; minimum 0; maximum items 256. |
| countVerified | Count Verified | Required. Array of boolean; maximum items 256. |
| artworkMatched | Artwork Matched | Required. Array of boolean; maximum items 256. |
| lotTraceable | Lot Traceable | Required. Array of boolean; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| totalDecimal | Total Decimal | Required. Text; maximum UTF-16 length 8192. |
| supportedDecimal | Supported Decimal | Required. Text; maximum UTF-16 length 8192. |
| share | Dimensionless fraction under the stated denominator policy. | Required. Finite number. |
| defined | Whether the accompanying fraction has an available nonzero denominator. | Required. Boolean. |
{
"input": {
"componentCounts": [
2,
3,
5
],
"countVerified": [
true,
true,
true
],
"artworkMatched": [
true,
true,
false
],
"lotTraceable": [
true,
false,
true
]
},
"output": {
"totalDecimal": "10",
"supportedDecimal": "2",
"share": 0.2,
"defined": true
}
} Limitations and assumptions
- A zero total yields share zero and defined false; flags are supplied and do not establish packaging compliance or quality approval.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Reconcile physical and documentary records under the validated packaging and quality procedure.
References
Similar or alternative tools
- Pharma Component Lot Use Allocation Term
Select requestedBatch, deduplicate lots in first-seen order, sum their masses, and return the combined batchMass.
- Blister Count Scrap Base Flag
Use produced or produced minus scrap as denominator according to useNetBase.