Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harvest Doctype #3

Open
4 tasks
agritheory opened this issue Jun 11, 2018 · 8 comments
Open
4 tasks

Harvest Doctype #3

agritheory opened this issue Jun 11, 2018 · 8 comments

Comments

@agritheory
Copy link

agritheory commented Jun 11, 2018

Problem statement

Basically this is a document bridging the quantities harvested, datetime stamp, explicit UOM conversions, and item mapping (to cover primary crops and by products)

A persistent/ stateful harvest record should exist for each harvest, so that 1) data points can be created for management over time and 2) trace-ability to crop cycle can be enforced with a submit-able doctype

Challenges

Harvest never matches expected harvest, both larger and smaller, byproducts and primary crops

Possible solution to Problem

Make a harvest doctype
Create a harvest from Crop Cycle and from the harvest task inside crop cycle

Reference screenshots / mockups (if any)

Mockup:
image
agritheory/erpnext@3c757e5

Checklist :

  • Finalized on solution (out of several)
  • Finalized on solution implementation (of one)
  • Implemented solution (as code)
  • Made PR (link to PR here please)
@Alchez
Copy link

Alchez commented Jun 12, 2018

More details on the Harvest doctype can be found here.

@agritheory
Copy link
Author

More details on the Harvest doctype can be found here.
Action items synthesized from Alain's (as always) detail documentation:

  • Need a plan for completing harvests. I propose a percent_complete field, with the logic behind it modified by the "Annual/ Perennial/ Biennial" field in Crop. I think this is more straight forward than the harvest by area or harvest by amount. I think for the user's sake we should have one way to do this "correctly", even if there are multiple valid approaches.
  • More alignment of terminology: "Continuous" vs "Annual, etc". I think we're going to need to build a ERPNext Ag-specific glossary with all the terms that people might want to use to describe something

@Tropicalrambler
Copy link

I agree Tyler, your clear thinking should prevail in this matter. Keep it simple first, then we can always complicate it later if enough people ask for it

@agritheory
Copy link
Author

Convo with @Tropicalrambler
Generalize harvest to seriliazed and unserialized crops and animals by leveraging a dynamic link. Other doctypes need to be added: Animal Group (A container for serialized or unserialized animals, replaces "Herd" in my livestock app and Plant (for a serialized Plant).
image

@agritheory
Copy link
Author

Also discussed a Life Cycle or Life Plan document for livestock that mirrors Crop/ Crop Plan.
Crop Cycle and Animal Group both need a flag for "Is serialized"

@Tropicalrambler
Copy link

Tropicalrambler commented Jun 15, 2018

I propose this structure for the Child Table:

Stock Item Harvest UOM Yield Destination Warehouse
Red Clover Seed Pound 150.00 Barn Bin ABC1

For Livestock:
Can be done against a Life Cycle or herd, brood, etc.

Stock Item Harvest UOM Yield Destination Warehouse
Medium Eggs Unit 150.00 Egg cleaning station

@Tropicalrambler
Copy link

As I was working on the Fertilizer Application or Pesticide Application, it dawned on me that we can simplify greatly by having a SINGLE DocType which handles all the functionality for these types of work:

  1. Planting
  2. Transplanting / moving animals
  3. Doing field work on the plants/ field / animals
  4. Applying Fertilizer / feeding
  5. Applying Pesticides / medication
  6. Harvesting
  7. Post-harvest work

Work Done

Each of the above should belong to a Work Done DocType, and upon opening, the farmer selects:
a. Crop Cycle or Life Cycle (or herd)
b. Specific Crop Cycle or Life Cycle
c. Work Type (as above)
d. Date

The selections made in these four fields, enable or disable those child tables relevant to the type of work being done. A harvest does not involve the application of pesticides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants