mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-07-03 12:10:05 +02:00
feat: add itemized claims and payments
This commit is contained in:
@@ -229,6 +229,18 @@ class Housekeeper:
|
||||
"script_hash": rule.script_hash,
|
||||
},
|
||||
}
|
||||
if not claim.get("items"):
|
||||
claim["items"] = [
|
||||
{
|
||||
"item_id": str(uuid4()),
|
||||
"type": "base",
|
||||
"description": str(claim.get("title", claim_key)),
|
||||
"quantity": "1.00",
|
||||
"unit_price": str(claim.get("amount", "0.00")),
|
||||
"amount": str(claim.get("amount", "0.00")),
|
||||
"created_at": now,
|
||||
}
|
||||
]
|
||||
data.claims.append(claim)
|
||||
self.repository.save_contributions(action.member_id, data)
|
||||
self.repository.append_event(
|
||||
|
||||
Reference in New Issue
Block a user