NirajShah4
5 years agoQrew Cadet
Relating a maximum % for a value to change from one table to another
I've got a table of "Materials" with a field for "Cost" of each material. I want to be able to structure this so that anytime the cost of an item is modified, it cannot be modified by a maximum percentage either higher or lower.
This maximum % number would be stored in another separate table, "Material Cost Modifications"; this table houses records for 5%, 10%, 15%, 20%, and Custom.
I want to be able to have my admin user select one of these records in the Material Cost Mods table (via checkbox) and when this "Active" record is selected, I need the percentage that this number represents to be pulled into the Materials table as the maximum percentage that the cost can be modified to.
I'm pretty sure this can be done but I've given myself a headache with coming up with the relational attributes to make this work or even if an automation or pipelines would be the best fit.
------------------------------
Niraj Shah
------------------------------
This maximum % number would be stored in another separate table, "Material Cost Modifications"; this table houses records for 5%, 10%, 15%, 20%, and Custom.
I want to be able to have my admin user select one of these records in the Material Cost Mods table (via checkbox) and when this "Active" record is selected, I need the percentage that this number represents to be pulled into the Materials table as the maximum percentage that the cost can be modified to.
I'm pretty sure this can be done but I've given myself a headache with coming up with the relational attributes to make this work or even if an automation or pipelines would be the best fit.
------------------------------
Niraj Shah
------------------------------