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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom fields to invoice, odergroup, supplier and user #516

Merged
merged 1 commit into from
Oct 28, 2017

Conversation

paroga
Copy link
Member

@paroga paroga commented Oct 12, 2017

No description provided.

Copy link
Member

@wvengen wvengen left a comment

Choose a reason for hiding this comment

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

Interesting idea! This could reduce some bloat as well :)

@@ -0,0 +1,7 @@
- if FoodsoftConfig[:custom_fields] && FoodsoftConfig[:custom_fields][type]
= f.simple_fields_for :custom_fields, defaults: { required: false } do |s|
- FoodsoftConfig[:custom_fields][:user].each do |options|
Copy link
Member

Choose a reason for hiding this comment

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

This should be type, right?

@@ -18,6 +18,7 @@
= f.input :order_howto, as: :text, input_html: {rows: 5}
= f.input :note, as: :text, input_html: {rows: 5}
= f.input :min_order_quantity
= render 'shared/custom_form_fields', f: f, type: :user
Copy link
Member

Choose a reason for hiding this comment

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

type supplier?

@wvengen wvengen added this to the 4.6 milestone Oct 27, 2017
@paroga paroga merged commit 75deec9 into foodcoops:master Oct 28, 2017
@paroga paroga deleted the custom_fields branch October 28, 2017 18:16
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