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

#1912 Landed cost allocation #1913

Conversation

SusanneCalderon
Copy link
Collaborator

Issue 1912.
Status for working with landed Costs and landedCostAllocation:
Window Purchase Invoice, Line InvoiceLine
Step 1: Generate a Landed Cost entry with the button Generate Landed Cost
Result: depending on the parameter create by product one or several LandedCost entries are generated

Now you can distribute the costs and generated the corresponding landed cost allocation entries with the button distribute Costs. This is preliminary because when the invoice is completed all landed cost allocations will be deleted and generated again.
The process generates also the Costdetail entries for the calculation of the new costs of the corresponding products.

Step 2: Complete the Invoice
All landed cost allocations are deleted and are generated again with the method MInvoiceLine.allocateLandedCosts(). The Costdetails will not be generated and must be generated by using the button Distribute Costs.

Problem 1:

In the method MInvoiceLine.allocateLandedCosts() the sequence of the delete statements must be changed. First the costdetails must be deleted, then the landedcost allocations. Otherwise referential integrity is not accomplished.

@marcalwestf marcalwestf changed the title Bugfix/issue1912 landed cost allocation #1912 Landed cost allocation Sep 29, 2018
@e-Evolution e-Evolution merged commit fd02bbe into adempiere:develop Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants