Commit Graph
65 Commits
Author SHA1 Message Date
Nicolas Malin b134c6b72f Improved: Convert ProductionRunServices.xml file from mini-lang to groovy DSL
(OFBIZ-11395)

Thanks to Yashwant Dhakad for this patch
2020-05-19 17:09:34 +02:00
Suraj Khurana 814b2ef139 Improved: Converted all TechDataCalendar related CRUD services from simple to entity-auto (#112)
(OFBIZ-11632)
2020-05-11 12:53:31 +05:30
Suraj Khurana 4cb9fc7e80 Improved: Converted all TechDataCalendarWeek related CRUD services from simple to entity-auto (#109)
(OFBIZ-11644)
2020-05-06 18:56:19 +05:30
Suraj Khurana 00e1b01a7d Improved: Converted all TechDataCalendarExcWeek related CRUD services from simple to entity-auto (#104)
(OFBIZ-11636)
2020-05-05 11:07:10 +05:30
Suraj Khurana 98e95ee9e3 Improved: Converted all TechDataCalendarExcDay related CRUD services from simple to entity-auto (#96)
Improved: Converted all TechDataCalendarExcDay related CRUD services from simple to entity-auto
(OFBIZ-11622)
Also, added a permission service for MANUFACTURING related base permission.
2020-05-03 11:39:07 +05:30
Arun Patidar 82921a982f Implemented: Added CRUD services for InvoiceTypeAttr, MrpEventType, OrderAdjustmentAttribute, OrderAdjustmentType, OrderAttribute, OrderBlacklist, OrderBlacklistType, QuantityBreakType, QuoteTermAttribute and QuoteType entities.
(OFBIZ-8271) (OFBIZ-8277) (OFBIZ-8281) (OFBIZ-8283) (OFBIZ-8285) (OFBIZ-8286) (OFBIZ-8287) (OFBIZ-8303) (OFBIZ-8304) (OFBIZ-8305)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1763298 13f79535-47bb-0310-9956-ffa450edef68
2016-10-04 16:42:10 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Pranay Pandey 57d83e01a7 [OFBIZ-7336] Now fromDate and thruDate can be added while adding a party to a production run form. Also done cleanup in createProductionRunPartyAssign service, removed unused code from it. Thanks Amardeep Singh Jhajj for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750341 13f79535-47bb-0310-9956-ffa450edef68
2016-06-27 14:04:43 +00:00
Jacques Le Roux ec66e361e1 A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Jacques Le Roux 0455178476 A patch from Pierre Smits for
"Have parties to be assigned to production run tasks" https://issues.apache.org/jira/browse/OFBIZ-5706
It is not possible to assign parties to execute one or more task in a production run.

And
"ProductionRun doesn't capture and show manufacturing organisation" https://issues.apache.org/jira/browse/OFBIZ-5709
The production run should capture the manufacturing (internal) organisation on creation.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1659914 13f79535-47bb-0310-9956-ffa450edef68
2015-02-15 11:38:46 +00:00
Jacques Le Roux 5f62965d3e A patch from Pierre Smits for "Be able to manually set preceding or succeeding production runs" https://issues.apache.org/jira/browse/OFBIZ-5523
In current feature set of the manufacturing compoment it is possible to set 'create dependent production run(s). This function will create the dependent production runs and have these shown in the production run.

In other scenario's of managing production runs it is not possible to associate one production run to another in the component. Although it might be needed/required. In order to do this now the user must (at least):
# have direct access to the workflow component (with appropriate permissions)
# look for the correct workeffort
# go to the children tab of the workeffort
# set the association

The improvement will be that the user of the manufacturing component will be able to define (in said component) the association between production runs.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589869 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 20:23:44 +00:00
Jacques Le Roux 8196e850ab A patch from Pierre Smits for "ProductionRunServices doens't set UoM of goods in inventoryItems" https://issues.apache.org/jira/browse/OFBIZ-5300
When releasing a good to inventory from a production run (both declare and return material) the uom of the good returned isn't set in the inventory item.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518336 13f79535-47bb-0310-9956-ffa450edef68
2013-08-28 19:34:02 +00:00
Jacques Le Roux d2f50da17e A modified patch from Pierre TALLOTTE "Managing of lot number and tracking" https://issues.apache.org/jira/browse/OFBIZ-4172
This patch adds features which allows a, user to manage products by lot id :
    when s/he buys a product, s/he can specify the lot id ;
    each time s/he produces an inventory item in manufacturing, s/he can specify the lot id ;
    s/he can choose the lot s/he wants when s/he makes a sale order or a manufacturing process ;
    there is a new screen which allows the user to realize the tracking of lots.

jleroux: apart some formatting and typos, I used only availableToPromiseTotal (instead of also quantityOnHandTotal) when checking the stock of a lot while editing a Picklist Item. 
Note: I only reviewed the code, but did not find enough time to test. As the code was straightforward I decided to add it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1195037 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 21:09:38 +00:00
Jacopo Cappellato e3e1c12430 Fixed bug that was causing, under some circumstances (failIfItemsAreNotAvailable set to N with not enough inventory on hand), negative qoh.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1091339 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 09:29:52 +00:00
Jacopo Cappellato 657ccb35c3 Simlified service definitions for CRUD operations on the TechDataCalendarWeek entity: this fixes an error happening when the exception week was edited.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987698 13f79535-47bb-0310-9956-ffa450edef68
2010-08-21 05:39:59 +00:00
Jacopo Cappellato c25b2eb234 Simlified service definitions for CRUD operations on the TechDataCalendarWeek entity: this also fix the calendar week editor that was broken.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981865 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 13:27:18 +00:00
Jacopo Cappellato 5be58b3493 Fixed bug reported by Giorgio Tomaselli: when the same order item requiring production runs is associated to multiple shipments, in the "work with shipment plans" screen it was not possible to generate the production runs for 2nd, 3rd etc.. shipments.
Fixed by adding an optional shipGroupSeqId to the WorkOrderItemFulfillment entity that can be used to specify the key to the specific OrderItemShipGroupAssoc.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934004 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 16:12:57 +00:00
Jacopo Cappellato a1b37c0255 No functional change: grouped together the services dealing with creation of production runs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909991 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 08:53:42 +00:00
Adrian Crum 9a753b9865 Fixed a problem where service definitions were using "GenericValue" as attribute types, but that threw exceptions because the service definitions needed the full class name - "org.ofbiz.entity.GenericValue". The problem was reported in https://issues.apache.org/jira/browse/OFBIZ-2268 and https://issues.apache.org/jira/browse/OFBIZ-2311.
I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes.

If anyone has a better solution, please feel free to revert this commit and change it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 06:33:43 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Jacques Le Roux c5ec5c207a manufacturing component
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755930 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 11:23:31 +00:00
Ashish Vijaywargiya b3483f7ab3 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755830 13f79535-47bb-0310-9956-ffa450edef68 2009-03-19 04:26:20 +00:00
David E. Jones 874f02e9da Manual merge of typecheckcleanup200810 branch as of rev 731346 in that branch, resolved all conflicts; with this BigDecimal is not the native type for many entity fields and is used for many calculations; some work is still needed in certain areas of the project but this covers the most critical ones; thanks especially to Scott for his work on this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731851 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 07:13:36 +00:00
Jacopo Cappellato 1a06fcea92 Small enhancements to the algorithm that computes start/end dates of production runs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662779 13f79535-47bb-0310-9956-ffa450edef68
2008-06-03 13:11:22 +00:00
Jacopo Cappellato a375370814 Added ability to specify the primare/alternative locations for materials when using the quick produce form in the production run screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@649532 13f79535-47bb-0310-9956-ffa450edef68
2008-04-18 13:24:47 +00:00
Jacopo Cappellato cb86dcdd30 Implemented quick way to declare products produced by the production run: when the form is submitted, all the tasks are updated and, if required, materials are issued as well.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@648703 13f79535-47bb-0310-9956-ffa450edef68
2008-04-16 14:15:31 +00:00
Jacopo Cappellato 4b3889553d Increased timeout (temp fix) to avoid errors when there are a lot of inventory item details.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@648170 13f79535-47bb-0310-9956-ffa450edef68
2008-04-15 08:27:37 +00:00
Jacopo Cappellato 5a0938e0f7 Enhanced the service that pulls materials for production runs out of inventory: some bug fixes plus the ability to specify if reservations can be overriden; useful for materials that are also sold.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644805 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 18:10:10 +00:00
Jacopo Cappellato 7eb08a6233 Misc fixes for the MRP algorithm (including two reported by Daniel Riquelme in the dev list).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@613599 13f79535-47bb-0310-9956-ffa450edef68
2008-01-20 16:31:05 +00:00
Jacopo Cappellato fdd81e72eb Refactored the entities (and supported code) that are used by the MRP. This is a step part of a more general review and enhancement of the manufacturing component.
There is still a lot to do.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603280 13f79535-47bb-0310-9956-ffa450edef68
2007-12-11 15:44:25 +00:00
Scott Gray 10961769e7 A few changes to the way auto marketing packages are handled:
1.  No longer producing for the current order only, all orders are taken into account, so we're now trying to produce whatever will get the ATP back to zero.
2.  Only producing what the available components will allow, ie. if we need to produce 10 units but only have enough components for 5 then that's all we'll produce.
3.  Because of (1) no longer associating the production run to the order item via WorkOrderItemFulfillment.
4.  Moved the call to createProductionRunForMktgPackage so that it is called when an order is edited as well (Fixes OFBIZ-714, the marketing package was decomposed when cancelling inventory reservations but not reproduced afterwards).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@590004 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 09:34:58 +00:00
Jacopo Cappellato 42f265d970 Implemented service that computes the actual/real production run routing task's costs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@583200 13f79535-47bb-0310-9956-ffa450edef68
2007-10-09 15:47:23 +00:00
Jacopo Cappellato 3a4f47f3ef Iissuance of materials for productions: added ability to specify a secondary location; added flag to return an error message if materials are not available.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579947 13f79535-47bb-0310-9956-ffa450edef68
2007-09-27 08:49:35 +00:00
Jacopo Cappellato e0cbf4c3fc Misc cleanups and refactoring for the issueProductionRunComponent* services; added ability to specify the location from where the materials are issued.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577408 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 18:11:58 +00:00
Si Chen e051142315 Improve service to changing production run task statuses: It should pass the original statusId before change so that SECAS can check whether there was an actual change in status.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@567872 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 23:10:44 +00:00
Jacopo Cappellato 789fb40faf Misc fixes and improvements to the services related to production run creation:
- better error handling
- fixes for npe
- better handling of production runs for products that can be manufactured or purchased: if a manual production run is issued, and we have enough information for the manufacturing process, ignore the supplier product info
- fix for a complex date related issue happening when a production run for a product with WIP (Work In Process) components was issued: from a requirement: the start date of the requirement could be wrong


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@563823 13f79535-47bb-0310-9956-ffa450edef68
2007-08-08 11:56:39 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Jacopo Cappellato 44cac636e5 Implemented service to set the estimated ship dates for order items that need production, based on scheduled outstanding production runs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@532685 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 09:48:00 +00:00
Jacopo Cappellato df2a50a3c1 Added reasonEnumId field to the InventoryItemDetail entity to optionally categorize the reasons for the inventory item detail records. Added an example of its usage in the production run management screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530811 13f79535-47bb-0310-9956-ffa450edef68
2007-04-20 13:57:27 +00:00
Jacopo Cappellato a699b8ecc3 Added 'description' field to the InventoryItemDetail entity; the field can be used to further describe the detail record (such as the reason for an issuance).
Implemented code and artifacts to populate this new field when production run issuances are done.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@529589 13f79535-47bb-0310-9956-ffa450edef68
2007-04-17 13:05:44 +00:00
Jacopo Cappellato d86168ea4a Added optional parameter to the mrp for the default number of years offset for orders without dates.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@527134 13f79535-47bb-0310-9956-ffa450edef68
2007-04-10 13:35:38 +00:00
Jacopo Cappellato 3393200f7f Implemented new production run's subscreen to view and add inventory item issuances.
Modified the existing issuance service to be more flexible.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@527108 13f79535-47bb-0310-9956-ffa450edef68
2007-04-10 12:41:46 +00:00
Si Chen 8a3973bdde set long time out for initlowlevelcode service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@524372 13f79535-47bb-0310-9956-ffa450edef68
2007-03-31 05:03:53 +00:00
Jacopo Cappellato 02f45a6255 Fix for bug in the service that updates the product's low level codes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@523734 13f79535-47bb-0310-9956-ffa450edef68
2007-03-29 15:02:21 +00:00
Jacopo Cappellato 31ff833f32 Misc fixes to the way routings are retrived by the MRP.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@523700 13f79535-47bb-0310-9956-ffa450edef68
2007-03-29 13:32:28 +00:00
Jacopo Cappellato 9cbc330a23 Now the mrp screen used to manually run the MRP will submit the job as async since it can be a long running job; the user can now monitor the status of the process from the new screen in the WorkEffort application.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@520324 13f79535-47bb-0310-9956-ffa450edef68
2007-03-20 08:40:33 +00:00
Jacopo Cappellato 65e8d7ef6b Added to production runs support for serialized inventory creation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@517636 13f79535-47bb-0310-9956-ffa450edef68
2007-03-13 10:33:43 +00:00
Jacopo Cappellato 0bc263c468 Improved the mrp event log with information about facilityId:
- new facilityId field in the InventoryEventPlanned entity
- removed the facility drop down box from the find event screen, now the correct facility is pulled by the event


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516875 13f79535-47bb-0310-9956-ffa450edef68
2007-03-11 08:56:45 +00:00
Jacopo Cappellato c3f7bfd75d Added support for facility groups in MRP: if a facility group is specified (instead of a facility id) the MRP will use the facilities in the group as warehouse facility (WAREHOUSE) and manufacturing facility (PLANT).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516798 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 22:24:01 +00:00
Jacopo Cappellato 13beb693df Improved support for WIP (Work In Process) components in bill of materials, MRP and requirements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516229 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 23:45:48 +00:00