You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Sharan Foga (JIRA)" <ji...@apache.org> on 2014/08/22 14:46:11 UTC

[jira] [Commented] (OFBIZ-5117) The Sales Invoice Currency UOM is not the same one on Sales Order when using other foreign currencies but with the same amount.

    [ https://issues.apache.org/jira/browse/OFBIZ-5117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14106790#comment-14106790 ] 

Sharan Foga commented on OFBIZ-5117:
------------------------------------

Using the latest trunk (version 1619319) I havent been able to replicate this.

For my test I did as follows:

1. Setup a Global Exchange Rate of 1.6 CNY to USD.
2. Created a CNY Price for a product (GZ-1001)
3. Created a new Party Group with Currency CNY with all the Customer roles
4. Created an order with Order Currency = CNY added the GZ-1001 product to it

The Order was created and with all the details displayed using CNY. 

The only issue I noticed in the order view screen was in the 'Unit/List' column where the Unit Price was displayed in CNY but the List Price was displayed as CNY 25.99 when it should have been $25.99 as the list price is in USD.

I then approved and Quick Shipped the Order to generate the invoice
The invoice was created correctly using the CNY currency and all the line items were shown as CNY.
The invoice default PDF displays in CNY.

The Accounting Entries shows both currencies (CNY and USD) and the posting is done in USD using the Global Exchange Rate as this is the main Company currency.

Trying to receive currency payment seems to cause a problem. 
I did a "Receive Payment" from the sales order and entered the currency amount (e.g 1000) as a cash payment and got the following error message:

The Following Errors Occurred:
Could not commit transaction for service [createPaymentFromPreference] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in simple-method [Create a Payment Application [file:/opt/ofbiz/trunk/ofbiz/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml#createPaymentApplication]]: ; [Currencies of invoice and payment not compatible]

> The Sales Invoice Currency UOM is not the same one on Sales Order when using other foreign currencies but with the same amount.
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5117
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5117
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Trunk
>            Reporter: sunny zhao
>
> for example,
> Total Sales Order Amount is 1000 in CNY, exchange rate is 1.6 from CNY to USD,but the Sales Invoice Amount is 1000 too but in USD.



--
This message was sent by Atlassian JIRA
(v6.2#6252)