Skip to content

Comments

Pre-populate 0 amount in the form#4

Draft
pierre wants to merge 7 commits intokillbill:mainfrom
pierre:sweep/pre-populate-0-amount
Draft

Pre-populate 0 amount in the form#4
pierre wants to merge 7 commits intokillbill:mainfrom
pierre:sweep/pre-populate-0-amount

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