Hello Pierre, Many thanks for the detailed information. Is it considered an enhancement if the code auto-populate the records that go in WorkEffortFixedAssetAssign table from the routing tasks as its defined there, instead of adding them manually under 'Production Run Fixed Assets'? or there's a business-wise logic behind that to make the user add them manually?
Regards, Emad On Mon, Jul 1, 2024 at 11:54 AM Pierre Smits <[email protected]> wrote: > Hi Emad, > > I have created a production run in both demo stable and demo trunk. I have > also created maintenance tasks for the Demo Food Group asset (which is used > in the production runs). > Please have a look at: > > 1. > > https://demo-trunk.ofbiz.apache.org/manufacturing/control/ProductionRunDeclaration?productionRunId=10001 > 2. > > https://demo-stable.ofbiz.apache.org/manufacturing/control/ProductionRunDeclaration?productionRunId=10001 > > When accessing the calendar in the work effort application (with Calendar > Type = NONE) you'll see manufacturing and maintenance activities: > > 1. https://demo-trunk.ofbiz.apache.org/workeffort/control/calendar > 2. https://demo-stable.ofbiz.apache.org/workeffort/control/calendar > > When accessing the calendar of the asset DEMO_FOOD_GROUP in the asset > plugin > > 1. > > https://demo-stable.ofbiz.apache.org/assetmaint/control/calendar?fixedAssetId=DEMO_FOOD_GROUP > 2. > > https://demo-stable.ofbiz.apache.org/assetmaint/control/calendar?fixedAssetId=DEMO_FOOD_GROUP > > you'll see - by default the week view - only the maintenance activity. And > when switching to the month view you'll see: > > 1. > > https://demo-trunk.ofbiz.apache.org/assetmaint/control/calendar?period=month&calendarType&facilityId&workEffortTypeId&hideEvents&fixedAssetId=DEMO_FOOD_GROUP&partyId > 2. > > https://demo-stable.ofbiz.apache.org/assetmaint/control/calendar?period=month&calendarType=null&facilityId=null&workEffortTypeId=null&hideEvents=null&fixedAssetId=DEMO_FOOD_GROUP&partyId=null > > Having the correct parameters in the url is key. Differences between the > code in stable and trunk can be due to implemented improvements. > > That being said, it seems that parameter handling in the calendar > functionality in asset plugin between day, week and month view for a given > asset is not done in the same way as it is done in work effort. If and when > you come to the same conclusion, please create a new ticket in the > project's JIRA so that it can be addressed by the community. > > I guess you would like to see something like attached screenshot in the > manufacturing plugin > [image: Screenshot 2024-07-01 at 10.52.14.png] > > Met vriendelijke groet, > > Pierre Smits > *Proud* *contributor** of* Apache OFBiz <https://ofbiz.apache.org/> since > 2008 (without privileges and banned) > Proud contributor to the ASF since 2006 > *Apache Directory <https://directory.apache.org>, PMC Member* > > Anyone could have been you, whereas I've always been anyone. > > > On Sun, Jun 30, 2024 at 10:38 AM Emad Radwan <[email protected]> > wrote: > >> Hello Pierre, >> >> Would you please create a production run on the demo system where I can >> see the calendar for a fixed asset? This will be of a great help as I can >> examine the data model from web tools. >> >> Regards, >> Emad >> >> On Sat, Jun 29, 2024 at 12:35 PM Emad Radwan <[email protected]> >> wrote: >> >>> Thanks for your explanation. >>> >>> On Fri, Jun 28, 2024 at 8:53 PM Pierre Smits <[email protected]> >>> wrote: >>> >>>> Hi Emad, >>>> >>>> >>>> I looked at >>>> https://demo-trunk.ofbiz.apache.org/manufacturing/control/FindProductionRun >>>> but found no production run created. >>>> >>>> Then I took a look at >>>> https://demo-trunk.ofbiz.apache.org/webtools/control/entity/find/WorkEffort/10000 >>>> and found it. I trust it is yours. Or did you create the production run in >>>> another demo site (stable or latest)? >>>> >>>> Anyway, >>>> https://demo-trunk.ofbiz.apache.org/webtools/control/entity/find/WorkEffort/10000 >>>> is not a production run, but rather a schema definition for production runs >>>> to use. As you can see, no fixedAssetId has been set on the record. Which >>>> should be obvious, as assets are to be associated with schema tasks and/or >>>> production run tasks. >>>> >>>> I trust the above helps. >>>> >>>> >>>> >>>> >>>> Met vriendelijke groet, >>>> >>>> Pierre >>>> >>>> >>>> On Fri, Jun 28, 2024 at 1:49 PM Emad Radwan <[email protected]> >>>> wrote: >>>> >>>>> Hello Pierre, >>>>> >>>>> Please have a look at the online demo where I just created a >>>>> production run - # 10000 - that uses the 'PROD_MANUF' product and >>>>> 'ROUTING_COST' workeffort. I know that fixed asset 'WORKCENTER_COST' is >>>>> involved, but when I navigate to Fixed Assets-> Calendar as you mentioned >>>>> I >>>>> don't see the created workefforts listed for today whatever the status of >>>>> the production run is. What am I doing wrong here? >>>>> >>>>> As for your explanation about the other resources collide, I think it >>>>> makes very much sense. Thanks. >>>>> >>>>> Regards, >>>>> Emad >>>>> >>>>> On Fri, Jun 28, 2024 at 12:21 PM Pierre Smits <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi Emad, >>>>>> >>>>>> My apologies for this late reaction. I waited whether another >>>>>> community member would respond. >>>>>> >>>>>> IMO, you wouldn't need a calendar definition for each individual >>>>>> asset. >>>>>> As you can see in the Asset Management plugin when you access an >>>>>> asset. it has the tab calendar showing the work efforts related to that >>>>>> asset. What is missing in that plugin is a means to get to a calendar for >>>>>> all assets related work effort purpose types (WEPT_MAINTENANCE, >>>>>> WEPT_PRODUCTION_RUN, etc.) >>>>>> >>>>>> Similarly, in the Manufacturing plugin what you see missing is a easy >>>>>> means to a calendar showing running and future production runs and their >>>>>> tasks. >>>>>> >>>>>> As your second question, a implementing to stop creating a production >>>>>> run when a resource (person or equipment) is associated with a task in >>>>>> progress (and thus a production run in progress) is a wrong approach. >>>>>> Creating the project run is a planning activity. One of the tasks of a >>>>>> Production Manager is to ensure the optimized utilization of limited >>>>>> resources (persons AND equipment). And take decisions when future >>>>>> production run tasks collide with others vis-a-vis the resources >>>>>> required. >>>>>> >>>>>> In OFBiz Manufacturing, the Production Manager can adjust (estimated) >>>>>> start and stop times of future (non-started) task to prevent such >>>>>> collisions, The Production Manager can also change resources on those >>>>>> tasks. >>>>>> >>>>>> I trust the above helps. If you have further questions and/or remarks >>>>>> regarding this, please do not hesitate. >>>>>> Met vriendelijke groet, >>>>>> >>>>>> Pierre Smits >>>>>> *Proud* *contributor** of* Apache OFBiz <https://ofbiz.apache.org/> since >>>>>> 2008 (without privileges and banned) >>>>>> Proud contributor to the ASF since 2006 >>>>>> *Apache Directory <https://directory.apache.org>, PMC Member* >>>>>> >>>>>> Anyone could have been you, whereas I've always been anyone. >>>>>> >>>>>> >>>>>> On Wed, Jun 26, 2024 at 8:15 AM Emad Radwan <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Hello Community, >>>>>>> >>>>>>> Let me be more specific regarding the below: >>>>>>> >>>>>>> 1- Each fixed asset should have its own calendar; correct? >>>>>>> 2- Is there a mechanism currently to stop creating a production run >>>>>>> that >>>>>>> uses fixed assets that are in another 'running' production run? >>>>>>> >>>>>>> Regards, >>>>>>> Emad >>>>>>> >>>>>>> ---------- Forwarded message --------- >>>>>>> From: Emad Radwan <[email protected]> >>>>>>> Date: Sun, Jun 23, 2024 at 6:41 PM >>>>>>> Subject: WorkEffort, Fixed Asset and Calenndar >>>>>>> To: <[email protected]> >>>>>>> >>>>>>> >>>>>>> Hello Community, >>>>>>> I'm trying to understand the relationship between the above >>>>>>> artifacts, and >>>>>>> my question is, do we have calendar events for a fixed Asset when >>>>>>> it's used >>>>>>> in a manufacturing workeffort? >>>>>>> >>>>>>> To add more context, TechDataCalendar and related table data are >>>>>>> used when >>>>>>> calculating the endDate for a Routing Task but I see the code only >>>>>>> reading >>>>>>> from those tables but where is the persistence is taking place. >>>>>>> >>>>>>> The ultimate desired behavior is to be able - when navigating from >>>>>>> Accounting->Fixed Assets->Calendar - is to see the work happening on >>>>>>> the >>>>>>> fixed asset - the actual workeffforts - visible in the calendar. >>>>>>> >>>>>>> Is that possible? >>>>>>> >>>>>>> Regards, >>>>>>> Emad >>>>>>> >>>>>>
