[IMP] Write done/cancel a little bit different and default_restrict_lot on scrap