Skip to content

PartCost

jmrowe edited this page Jan 22, 2012 · 3 revisions

PartCost

Variables

identifierFieldName = "partCostId"

PartCost(val partCostId: Identifier, val part: Part, val supplierPartId: String, val suppliedCost: Double, val lastSuppliedDate: Date)

  • partCostId: Identifier - Mandatory id required for DB storage
  • part: Part - Mandatory part which this cost is for
  • supplierPartId: String - Mandatory part id reference used by the supplier
  • suppliedCost: Double - Mandatory cost of this part
  • lastSuppliedDate: Date - Mandatory date which is the last date the supplier quoted the cost of this part

Methods

  • Add PartCost
  • Edit PartCost
  • Find all the PartCosts for a specific supplier if a new price list has been received from a supplier
  • Find all the PartCosts for a specific part

Assumptions

General

part

supplierPartId

suppliedCost

lastSuppliedDate

Clone this wiki locally