Hi Marcelo,
you are missing some myStockTransfer.Lines.BinAllocations.Add() - only first BinAllocation doesn't need an add, all the others do need ( I count 3 missing ).
Apart form that it looks good ( all SetCurrentLine are redundant ).
regards,
Maik