Created a new PackageController class to handle the creation, retrieval, update, and deletion of packages.
Modified the PriceCalculator class to handle multiple packages, calculate the price based on volumetric weight or actual weight, and consider the location variables 'From' and 'To'.
Updated the price_calculator_view file to allow users to add multiple packages and input the location variables.
Modified the AdminController class to update the standard price in the PriceCalculator class.
Added a getStandardPrice function to the PriceModel class to retrieve the standard price from the database.
Summary of Changes
Created PackageController class with functions for package management.
Modified PriceCalculator class to handle multiple packages and location variables.
Updated price_calculator_view file to allow multiple packages and input location variables.
Modified AdminController class to update standard price in PriceCalculator class.
Added getStandardPrice function to PriceModel class.
Please review and merge these changes.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
git checkout {pull_request.branch_name}
š Latest improvements to Sweep:
Use Sweep Map to break large issues into smaller sub-issues, perfect for large tasks like "Sweep (map): migrate from React class components to function components"
Getting Sweep to format before committing! Check out Sweep Sandbox Configs to set it up.
We released a demo of our chunker, where you can find the corresponding blog and code.
š” To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR implements the following changes:
Summary of Changes
Please review and merge these changes.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
š Latest improvements to Sweep:
š” To get Sweep to edit this pull request, you can: