3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

645 commits

Author SHA1 Message Date
Michael Stenta
1811ce05d1 Add Inventory field support to farm.field_factory. 2021-03-25 18:42:03 -04:00
Michael Stenta
94546a0826 Define Inventory field type schema. 2021-03-25 18:42:03 -04:00
Michael Stenta
2526d69488 Output the units as a term label, rather than a term ID. 2021-03-25 18:42:03 -04:00
Michael Stenta
29cfef230a Add automated tests for assets with multiple inventories. 2021-03-25 18:42:03 -04:00
Michael Stenta
ee84726112 Initial inventory automated tests. 2021-03-25 18:42:03 -04:00
Michael Stenta
4064c4f84f Initial asset.inventory service. 2021-03-25 18:42:03 -04:00
Michael Stenta
f9e7b8883d Revert "Create an entity browser for inventory assets."
This reverts commit 3bb4613a445da64364899ce5aaa1a4a2b4df9805.
2021-03-25 18:42:03 -04:00
Michael Stenta
dd0b75592a Revert "Start an entity_browser view that displays inventory asset options."
This reverts commit 53ccab74073ab4a8f8728e839a3447296bc03607.
2021-03-25 18:42:03 -04:00
Michael Stenta
e952ca952a Refactor/rename inventory fields. Use farm.field_factory. 2021-03-25 18:41:52 -04:00
Michael Stenta
4eb303c77c Replace references to farm_quantity with quantity. 2021-03-25 18:31:09 -04:00
paul121
42079f795d Change the quantity.asset form display to use the inventory_assets entity browser. 2021-03-25 18:31:09 -04:00
paul121
029579a7f3 Create an entity browser for inventory assets. 2021-03-25 18:31:09 -04:00
paul121
5fcda12c31 Start an entity_browser view that displays inventory asset options. 2021-03-25 18:31:09 -04:00
paul121
5a6ba4d55b Include log_inventories in the FarmLog source plugin. 2021-03-25 18:31:09 -04:00
paul121
9479eecdfc Add inventory base fields to farm_quantity entity. 2021-03-25 18:31:09 -04:00
paul121
44cfb7e92e Init farm_inventory module. 2021-03-25 18:31:09 -04:00
Michael Stenta
319fcad256 Make the asset field in test modules a BaseFieldDefinition and allow multiple values. 2021-03-25 08:43:13 -04:00
Michael Stenta
cec5058337 Issue #3200219 by paul121: Uninstalling a bundle removes field storage definitions that are used by other bundles
This fixes the incorrect commit message used for the previous merge (two
commits ago), so that future git blame history is correct.
2021-03-23 17:43:01 -04:00
Michael Stenta
3752976f1a Revert "Issue #2991394 by paul121: Move inventory fields to quantity measurements"
This reverts commit d8443dfa56, reversing
changes made to d40531cbbc.

I mistakenly copied and pasted the wrong commit message for the previous
merge commit. This reverts the entire merge. I will revert this revert,
and give it the correct commit message in the next commit so that git
blame history is corrected moving forward.
2021-03-23 17:41:05 -04:00
paul121
d4e0d26aef Add explicit test to ensure field storage definitions provided by hook_farm_entity_bundle_field_info are deleted. 2021-03-22 07:27:26 -04:00
paul121
bf1ba8a86c Decorate the BundlePluginInstaller service to not delete field storage definitions used by other bundles. 2021-03-22 07:27:26 -04:00
paul121
29b8355731 Rename to FarmEntityBundleFieldTest. 2021-03-22 07:27:26 -04:00
paul121
bf492f3347 Add test for bundle field storage definitions on multiple bundles. 2021-03-22 07:27:26 -04:00
Michael Stenta
a2a8e3d361 Disable consumer JSON:API resource. 2021-03-18 15:53:17 -04:00
Michael Stenta
30ba7836d8 Disable additional JSON:API resources: date_format, image_style, migration, migration_group, rest_resource_config. 2021-03-18 15:49:45 -04:00
Michael Stenta
f5e7d59549 Move jsonapi_extras.jsonapi_resource_config.* to optional config and remove enforced dependency on farm_api. 2021-03-18 15:49:34 -04:00
Michael Stenta
f2bdfde99a Alphabetize farm_dashboard dependencies. 2021-03-18 15:49:29 -04:00
Michael Stenta
1de7f4ed77 Improvements to farm_migrate_role migration config.
These changes help to support custom/contrib modules that want
to provide their own role migrations.

- Use skip_map_on_empty process plugin to ensure that skipped rows are not added to the map tables.
- Set a "role" pseudo-field, which is used by role ID matching.
- Move role ID matching process to farm_migrate_role migration group shared config.
- Move farm_migrate_role migration to optional config, dependent on farm_role_roles module.
2021-03-18 15:49:14 -04:00
Michael Stenta
7c16a8db46 Add a skip_map_on_empty process plugin that prevents mappings from being saved when a row is skipped. 2021-03-18 15:49:14 -04:00
Michael Stenta
f3c735b5c9 Issue #3176503: Migrate soil names field data (concat to notes). 2021-03-17 08:17:16 -04:00
Michael Stenta
7caf747694 Add a third-party setting for default quantity types on log types. 2021-03-15 15:46:36 -04:00
Michael Stenta
7fe08b4ca8 Move schema for location third party settings out of Views schema file. 2021-03-12 20:34:42 -05:00
Michael Stenta
3e19eb86b2 Migrate price quantities with a measure of value. 2021-03-12 20:34:08 -05:00
Michael Stenta
a39c667049 Move CreateQuantity to farm_migrate. 2021-03-12 08:15:56 -05:00
paul121
fc3f00883f Only create price quantities if price data was provided. 2021-03-12 08:15:56 -05:00
paul121
a00d0b32f6 Migrate purchase and sale log values to a price quantity. 2021-03-12 08:15:56 -05:00
paul121
cf2659db7b Add a create_quantity process plugin. 2021-03-12 08:15:56 -05:00
paul121
c5548eab72 Support fraction fields in FarmFieldFactory. 2021-03-12 08:15:56 -05:00
Michael Stenta
19dc89750f Add Lot number field (with migration) to Sale and Purchase logs. 2021-03-11 21:39:18 -05:00
Michael Stenta
fe5929ab2f Use taxonomy_index_tid Views filter handler plugin for quantity units column. 2021-03-11 17:49:01 -05:00
Michael Stenta
835137d0f3 Only include quantity fields in the template if they are not empty. 2021-03-11 08:40:32 -05:00
Michael Stenta
0f49717e96 Provide a reverse entity reference relationship from quantities to logs that reference them. 2021-03-11 07:38:15 -05:00
Michael Stenta
274b510d2e Set the views data handler class for logs to FarmLogViewsData. 2021-03-11 07:38:15 -05:00
Michael Stenta
dae3ccd80c Add Views integration for Quantity Value field, filter, and sort using fraction decimal handlers. 2021-03-11 07:38:15 -05:00
Michael Stenta
3c9087a3d0 The Quantity value field is not required.
This was dependent on https://www.drupal.org/project/fraction/issues/3202832
2021-03-11 07:38:15 -05:00
paul121
06c03f1073 Always render the Quantity type field. 2021-03-09 09:12:05 -08:00
paul121
bdd4e66714 Render the quantity entity in quantity inline entity forms. 2021-03-09 08:58:41 -08:00
paul121
7727048c6f Allow the quantity type label to be viewed without the administer bundle permission.
https://www.drupal.org/project/entity/issues/2943571
2021-03-09 08:23:28 -08:00
paul121
19a2169ac1 Add quantity permissions to managed roles. 2021-03-09 08:21:28 -08:00
Michael Stenta
19b5705f41 Use quantity_base_fields instead of standard_quantity_fields to avoid confusion with standard bundle. 2021-03-08 10:09:22 -05:00