Skip to content

feat: Add FranchiseContract class for monthly franchise settlement calculation#119

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-franchise-contract-functionality
Draft

feat: Add FranchiseContract class for monthly franchise settlement calculation#119
Copilot wants to merge 2 commits intomainfrom
copilot/add-franchise-contract-functionality

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

Introduces FranchiseContract, the billing model for LUXURY_CARE-tier franchise points of sale, covering fixed license fee, one-time entry fee, and 5% variable commission on mirror sales.

Changes

  • api/franchise_contract.py — new module with FranchiseContract:

    • license_fee = 9900.0 EUR/month per POS
    • entry_fee = 100000.0 EUR one-time implementation fee
    • variable_commission = 0.05 (5% on mirror sales)
    • calculate_monthly_settlement(total_mirror_sales) returns a settlement dict including patent royalty reference PCT/EP2025/067317
  • tests/test_franchise_contract.py — 14 unit tests covering init defaults, commission math, zero-sales baseline, total calculation, and large-volume scenario

Usage

from franchise_contract import FranchiseContract

fc = FranchiseContract("SHOP_PARIS")
settlement = fc.calculate_monthly_settlement(total_mirror_sales=20_000.0)
# {
#   "fixed_fee": 9900.0,
#   "variable_commission": 1000.0,
#   "total_to_invoice": 10900.0,
#   "currency": "EUR",
#   "patent_royalty": "Included (PCT/EP2025/067317)"
# }

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tryonyou-pilot Error Error Apr 7, 2026 1:54pm

Request Review

Copilot AI changed the title [WIP] Add franchise contract calculation method feat: Add FranchiseContract class for monthly franchise settlement calculation Apr 7, 2026
Copilot AI requested a review from LVT-ENG April 7, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants