-
-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] stock_account_move_reset_to_draft: pre-commit auto fixes
- Loading branch information
Showing
11 changed files
with
117 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Typically, when a purchase invoice is created at a price different from | ||
the price at which the SVLs of the incoming picking were initially | ||
created and confirmed, SVLs are generated to account for the price | ||
difference. Once this happens, the invoice cannot normally be reverted | ||
to draft due to stock_account restrictions. | ||
|
||
Imagine international business settings where exchange rates are updated | ||
daily; this limitation can be problematic. For example, if goods are | ||
received on April 17th and the vendor bill is processed on April 18th | ||
with a different exchange rate, an SVL record is generated, locking the | ||
vendor bill. If a user then realizes a mistake, such as processing the | ||
bill for the incorrect purchase order, they are unable to cancel it. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- [Tecnativa](https://www.tecnativa.com): | ||
- Víctor Martínez | ||
- Pedro M. Baeza |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This module allows a vendor bill to be reverted to draft status even | ||
when an SVL (Stock Valuation Layer) record is created due to a price | ||
difference between the receipt and the vendor bill, when inventory from | ||
the receipt has yet to be consumed. When a vendor bill is reset to | ||
draft, as applicable, a new SVL record is generated to offset the | ||
valuation difference that was generated upon the bill's confirmation. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
1. Create a product category with Costing Method: Average Cost (AVCO) | ||
or First In First Out (FIFO). | ||
2. Create a product linked to the category created before. | ||
3. Create a purchase order and adds a product line with quantity 1 and | ||
price 10. | ||
4. Confirms the purchase order and validates the incoming picking. | ||
5. Creates an invoice from the purchase order. | ||
6. Changes the invoice line price to 12 and confirm the invoice. | ||
7. It is possible to reset the invoice to draft (a new SVL record to | ||
offset the existing SVL difference will be created). | ||
|
||
When attempting to reset an invoice to draft for a product that has been | ||
partially or fully consumed, the system will display the following error | ||
message: "The inventory has already been (partially) consumed." In that | ||
case, consider using landed costs to adjust the valuation of the product | ||
as necessary. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.