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

fix(customer): Fix create/update via API when finalize_zero_amount_invoice is nil #2707

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Context

Creation of customer via the REST API is failing if a nil value is provided for the finalize_zero_amount_invoice field (when called via the Ruby client for example)

The raised error is a ActiveRecord::NotNullViolation

Description

This PR defaults to the default value (inherit) when it's the case

@vincent-pochet vincent-pochet force-pushed the fix-nill-finalize_zero_amount_invoice branch from 854f1a0 to c21dd1b Compare October 18, 2024 07:13
@vincent-pochet vincent-pochet merged commit 59d13ee into main Oct 18, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the fix-nill-finalize_zero_amount_invoice branch October 18, 2024 07:26
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.

3 participants