DP Contract Type

Issue No: CT-58
Created 3/27/2015 4:10:52 PM
Type Feature
Priority Major
Status Closed
Resolution Fixed
Fixed Version 15.4
Description DP is a special storage type that has no price or quantity. There may be a time frame when the grain could be delivered but DP is not a guarantee that the producer will act on DP contract. When grain is delivered and put on DP the elevator takes ownership of the grain. This is different than Open Storage or Grain Bank which is producer owned. As grain is applied to the DP type the header quantity needs to increased to show what has been applied. The sequence will also need to match this increase automatically.   When a user selects DP as the Pricing Type the Quantity, Grades, and Weights will be grayed out.   On the sequence, everything will be grayed out except the Location, Item, Start & End Date. The items that are not grayed out will also be required fields.   Business Rules - DP type (purchase or sales) contracts have one sequence only since there is no price or multiple time periods. To have a valid contract the sequence will need to completed.   A store will need to be created that when a DP contract is selected (Scale for example), that when a ticket is applied that the balance is increased on the contract.   If DP is selected as a Pricing Type.   Header   Quantity, Pay Terms, Grades, and Weights will be grayed out.   Sequence (see above)   Only one sequence is created.   Pricing type is set to DP and read only.   Quantity of the sequence is set to zero and read only.   Cannot create more than one sequence.   If ticket is applied to the sequence then quantity will be updated in the header as well as in sequence. Balance will need to increase.   Printing the DP contract will print the normal contract print as well as a list of all tickets and receipts that have applied to the contract. When a ticket is purchased from a DP contract the ticket will be removed from the printing of a DP contract but a history will need to be kept to indicate that the ticket was once applied to the contract. When a quantity is purchased from a DP contract, the quantity will need to be deducted from the oldest ticket first. Example: scale ticket applied to DP contract for 1000 bu and later purchase from DP contract 700 bu. The ticket applied to the DP contract will now have a balance of 300 bu.