Use scale logic to calculate and capture grades to a new file

Issue No: GRN-137
Created 6/10/2015 4:41:43 PM
Type Feature
Priority Major
Status Closed
Resolution Fixed
Fixed Version 15.3
Description create a new table that mirrors tblscticketdiscount as   tblQATicketDiscount update fields names as needed to make this unique to Grain. NOTE: this is in addition to the scale version it does not replace it.   This table must have new fields added after intTicketFileID (for scale) to hold the key to a possible storage ticket number, receipt number or invoice number.   Tickets, invoicing, receipts and other processes may call this routine (including scale) and will allow updating of values on this table.   EG: scale in grain, will place copy of the values on this table and put in either storage ticket, invoice or receipt.   Invoice or reciept may call this new process to update those values, which needs to be able to recalculate all the values like discount and shrink when needed (this would only be new storage tickets, non-manual scaled tickets). (note: see scale code, discuss with Rahman) note: this will be commonly used for something called in -transit. This means it left my company with these grades but the company getting the grain sent me it is these grades. Ticket maintains the original values.   This screen that will show is a grid that matches like we have in storage maintenance.   If part of this will not work, let me know...   UPDATE: NOTE: these discounts and such on a receipt or invoice are not caclulated, they are manual. They will load from the prior values but we do not recalculate.   Also, the discount schedule cannot be changed and is obtained from the prior ticket