Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement multiple packages, location variables, and standard price update #5

Merged
merged 5 commits into from
Aug 22, 2023

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Aug 22, 2023

Description

This PR implements the following changes:

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
1 participant