Bug 35080

Summary: Additional fields submitted in paycollect.pl?writeoff_individual are not saved
Product: Koha Reporter: Pedro Amorim <pedro.amorim>
Component: Fines and feesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: julian.maurice, lucas, martin.renvoize, michaela.sieber
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35044
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 31254    
Bug Blocks:    

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?