ypratham / invoice-generator

Open source invoice generator, preview: https://invoice-generator-preview.vercel.app/
https://invoice-generator-two-gamma.vercel.app
MIT License
8 stars 6 forks source link

Inverted date input fields #7

Closed Isax03 closed 1 month ago

Isax03 commented 1 month ago

Describe the bug
The invoice generator displays the "Invoice Date" and "Due Date" fields in reverse order. The "Invoice Date" (date of creation) is shown as being after the "Due Date," which is incorrect. Additionally, the "Invoice Date" field allows selecting future dates, while the "Due Date" field restricts the date to the current day (in this sense, the inputs are inverted).

To Reproduce
Steps to reproduce the behavior:

  1. Go to the invoice/receipt generation page.
  2. Input the "Invoice Date" and "Due Date."
  3. Generate the invoice.
  4. Observe that the "Due Date" appears as a date earlier than the "Invoice Date"

Expected behavior
The "Invoice Date" should be the creation date of the invoice, and the "Due Date" should reflect a date after the issue date. The system should ensure that the "Due Date" comes after the "Invoice Date."

Screenshots
Attached is a screenshot of the error:
{1301295B-02A2-4E2E-A851-99002C42B7A0}

Desktop:

Additional context
The "Invoice Date" field allows future dates, while the "Due Date" is restricted to the current day. These input behaviors are inconsistent and should be adjusted.

Isax03 commented 1 month ago

If you want you can assign it to me. I will work on this after the 1st October 😉

ypratham commented 1 month ago

Sure @Isax03, I'll assign this to you add appropriate labels.

Isax03 commented 1 month ago

@ypratham If you want you can merge my pull request