ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Smits (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-11431) InvoiceItem: uomID is wrongly defined
Date Thu, 02 Apr 2020 12:48:00 GMT

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

Pierre Smits commented on OFBIZ-11431:
--------------------------------------

Re
?Beside quantityUomId, you implied there can be other uom like weightUomId, lengthUomId for
InvoiceItem entity.??
I did not imply that there *can* be such field definitions in the data model. These are already
there, and they are used to capture differentiations of the quantityUomId attributes.

Take any given product in the demo data set in demo trunk, and take a look at the 'measures'
section (which should actually be called 'measurements', e.g. https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=WG-9943

These measurement UomId fields are used to help with determining packing and shipping aspects.

> InvoiceItem: uomID is wrongly defined
> -------------------------------------
>
>                 Key: OFBIZ-11431
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11431
>             Project: OFBiz
>          Issue Type: Bug
>          Components: datamodel
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>            Priority: Critical
>              Labels: refactoring
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently the InvoiceItem entity has the field uomId, per:
> {code:java}
>       <field name="uomId" type="id"></field>
> {code}
> per the demo data this field is used to capture the currency of the invoice item. This
is, however, wrong. The currency for invoice items is set in the invoice entity record (with
field currencyUomId. 
> The uomId in the invoice item is related to the quantity set, and must be correctly named:
'quantityUomId.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message