Skip to content

Conversation

@suppermancool
Copy link
Contributor

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

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.

3 participants