https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38195
--- Comment #2 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 187162 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187162&action=edit Bug 38195: Convert admin/edi_accounts.pl to use Koha::EDI::Account(s) This patch modernizes the EDI accounts administration controller to use the new Koha::EDI::Account(s) object classes instead of raw DBIx::Class result access. Changes to admin/edi_accounts.pl: - Replaced Aqbookseller searches with Koha::Acquisition::Booksellers - Replaced FileTransport searches with Koha::File::Transports - Updated account save operations to use Koha::EDI::Account->new/set/store - Updated account delete to use Koha::EDI::Accounts->find->delete - Simplified display logic using to_api with embed parameter for automatic relationship inflation and JSON status decoding - Leverages Koha::File::Transport->to_api which handles JSON decoding of the status field automatically Benefits: - Much cleaner, more maintainable code following modern Koha patterns - Automatic relationship inflation via to_api embed parameter - Status decoding handled automatically by Koha::File::Transport->to_api - Single line conversion using map and to_api - Consistent API representation across the codebase - No manual JSON decoding or data transformation in controller -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
