https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38195
Martin Renvoize (ashimema) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187163|0 |1 is obsolete| | --- Comment #7 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 187180 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187180&action=edit Bug 38195: Modernise Koha::Edifact::Transport to use Koha::Objects This patch updates Koha::Edifact::Transport to use the new Koha::EDI::Accounts and Koha::Edifact::Files object classes instead of raw DBIx::Class objects. Changes: - Replaced $schema->resultset('VendorEdiAccount')->find() with Koha::EDI::Accounts->find() - Replaced resultset('EdifactMessage')->find( { filename => $f, } ); with Koha::Edifact::Files->search( { filename => $f }); - Simplified file_transport retrieval by using the relationship method from Koha::EDI::Account->file_transport() - Removed conditional logic as the relationship method handles undef cases automatically Benefits: - Cleaner code using Koha object patterns - Automatic relationship handling via accessor methods - More maintainable and consistent with rest of codebase -- 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/
