Make transfers in two phases.

A creation phase, when products are leaving a branch, and a receival
phase, when the products are received in the destination branch.

Change-Id: I3577112710371e48c778ce9b9ab6b9c4145b79e9
Fix patch-04-24.sql.

Change-Id: Ic7e9e3c18585db39c6579d8f8927e37a29d2e6cd