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

Rename ganaciasNetas.sql to R2_ganaciasNetas.sql and add validation f… #45

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

Jrgil20
Copy link
Owner

@Jrgil20 Jrgil20 commented Jan 11, 2025

This pull request includes changes to the R2_ganaciasNetas.sql file, which was renamed from ganaciasNetas.sql. The changes introduce new logic to handle date validations within the script.

Date validation logic:

  • Added a conditional statement to check if fecha_fin is greater than the current date and set it to the current date if true. This is followed by raising an exception to indicate that net earnings are calculated up to today.
  • Added a conditional statement to raise a notice if fecha_inicio is greater than the current date, indicating that calculation cannot proceed yet.…or fecha_fin and fecha_inicio

@Jrgil20 Jrgil20 merged commit f12f4f4 into dev Jan 11, 2025
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.

1 participant