[Fix] stock: Fix the problem of sale_id and purchase_id