B
Brian Carlson
I have created an invoice table (t_PCO) with numerous related tables
(t_PCOEquipment), (t_PCOLaborHours), (t_PCOMaterial). Often these invoices
are submitted to customers only to be returned with revisions. I am trying
to make it possible that one can choose to revise these invoices rather than
overwrite them and in addition I would like to be able to track the changes
made. Currently, I am using the invoice number as the primary key for the
main table and I believe that I could add a RevisionNum field which would be
used with the invoice number as the primary field, thus allowing me to group
these later. I am wondering if there is a way which I can: (1) make a copy
of all of the records from the various tables that is related to a particular
invoice and then (2) have all of these copies of the original records have
their RevisionNum field adjusted by 1. I believe that this approach would
work, but suggestions are very welcome. Please be forewarned; I am an
extreme novice. Thank you in advance.
Brian
(t_PCOEquipment), (t_PCOLaborHours), (t_PCOMaterial). Often these invoices
are submitted to customers only to be returned with revisions. I am trying
to make it possible that one can choose to revise these invoices rather than
overwrite them and in addition I would like to be able to track the changes
made. Currently, I am using the invoice number as the primary key for the
main table and I believe that I could add a RevisionNum field which would be
used with the invoice number as the primary field, thus allowing me to group
these later. I am wondering if there is a way which I can: (1) make a copy
of all of the records from the various tables that is related to a particular
invoice and then (2) have all of these copies of the original records have
their RevisionNum field adjusted by 1. I believe that this approach would
work, but suggestions are very welcome. Please be forewarned; I am an
extreme novice. Thank you in advance.
Brian