mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
get_items_to_be_repost selected posting_date/posting_time/creation/posting_datetime alongside `group_by item_code, warehouse` with no aggregation -> arbitrary pick on MariaDB, GroupingError on Postgres. Wrap the four columns in `Min()` (earliest row per item+warehouse, the correct repost-start point; a single voucher's SLEs share posting_date/time per group -> MariaDB-identical). This is reached by every stock transaction submit/cancel via repost_future_sle_and_gle, so it unblocks the whole transaction-heavy stock suite on Postgres (e.g. test_purchase_receipt 105/105). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Inventory management module.