Receiving in the current month = remaining at the end of the period+purchasing in the current month-remaining at the beginning.
This mode is generally used to confirm the cost of the current month.
Mainly consider the principle of consistency. If there are not too many materials left at the end of the month and the quantity is small, you can take the materials purchased in that month as your own cost.
The main consideration is the matching of income and cost.