| Summary: | Vendor in EDIFACT messages is sometimes incorrect before importing invoice | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Sara Brown <sbrown> |
| Component: | Acquisitions | Assignee: | Bugs List <koha-bugs> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | trivial | ||
| Priority: | P5 - low | CC: | andrew, tvandoren |
| Version: | 24.11 | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
|
Description
Sara Brown
2025-07-18 16:29:12 UTC
This occurs when several EDI accounts share an FTP directory for their EDI files (usually because a library has multiple accounts with the same vendor). As the EDI cron picks the invoice up from the FTP, it doesn't look at the contents of that file; it's initially brought into Koha associated with the vendor on the first/oldest EDI account associated with the FTP directory from which the file was taken. Later, when the EDI file is processed to create a Koha invoice, the EDI plugin can use the contents of the file to determine the correct vendor. In theory the EDI cron could be extended to do some preliminary processing of the file to determine the vendor. It might be simpler to ask one's vendors to adjust their FTP structure to not use the same directory for multiple accounts. One of our libraries, Santa Maria, has a lot of invoices where Koha chose the incorrect account for invoices that had the correct account in the vendor code. They and our other libraries will be very relieved when this bug is fixed so each invoice will be imported and use the vendor based on the vendor in the code, and not the first EDI vendor account. We are hoping someone can address this bug before the next version. |