You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Pierre Smits (Jira)" <ji...@apache.org> on 2024/02/27 08:48:00 UTC

[jira] [Commented] (OFBIZ-12723) Remove fields oldQuantityOnHand and oldAvailableToPromise from InventoryItem entity

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

Pierre Smits commented on OFBIZ-12723:
--------------------------------------

HI [~danwatford],

This has been implemented,, but in the repository on GitHub the branch ([https://github.com/apache/ofbiz-framework/tree/ofbiz-12723]) still exists. Should that not be removed from there?

Best regards,
Pierre

> Remove fields oldQuantityOnHand and oldAvailableToPromise from InventoryItem entity
> -----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-12723
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12723
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: datamodel, product
>    Affects Versions: Upcoming Branch
>            Reporter: Daniel Watford
>            Assignee: Daniel Watford
>            Priority: Trivial
>             Fix For: Upcoming Branch
>
>
> Remove fields oldQuantityOnHand and oldAvailableToPromise from the InventoryItem entity, associated view-entities, forms and services.
> OFBiz currently has a maintenance service, updateOldInventoryToDetailAll, which finds any InventoryItems where oldQuantityOnHand or oldAvailableToPromise are populated and creates corresponding InventoryItemDetail entities. The oldQuantityOnHand and oldAvailableToPromise fields are then cleared.
> Based on source code repository logs, were already in the data model when OFBiz was imported into subversion 1st July 2006.
> Given the column names for the fields are hard-coded in the data model as QUANTITY_ON_HAND and AVAILABLE_TO_PROMISE, I assume these entity fields, along with the updateOldInventoryToDetailAll service, were implemented as a method of upgrading the data model and are no longer used.
> Since these fields are no longer used, lets remove them and their related code, (slightly) reducing the size of ofbiz' sources that need to be maintained.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)