Skip to content

Improve daily entry: saleable Cracked and Dirty quality eggs #396

Description

@mforce

Goal

Allow a farm to sell Cracked and Dirty eggs as separate quality stock while preserving complete, auditable daily-entry accounting.

Product decisions

  • Cracked and Dirty are saleable by default in fresh base reference data, but each farm can turn either grade non-saleable.
  • They retain separate Daily Entry counters and are bound to explicit, rename-safe quality-grade identities rather than a name match.
  • Manual grade lines reconcile exactly to total - cracked - dirty - discarded when a Daily Entry is submitted or adjusted; drafts remain flexible.
  • Saleable quality counters create their own lots. Non-saleable conditions remain losses. Discarded always remains a loss.
  • The official entry snapshots the selected quality-grade disposition. Later configuration changes never reinterpret historical production or create retrospective lots.
  • Cracked and Dirty sell through ordinary mapped products with independently configured default prices; there is no hard-coded discount.

UI

  • Daily Entry excludes the condition grades from manual grading and shows the complete reconciliation.
  • The History adjustment dialog uses the same counts-and-grading structure and blocks an official save until reconciliation and reason are both present.

Operational acceptance criteria

Design and implementation plan are prepared in the documentation PR.

Activity

  1. added 20 commits that reference this issue on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions