[Bug 8179] Receiving multiple order lines at once
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8179 --- Comment #62 from Agustín Moyano <agustinmoyano@theke.io> --- (In reply to Andrew Fuerste-Henry from comment #55)
To recreate the issue where receiving hangs on processing when missing a replacement price: 1: have a fresh Koha Testing Docker 2: apply patch, updatedatabase, restart_all 3: have a basket set to create item records on ordering 4: populate basket from a marc file, only setting price and fund for the items 5: close basket 6: click to Receive, create invoice 7: on parcel.pl, "Processing" alert never resolves The console shows: parcel.pl?invoiceid=1:810 Uncaught TypeError: Cannot read property 'format_price' of null at render (parcel.pl?invoiceid=1:810) at datatables.min_20.1200012.js:57 at Object.b.fnGetData (datatables.min_20.1200012.js:51) at B (datatables.min_20.1200012.js:56) at Ha (datatables.min_20.1200012.js:64) at P (datatables.min_20.1200012.js:68) at vb (datatables.min_20.1200012.js:79) at datatables.min_20.1200012.js:76 at i (datatables.min_20.1200012.js:74) at Object.success (datatables.min_20.1200012.js:75)
And that error points toward: "data": "replacement_price", "render": function(data, type, row, meta) { return (row.replacement_price).format_price(); }, },
In the database, I see that aqorders.replacementprice is null for all of the orders I made. If I do an update to set aqorders.replacementprice=0, then the receiving page populates as expected.
Well, that was thorough! Thanks so much. This issue is not related to this bug, but to 20212 where the code was introduced. I created bug 27719 to fix this issue. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org