[MERGE] purchase: speed up cancelling procurements, add test, hide lot in quick inventory update

Manual re-merge of following commits, to fix mainline history:
  3ea978bc115f1121f841be6ec5d50b224579b497
  f76d714fb9940c258955d207d1601732fd23d7d3
  c12f4efc539e2be6e1b1c5338a4240419e500177