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

improve the way to call the classes #50

Merged
merged 2 commits into from
Mar 20, 2021

Conversation

wolfrednicolas
Copy link
Contributor

No description provided.

'title' => $sentence,
'percent' => $this->faker->numberBetween(1, 50),
'tax_code' => $this->faker->randomElement(TaxCode::getValues()),
'location_id' => Location::factory()->create(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this field has a unique requirement as there can only be one Tax (#44) entry per Location (TIPOFF/locations#42), the easiest way to handle it is to create a new Location.

Copy link
Member

@drewroberts drewroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 📠

@drewroberts drewroberts merged commit dba37e2 into main Mar 20, 2021
@drewroberts drewroberts deleted the wolfrednicolas/feature/improve-methods branch March 20, 2021 18:38
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