[IMP] stock_account: accounting date on new quants #159874
Draft
+50
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before this commit:
with accounting date and we create a new of quant with same product and
location accounting will not be set for newly created quant.
quants of tracked product and they have different accounting dates then these
different dates will used as accounting date (in case of automatic valuation).
After this commit:
quant if similar(same product(tracked) and location) quants exist and these
quants have accounting date, date will be selected.
For Example: let's say today is 10th and accounting date for different quants
4,6,7,10, 11, empty for 6 similar quants. then 7 will be selected as
accounting date.
similar(same product and location) quants of tracked product accounting date
will be set which will be used as accounting date in case of automatic
valuation. So accounting date of all quants will be same.
task 3817532