Skip to content

Commit

Permalink
Modified updateStandardPrice function to also upda
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Aug 22, 2023
1 parent b8c8d83 commit cb9919d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ public function updateStandardPrice($newPrice) {
// Assuming there is a model 'PriceModel' with a function 'updateStandardPrice' that updates the price in the database
$this->load->model('PriceModel');
$this->PriceModel->updateStandardPrice($newPrice);

// Also update the standard price in the PriceCalculator class
$this->load->library('PriceCalculator');
$this->PriceCalculator->updateStandardPrice($newPrice);
}
}
?>
Expand Down

0 comments on commit cb9919d

Please sign in to comment.