KRAKENDEVCL · FICTIONAL DEMONSTRATION
Author: José Antonio Gallegos Carvallo
This sample was created from scratch for the portfolio. It contains no enterprise data, code or documents.
Prevent a reservation from being confirmed if its date is missing or earlier than the minimum allowed date. Preserve the existing availability check before saving.
101: Event 'Confirmar' 102: ValidarDisponibilidad() 103: GuardarReserva() 104: Endevent
The existing operation checks availability and then saves the reservation. Identifiers are retained from the fictional Spanish example.
Event 'Confirmar' // reference: 101
If &FechaReserva.IsEmpty() Or &FechaReserva < &FechaMinima // ADD
Msg('Select a valid date.') // ADD
Return // ADD
Endif // ADD
ValidarDisponibilidad() // reference: 102
GuardarReserva() // reference: 103
Endevent // reference: 104This is illustrative pseudocode, not compiled GeneXus code. A reference to line 108 has no supporting evidence; line 103 matches the fictional source.
Compile the implementation, test each scenario, verify that rejected reservations are not saved, and confirm that existing availability rules remain intact.
This is a fictional design proposal. It does not establish approval, implementation or production behavior.