CSR-LC / csr-be

Back-end application for CSR project
0 stars 1 forks source link

There is not option to block the nearest date. #85

Open elenalshv opened 3 months ago

elenalshv commented 3 months ago

Steps to Reproduce the Bug:

  1. Log in.
  2. Navigate to the "Equipment" section.
  3. Click on the "Block" button. A modal window titled "Equipment Blocking" appears.
  4. Select the block dates. For the start date, choose the current date.

The result obtained:

  1. There is no option to block the current date - Error: "Start date must be after the current date," "Bad Request," status: 400.

Expected behaviour:

  1. There is option to block the current date.

P.S.: If you block a different period (not the current date), then go back and edit the block period, it is possible to block the nearest (current) date.