Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Budget Tool: Create custom Quantity field #1460

Open
dd32 opened this issue Feb 14, 2025 · 0 comments
Open

Budget Tool: Create custom Quantity field #1460

dd32 opened this issue Feb 14, 2025 · 0 comments

Comments

@dd32
Copy link
Member

dd32 commented Feb 14, 2025

Components / Tools

Payments: Budget Tooling

Description

When creating items for the budget tooling, there's various "Quantity" functions allowed, but these are hard-coded to only a specific few types.

switch ( $link ) {
case 'per-speaker':
return $value * $count_speakers;
case 'per-volunteer':
return $value * $count_volunteers;
case 'per-organizer':
return $value * $count_organizers;
case 'per-sponsor':
return $value * $count_sponsors;
case 'per-speaker-volunteer':
return $value * $count_speakers + $value * $count_volunteers;
case 'per-speaker-volunteer-organizer':
return $value * $count_speakers + $value * $count_volunteers + $value * $count_organizers;
case 'per-attendee':
return $value * $count_attendees;
case 'per-attendee-sponsor':
return $value * $count_attendees + $value * $count_sponsors;
case 'per-day':
return $value * $count_days;
case 'per-track':
return $value * $count_tracks;
case 'ticket-price-x-attendees':
return $ticket_price * $count_attendees;
}

Often when creating line-items, a custom quantity is needed.

A good example of this is in the case of Sponsors.
For example, the below image is assuming that there's 10 sponsors, with 2 tickets per sponsor = 20 sponsor tickets listed in the header.

Row 1: The calculated total is per sponsor ticket, rather than per sponsor.
Row 2: No automatic calculation, having to explain the quantity and totals in the description.
Row 3: What I'd like to see, A way to specify a custom Quantity. The UI is not ideal obviously, probably better as a sub-field.

Screenshots / Screencasts

Current:
Image

Proposed:
Image

Stakeholders

Event Organisers / Budget wranglers.

How does this new feature contribute to the goals

Clearer view of the sponsorships being received, less error in the data entry.

Acceptance Criteria

Agreeance of need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant