Skip to content

Add products and contracts (WIP!)#1490

Draft
CloCkWeRX wants to merge 20 commits intomasterfrom
add-products-and-contracts
Draft

Add products and contracts (WIP!)#1490
CloCkWeRX wants to merge 20 commits intomasterfrom
add-products-and-contracts

Conversation

@CloCkWeRX
Copy link
Copy Markdown
Member

@CloCkWeRX CloCkWeRX commented Jul 26, 2025

image

Basic product catalog

  • Create
  • Update
  • Index
  • Delete
  • Tests
  • Demo data
  • Translations

Contract list

  • Create
  • Update
  • Index
  • Delete
  • Tests
  • Demo data
  • Translations

Describe contracted products in contract

  • Create
  • Update
  • Index
  • Delete
  • Tests
  • Demo data
  • Translations


# Only allow a list of trusted parameters through.
def contract_params
params.require(:contract).permit(:start_date, :end_date, :status, :contract_original_text, :account_id)

Check failure

Code scanning / Brakeman

Potentially dangerous key allowed for mass assignment. Error

Potentially dangerous key allowed for mass assignment.
Copy link
Copy Markdown
Contributor

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RuboCop found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@CloCkWeRX
Copy link
Copy Markdown
Member Author

TODO: Review https://github.com/tractis/crm_products and evaluate is building off this base is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants