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

1097 commits

Author SHA1 Message Date
Michael Stenta
d58eb3eb4b Remove quantity type label from template. 2021-03-12 08:15:56 -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
476e30ca7a Add template for price quantities. 2021-03-12 08:15:56 -05:00
paul121
7bb755bc6f Purchase and sale logs depend on price quantity. 2021-03-12 08:15:56 -05:00
paul121
e51b9d7d27 Create a price quantity type. 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
f3db655455 Issue #3203228: Running migrations out of order can result in data collisions 2021-03-12 08:14:50 -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
40526941d2 Add units filter to View of quantities. 2021-03-11 17:50:58 -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
32cab033de Issue #3186530: Inherit from the drupal:9-php7.4-apache image. 2021-03-11 16:37:18 -05:00
Michael Stenta
3eb0a6e892 Exclude Sniffs that prevent blank lines after comments.
This is being discussed upstream in https://www.drupal.org/project/coder/issues/2159253
and https://www.drupal.org/project/coding_standards/issues/2464123.

We can remove these exclusions if/when they are removed upstream.
2021-03-11 16:37:18 -05:00
Michael Stenta
2066e7202b List of all quantities in log Views. 2021-03-11 08:55:19 -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
paul121
28c22be933 Display 1 quantity in the farm_log views. 2021-03-11 08:40:32 -05:00
Michael Stenta
5ce31648a6 Merge branch '2.x-quantity-views' into 2.x 2021-03-11 07:38:25 -05:00
Michael Stenta
e68d89e50f Add "by type" menu links for Quantity Views. 2021-03-11 07:38:15 -05:00
Michael Stenta
f295027462 Provide a farm_quantity View. 2021-03-11 07:38:15 -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
Michael Stenta
92bd9aa212 Make "Other" a default land type, provided by the Land module. 2021-03-11 07:38:15 -05:00
Michael Stenta
3d1d3fb2e4 Merge branch '2.x-quantity_inline_form' into 2.x 2021-03-11 07:36:40 -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
2cd058167f Issue #3196825 by paul121, m.stenta: Quantity types 2021-03-08 10:09:52 -05: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
Michael Stenta
11f370e4c5 Remove standard quantity template (use default). 2021-03-08 10:01:42 -05:00
Michael Stenta
85f979a439 Do not include quantity type in default template. 2021-03-08 10:01:42 -05:00
Michael Stenta
c394b7bacf Fix "Call to a member function setRequirement() on null" for entity types that do not expose bundle admin UI. 2021-03-08 09:43:14 -05:00
Michael Stenta
8fbf8def75 Remove unimplemented quantity entity type annotations and related unused classes. 2021-03-08 09:42:33 -05:00
Michael Stenta
07c6e32d14 Revert "Make farm_migrate depend on farm_entity."
This reverts commit 6dc2f82c24aae2c4b11f037e73f15ccf81d167e0.
2021-03-05 14:16:06 -05:00
Michael Stenta
c8cf3ae94d Revert "The farm_migrate module depends on farm_quantity_standard."
This reverts commit 04f3af4dc530998815b60048befb3da61bb439b3.
2021-03-05 14:16:06 -05:00
Michael Stenta
07d03f617b Move farm_migrate_quantity_standard to optional config. 2021-03-05 14:16:06 -05:00
paul121
97b744207e The farm_migrate module depends on farm_quantity_standard. 2021-03-05 14:16:06 -05:00
paul121
0a55030f33 The farm_quantity_standard module depends on farm_entity. 2021-03-05 14:16:06 -05:00
paul121
e6836d4229 Provide a quantity--standard template. 2021-03-05 14:16:06 -05:00
paul121
5491b83fb2 Remove devel and standard quantity reference from template. 2021-03-05 14:16:06 -05:00
Michael Stenta
dd910c1d95 The farm_entity module depends on quantity, not farm_quantity_standard. 2021-03-05 14:16:06 -05:00
Michael Stenta
b5d87d4e81 Make farm_quantity_standard a default module during farmOS installation. 2021-03-05 14:16:05 -05:00
Michael Stenta
078826205a Rename quantity migration to farm_migrate_quantity_standard. 2021-03-05 14:16:05 -05:00
paul121
d942781100 Render the quantity type label if it is not the standard type. 2021-03-05 14:16:05 -05:00
paul121
65d2348b93 Document that the quantity variable is available in template. 2021-03-05 14:16:05 -05:00
paul121
a5d1e7eeef Only display other quantity field labels if they are not hidden. 2021-03-05 14:16:05 -05:00