Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.0][ADD] stock account operating unit #21

Conversation

AaronHForgeFlow
Copy link
Contributor

Stock account with operating units

In the context of perpetual inventory (real time inventory valuation) this module creates journal entries when stock moves are posted between internal locations within the same company, but different OU’s.

Configuration

The journal entries will be created only if you have defined the product to be managed under real-time inventory valuation.

Usage

Create an Internal Transfer between two Locations that belong to different Operating Units. A journal entry will then be created, where the operating unit of the source location will be credited for the inventory valuation, at the product's cost, and the operating unit of the destination location will be debited.

@AaronHForgeFlow
Copy link
Contributor Author

cc @jbeficent @darshan-serpent

@AaronHForgeFlow AaronHForgeFlow force-pushed the 9.0-add-stock_account_operating_unit branch from ec4c07d to f82f9e9 Compare September 30, 2016 11:46
@AaronHForgeFlow AaronHForgeFlow mentioned this pull request Nov 2, 2016
11 tasks
err = True
if move.location_id.usage != 'internal' \
and move.location_dest_id.usage == 'internal':
err = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 2 checks above are identical, should one of them be move.location_id.usage == 'internal' and move.location_dest_id.usage != 'internal'?

@AaronHForgeFlow AaronHForgeFlow force-pushed the 9.0-add-stock_account_operating_unit branch 2 times, most recently from fb0339e to c3e311c Compare February 13, 2017 10:54
@@ -26,7 +26,7 @@ be self-balanced, and then indicate a self-balancing clearing account.
* Go to *Settings / Companies / Configuration* and:
** Set the "Operating Units are self-balanced" checkbox
** Set the "Inter-OU Clearing" account in "Inter-operating unit clearing
account" field.
account" field.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think the same, but travis does not agree

@AaronHForgeFlow AaronHForgeFlow force-pushed the 9.0-add-stock_account_operating_unit branch from 3643457 to 2ef5868 Compare February 13, 2017 17:19
@AaronHForgeFlow
Copy link
Contributor Author

Can you please take a look @lreficent @darshan-serpent ?

[ADD] : Added Test Cases.

[IMP] : Improved code for test cases

[IMP] Migrated Valuation method of quants.

[IMP] Migrated Valuation method _account_entry_move of quants.

[UPT] migrate code and minor fixes

[FIX] account move lines were not being correctly linked to the account move
@AaronHForgeFlow AaronHForgeFlow force-pushed the 9.0-add-stock_account_operating_unit branch from 1e3a0d3 to d67bfeb Compare May 30, 2017 12:39
@AaronHForgeFlow
Copy link
Contributor Author

Sorry, not working anymore on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants