Skip to content

Commit

Permalink
Rename cost breakdown to breakdownByGlobalCluster
Browse files Browse the repository at this point in the history
This is done to distinguish between breakdowns
by global cluster and by service modality
  • Loading branch information
Pl217 committed Dec 6, 2024
1 parent 77dd97b commit b9391a0
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/db/models/json/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,11 @@ const COST_ATTACHMENT_VALUE = t.intersection([
t.exact(
t.partial({
/**
* When necessary, a cost breakdown can be provided with respect to a
* particular collection of objects.
*
* For example, when the object of this attachment is a governing entity,
* a breakdown needs to be provided for each of the global clusters,
* (even if the governing entity has 0 global clusters)
* and the total sum of the breakdown must match the overall cost when
* non-empty.
* When necessary, a cost breakdown can be provided for each of the global
* clusters (even if the governing entity has 0 global clusters), and the
* total sum of the breakdown must match the overall cost when non-empty.
*/
breakdown: t.array(
breakdownByGlobalCluster: t.array(
t.exact(
t.type({
objectId: t.number,
Expand Down

0 comments on commit b9391a0

Please sign in to comment.