mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-18 17:08:42 +00:00
Companies now get their Stores warehouse as Default Warehouse, so item warehouse resolution succeeds where it previously came back empty. test_internal_pr_reference cleared inter_company_reference and asserted a ValidationError, but no validation covers that field - the mapper already sets it. It was incidentally catching 'Row #1: Warehouse is mandatory for stock Item' from the blank target warehouse, so the assertion never tested what it claimed. Dropped it; the delivery_note_item assertion below still covers the reference linkage. test_inter_company_transaction_without_default_warehouse now establishes its own premise by clearing the company's default warehouse instead of relying on it being unset. Its failure previously skipped the teardown that restores frappe.local.enable_perpetual_inventory, which db rollback cannot undo, which in turn broke two later inter-company tests.