Skip to content

Admin billing accounts: always set payment_terms_id = 1 when send update #1095

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

Merged
merged 1 commit into from
Jun 8, 2025

Conversation

suppermancool
Copy link
Collaborator

Admin billing accounts: always set payment_terms_id = 1 when send update

@@ -133,7 +134,7 @@ export const BillingAccountNewPage: FC<Props> = (props: Props) => {
name: billingAccount.name,
paymentTerms: billingAccount.paymentTerms
? parseInt(billingAccount.paymentTerms, 10) ?? 0
: undefined,
: EnvironmentConfig.ADMIN.DEFAULT_PAYMENT_TERMS,
Copy link

Choose a reason for hiding this comment

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

Consider checking if EnvironmentConfig.ADMIN.DEFAULT_PAYMENT_TERMS is defined and valid before using it as a fallback value. This ensures that the application does not encounter unexpected behavior if the configuration is missing or incorrect.

@jmgasper jmgasper merged commit 5fd7ac7 into feat/system-admin Jun 8, 2025
3 checks passed
@suppermancool suppermancool deleted the diazz-admin-f2f-30376988 branch June 13, 2025 06:19
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