|
I consulted my wife who was an accountant. She said that there are several algorithms such as weighted average (calculated once a month), moving weighted average (once each calculation), first-in, first-out, and last-in, first-out. The implementation depends on the actual situation. For example, if the purchase is frequent, the weighted average or moving weighted average algorithm should be used, otherwise the first-in-first-out or last-in-first-out algorithm is better.
I don't understand this, I hope the above can help you. |
|