Logs of Changes
Small CRUD of goods with storage of logs when changing goods. HTTP://u2586.blue.elastictech.org/log-price
The logs retain the old price, the percentage difference between the new price and the old and the status which is calculated as follows:
If the percentage difference exceeds 25%, the status will accept the state of warning.
If the percentage difference is negative, the status will accept the state of error.
In all other cases, the status will be normal.
The current date is also retained when the goods are changed.
#yii2 #PHP7 #mysql
The logs retain the old price, the percentage difference between the new price and the old and the status which is calculated as follows:
If the percentage difference exceeds 25%, the status will accept the state of warning.
If the percentage difference is negative, the status will accept the state of error.
In all other cases, the status will be normal.
The current date is also retained when the goods are changed.
#yii2 #PHP7 #mysql