Skip to content

Commit 24b8c41

Browse files
authored
Merge pull request #179 from vshn/update-billing-adr
Update BillingService CR definition
2 parents 67ba87d + d0cad9d commit 24b8c41

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/modules/ROOT/pages/adr/0033-event-based-billing-oddo.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,21 +201,33 @@ status:
201201
value: "3"
202202
timestamp: "2025-06-20T13:00:00Z"
203203
state: "sent|pending|failed"
204+
itemDescription: "Human readable description"
205+
itemGroupDescription: "My Item Group"
206+
unitID: "yunit"
204207
- type: "scaled"
205208
productId: "Y"
206209
value: "3"
207210
timestamp: "2025-05-20T13:00:00Z"
208211
state: "sent|pending|failed"
212+
itemDescription: "Human readable description"
213+
itemGroupDescription: "My Item Group"
214+
unitID: "yunit"
209215
- type: "scaled"
210216
productId: "Y"
211217
value: "2"
212218
timestamp: "2025-04-20T13:00:00Z"
213219
state: "sent|pending|failed"
220+
itemDescription: "Human readable description"
221+
itemGroupDescription: "My Item Group"
222+
unitID: "yunit"
214223
- type: "created"
215224
productId: "X"
216225
value: "1"
217226
timestamp: "2025-03-20T13:00:00Z"
218227
state: "sent|pending|failed"
228+
itemDescription: "Human readable description"
229+
itemGroupDescription: "My Item Group"
230+
unitID: "xunit"
219231
conditions:
220232
- lastTransitionTime: "2024-05-25T15:35:02Z"
221233
reason: ReconcileSuccess
@@ -238,6 +250,11 @@ status:
238250
<9> `spec.value` for a generic naming, as not all product quantities can be described as a size.
239251
<10> Events track the state of each of the products associated.
240252

253+
[NOTE]
254+
====
255+
Because product items in `spec` can be deleted, we store the full item details in `status.events` to retain history.
256+
====
257+
241258
[NOTE]
242259
====
243260
For a complete reference of all fields in this CR, see the https://docs.central.vshn.ch/event-billing-ingestion.html[Odoo documentation].

0 commit comments

Comments
 (0)