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

Pre-populate 0 amount in the form #4

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

pierre
Copy link
Member

@pierre pierre commented Aug 3, 2023

Originally created by @sweep-ai here: pierre#3

/cc @travisirby: GPT-4 got the code right, writing the test was too hard though 😅


Description

This PR addresses the issue #3 by modifying the _invoices_table.html.erb view. The changes include setting the default value of the payment amount input field to 0 and disabling it if the invoice balance is 0.

Summary of Changes

  • Modified app/views/deposit/collection/_invoices_table.html.erb to set the default value of the payment amount input field to 0 and disable it if the invoice balance is 0.

Fixes #3.

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.

Pre-populate 0 in the form
1 participant