ArticleWaste

Article waste tracking data for inventory loss management.

Fields

Field Type Required Version Description
id guid Yes 1.0 Unique waste record identifier
article_id integer Yes 1.0 Reference to Article
article_name string No 1.0 Denormalized article name
quantity float Yes 1.0 Quantity wasted
unit string No 1.0 Unit of measurement
reason string No 1.0 Waste reason code
reason_description string No 1.0 Human-readable waste reason
cost_amount float No 1.0 Cost value of wasted items
registered_by string No 1.0 User who registered the waste
registered_at date Yes 1.0 Timestamp of waste registration
customer_id integer Yes 1.0 Reference to Customer
business_unit_id integer No 1.0 Reference to BusinessUnit
revenue_unit_id integer No 1.0 Reference to RevenueUnit
comment string No 1.0 Additional notes

Reason Codes

Code Description
expired Product passed expiration date
damaged Product damaged during handling
spoiled Product spoiled/contaminated
overproduction Produced more than needed
quality Did not meet quality standards
other Other reason (see comment)

Example

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "article_id": 5001,
  "article_name": "Fresh Salmon Fillet",
  "quantity": 2.5,
  "unit": "kg",
  "reason": "expired",
  "reason_description": "Product passed expiration date",
  "cost_amount": 450.00,
  "registered_by": "chef.john",
  "registered_at": "2024-12-03T08:30:00Z",
  "customer_id": 12345,
  "business_unit_id": 10,
  "revenue_unit_id": 101,
  "comment": "Delivery delayed, could not use in time"
}

Example - Overproduction

{
  "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "article_id": 5050,
  "article_name": "Daily Soup",
  "quantity": 5.0,
  "unit": "portions",
  "reason": "overproduction",
  "reason_description": "Produced more than needed",
  "cost_amount": 125.00,
  "registered_by": "kitchen.manager",
  "registered_at": "2024-12-03T22:00:00Z",
  "customer_id": 12345,
  "business_unit_id": 10,
  "revenue_unit_id": 101,
  "comment": "End of day excess - fewer guests than expected"
}