To Daniel .... Check before sync my modification

I tried to confim an order, however, no matter how many orders I have
submitted, the confirm number is always 999998.... so I changed some of
the codes, and it seems OK now.