amoyaux
b970bf865a
[FIX] stock: unable to return SN in chained moves
...
Use case to reproduce the bug:
- Set multi location in settings
- Set warehouse's deliery method as pick/pack/ship
- Deliver a product to customer
- Process a return from customer to output.
- Create a return from output to pack ->
Unable to reserver product.
It happens because return moves where not linked together but have
the picking that created the return as origin.
Thus action_assign does not detect the return moves and can't
guess the real quantity available.
This commit add a behavior that will create links between
return move. It can be guess from parent move(the picking's move from which
the return is created) and its move dest/orig that have already
created other return. It also correct action assign because
the group by could retourn same line with return moves.
It add a test that check returns and links between them.
2017-08-17 17:49:09 +02:00
..
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 00:32:12 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-07-12 17:48:43 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-07-30 07:14:49 +02:00
2017-08-06 04:40:09 +02:00
2017-07-30 04:40:00 +02:00
2017-07-05 11:48:45 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-07-26 19:55:44 +02:00
2017-08-06 07:14:52 +02:00
2017-07-26 19:55:44 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-07-12 17:48:43 +02:00
2017-08-06 07:14:52 +02:00
2017-07-30 04:40:00 +02:00
2017-07-30 04:40:00 +02:00
2017-08-06 04:40:09 +02:00
2017-08-09 14:20:54 +02:00
2017-07-17 11:52:51 +02:00
2017-07-26 19:55:44 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-10 17:01:05 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-10 17:01:05 +02:00
2017-07-25 12:26:50 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 04:40:09 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-07-25 12:26:50 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-05-22 13:30:50 +02:00
2017-06-26 10:13:25 +02:00
2017-06-06 19:38:29 +02:00
2017-05-22 13:30:50 +02:00
2017-05-15 12:26:16 +02:00
2017-05-22 13:30:50 +02:00
2017-06-06 19:38:29 +02:00
2017-06-15 18:44:16 +02:00
2017-08-06 07:14:52 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-08-01 02:40:08 +02:00
2017-07-05 11:48:45 +02:00
2017-06-19 17:37:38 +02:00
2017-08-06 00:32:12 +02:00
2017-07-25 11:46:16 +02:00
2017-06-26 10:13:25 +02:00
2017-07-01 02:39:14 +02:00
2017-05-18 17:05:22 +02:00
2017-06-27 14:19:31 +02:00
2017-06-26 10:13:25 +02:00
2017-06-01 00:15:27 +02:00
2017-07-13 17:01:04 +02:00
2017-05-16 14:56:02 +02:00
2017-06-26 10:13:25 +02:00
2017-07-01 02:39:14 +02:00
2017-07-12 17:48:43 +02:00
2017-07-13 17:01:04 +02:00
2017-06-26 10:13:25 +02:00
2017-05-18 17:05:22 +02:00
2017-07-12 17:48:43 +02:00
2017-05-18 17:05:22 +02:00
2017-07-25 11:46:16 +02:00
2017-07-30 00:32:09 +02:00
2017-05-16 18:23:15 +02:00
2017-07-12 17:48:43 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-07-12 17:48:43 +02:00
2017-07-05 11:48:45 +02:00
2017-08-06 00:32:12 +02:00
2017-06-14 13:45:10 +02:00
2017-07-12 17:48:43 +02:00
2017-06-26 10:13:25 +02:00
2017-07-12 17:48:43 +02:00
2017-06-26 10:13:25 +02:00
2017-07-25 11:46:16 +02:00
2017-06-26 10:13:25 +02:00
2017-07-12 17:48:43 +02:00
2017-07-12 17:48:43 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-07-12 17:48:43 +02:00
2017-07-12 17:48:43 +02:00
2017-07-12 17:48:43 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-07-01 02:39:14 +02:00
2017-06-26 10:13:25 +02:00
2017-07-12 17:48:43 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-06-26 10:13:25 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-10 17:01:05 +02:00
2017-07-25 12:26:50 +02:00
2017-07-25 12:26:50 +02:00
2017-08-06 07:14:52 +02:00
2017-08-17 16:18:18 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-07-30 04:40:00 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 04:40:09 +02:00
2017-08-14 08:30:59 +02:00
2017-08-06 04:40:09 +02:00
2017-08-14 08:30:59 +02:00
2017-08-06 04:40:09 +02:00
2017-08-14 08:30:59 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-14 08:30:59 +02:00
2017-08-06 04:40:09 +02:00
2017-07-25 12:26:50 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-10 17:01:05 +02:00
2017-08-01 02:40:08 +02:00
2017-08-06 04:40:09 +02:00
2017-07-25 11:46:16 +02:00
2017-07-25 11:46:16 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-07-26 19:55:44 +02:00
2017-08-17 17:49:03 +02:00
2017-07-05 11:48:45 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-09 14:20:54 +02:00
2017-06-09 17:11:47 +02:00
2017-06-02 15:53:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-01 02:40:08 +02:00
2017-06-08 11:22:02 +02:00
2017-07-17 13:33:29 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-10 17:01:05 +02:00
2017-08-17 17:49:09 +02:00
2017-08-06 07:14:52 +02:00
2017-07-24 15:45:48 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-07-05 11:48:45 +02:00
2017-07-05 11:48:45 +02:00
2017-08-06 04:40:09 +02:00
2017-08-10 17:01:05 +02:00
2017-07-30 04:40:00 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-10 17:01:05 +02:00
2017-07-11 11:28:18 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-09 14:20:54 +02:00
2017-07-12 17:48:43 +02:00
2017-08-06 04:40:09 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-10 17:01:05 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-06-01 02:40:07 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-07-30 04:40:00 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-14 08:30:59 +02:00
2017-08-06 07:14:52 +02:00
2017-07-26 19:55:44 +02:00
2017-08-09 14:43:39 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-07-25 11:46:16 +02:00
2017-07-30 04:40:00 +02:00
2017-08-06 07:14:52 +02:00
2017-06-30 11:07:00 +02:00
2017-08-06 07:14:52 +02:00
2017-08-17 13:52:31 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-07-30 04:40:00 +02:00
2017-06-02 15:53:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 04:40:09 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00
2017-08-06 07:14:52 +02:00