Bug 35080 - Additional fields submitted in paycollect.pl?writeoff_individual are not saved
Summary: Additional fields submitted in paycollect.pl?writeoff_individual are not saved
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 31254
Blocks:
  Show dependency treegraph
 
Reported: 2023-10-17 15:05 UTC by Pedro Amorim
Modified: 2023-10-18 10:40 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Amorim 2023-10-17 15:05:57 UTC
To reproduce, k-t-d:
1) Add a simple additional field to accountlines:credit. Visit:
/cgi-bin/koha/admin/additional-fields.pl?tablename=accountlines%3Acredit
2) Create a manual invoice for admin borrower. Visit:
/cgi-bin/koha/members/maninvoice.pl?borrowernumber=51
3) Add '5' in amount and click 'save'
4) On the transactions table, select the invoice just created and hit 'pay'.
5) On the 'Pay an individual charge' screen, select 'Writeoff'. Notice the additional field created in 1) is there, input some data in it like 'test'.
6) Click "Writeoff this charge"
7) From the 'Transactions' table, select the 'Writeoff' transaction we just did and click "Details". Notice the field is not there (it's not in the database either).

Repeat the same test plan but instead of writeoff, select 'pay'. You'll notice the additional field data is displayed in the table as expected.
Comment 1 Pedro Amorim 2023-10-17 15:17:30 UTC
writeoff form is submitted to pay.pl, the others are submitted to paycollect.pl
pay.pl does not consider additional fields at all.

Do we want additional fields here at all or this being shown here is unintended?