Thu, 18 Dec 2014 18:36:08 +0100Related to Issue 28389: Fixed Posting of LC Cost with Invoice Line
Unai Martirena <unai.martirena@openbravo.com> [Thu, 18 Dec 2014 18:36:08 +0100] rev 25139
Related to Issue 28389: Fixed Posting of LC Cost with Invoice Line

While processing a Landed Cost with an Invoice in a Landed Cost Cost it, if the invoice has an exchange rate different from the system, a new Cost Adjustment is created with that difference between the rates. But this difference it was not taking into account while setting the matched amount in Landed Cost Cost, so the Post process it was not working well.

Tue, 16 Dec 2014 18:34:37 +0100fixed issue 28389: the difference amount is calculated adding the amount of all lines
Miguel A. Alsasua <miguel.alsasua@openbravo.com> [Tue, 16 Dec 2014 18:34:37 +0100] rev 25138
fixed issue 28389: the difference amount is calculated adding the amount of all lines

the difference amount between the cost amount and matched amount was wrong calculated when there was more than one line in landed cost cost tab

Thu, 04 Dec 2014 12:20:59 +0100Fixes issue 28192: Net Unit Price now is properly calculated.
Unai Martirena <unai.martirena@openbravo.com> [Thu, 04 Dec 2014 12:20:59 +0100] rev 25137
Fixes issue 28192: Net Unit Price now is properly calculated.

In order to calculate the Net Unit Price, the adjustments of the transaction are used, but it was not being used the signMultiplier of the transaction, and needs to be used.

Wed, 10 Dec 2014 14:09:54 +0100Fixes Issue 28157: Landed Cost takes into account exchange rate at invoice level
Unai Martirena <unai.martirena@openbravo.com> [Wed, 10 Dec 2014 14:09:54 +0100] rev 25136
Fixes Issue 28157: Landed Cost takes into account exchange rate at invoice level

If an exchange rate different from the System is added in Purchase Invoice and this Invoice is matched in a Landed Cost, a new record will be created in 'Matched Amount' tab under 'Landed Cost Cost' tab of 'Landed Cost' window. This new record will have the new flag of 'Is Conversion Matching' as true, and the amount will be the difference obtained from using the Invoice exchange rate compared to the one of the System.
This will create a new Cost Adjustment of source 'Landed Cost' with the same amount.

Thu, 04 Dec 2014 12:12:34 +0100Related to Issue 28113: Revert a change on issue 28115.
Unai Martirena <unai.martirena@openbravo.com> [Thu, 04 Dec 2014 12:12:34 +0100] rev 25135
Related to Issue 28113: Revert a change on issue 28115.

In this cases the net unit price is the cost of the transaction

Fri, 05 Dec 2014 08:51:10 +0100Fixes bug 28230 Null Pointer Exception is raised when trying to post a goods receipt
Alvaro Ferraz <alvaro.ferraz@openbravo.com> [Fri, 05 Dec 2014 08:51:10 +0100] rev 25134
Fixes bug 28230 Null Pointer Exception is raised when trying to post a goods receipt

When a goods receipt with a product of type Service, which has a cost of type Standard, is posted, the DocInOut class calls the getStandardCost method from CostingUtils class with the currency of the current organization. If the organization has no currency, the client's currency will be used. Otherwise, a null pointer exception will be raised.

Thu, 04 Dec 2014 13:09:42 +0100Fixes Issue 28234: Check in Costing Rule Validation that the org has Currency.
Unai Martirena <unai.martirena@openbravo.com> [Thu, 04 Dec 2014 13:09:42 +0100] rev 25133
Fixes Issue 28234: Check in Costing Rule Validation that the org has Currency.

If the organization has no currency defined, the costing process will use the currency defined in the client. This could be wrong if the currency for the transactions of this organization should be different that the currency of the client, so before validating a costing rule the organization of it should have a currency defined.

Thu, 04 Dec 2014 16:58:28 +0100Related to Issue 28238: Clear Goods Shipment Lines when changing Goods Shipment.
Unai Martirena <unai.martirena@openbravo.com> [Thu, 04 Dec 2014 16:58:28 +0100] rev 25132
Related to Issue 28238: Clear Goods Shipment Lines when changing Goods Shipment.

A callout has been implemented in Goods Shipment field.

Thu, 04 Dec 2014 11:31:24 +0100Fixes Issue 28238: Cost Adjustment of Landed Cost type properly created.
Unai Martirena <unai.martirena@openbravo.com> [Thu, 04 Dec 2014 11:31:24 +0100] rev 25131
Fixes Issue 28238: Cost Adjustment of Landed Cost type properly created.

Receipt tab of Landed Cost has been designed to work in the following way:
* either a Goods Receipt header is selected in 'Goods Receipt' field -> this option implies that specified landed cost are distributed among all Goods Receipt lines.
* or a Goods Receipt header is selected in Goods Receipt field and a Goods Receipt line 'of the very same Goods Receipt' is selected in the field 'Goods Receipt Line' -> this option implies that specified landed cost are distribute just for the Goods receipt line selected.
Above behaviour implies that Goods Receipt lines field lists only goods receipt lines of the goods receipt selected in Goods Receipt field. In order to do this a where clause has been added in Goods Receipt Lines selector to only display lines of the selected header, if no header is selected, no lines would be displayed.

Tue, 09 Dec 2014 18:59:11 +0100Fixed bug 28362 c_invoice_post creates unnecesary contentions
Sandra Huguet <sandra.huguet@openbravo.com> [Tue, 09 Dec 2014 18:59:11 +0100] rev 25130
Fixed bug 28362 c_invoice_post creates unnecesary contentions

Avoiding the join with m_pricelist and c_doctype contentions are solved