ERPNext-Agri-Community / erpnext-agri

Catch-all repository for all things ERPNext Agriculture
2 stars 3 forks source link

Harvest Doctype #3

Open agritheory opened 6 years ago

agritheory commented 6 years ago

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 https://github.com/agritheory/erpnext/commit/3c757e5d82b14ee309aa434015b60ae3f598cea1

Checklist :

Alchez commented 6 years ago

More details on the Harvest doctype can be found here.

agritheory commented 6 years ago

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

Tropicalrambler commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.

Tropicalrambler commented 6 years ago

More about this here: https://app.nuclino.com/ERPNext-Agri/General/AgriNext-Pending-Issues-and-Focus-d1a21188-19de-4057-9c46-3737064e227e