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

Is there a good way to calculate the totals while adding Items? #9

Closed
demogar opened this issue Dec 18, 2013 · 4 comments
Closed

Is there a good way to calculate the totals while adding Items? #9

demogar opened this issue Dec 18, 2013 · 4 comments

Comments

@demogar
Copy link

demogar commented Dec 18, 2013

Hi there.

Is there a good way to actually calculate the totals (subtotals, taxes, discounts, totals) while adding and modifying the items?

This is really easy to do with regular Rails, but I have no idea how to do this with ActiveAdmin. I guess there should be a "simple" way to make this work.

Thanks in advance!

@ianmurrays
Copy link
Owner

You mean with javascript?

@demogar
Copy link
Author

demogar commented Dec 18, 2013

@ianmurrays yup. Just need some guidance. I think that it would be probably a good idea to show the totals while adding items.

Any guidance is more than appreciated.

@ianmurrays
Copy link
Owner

Unfortunately I haven't worked with this gem (active_admin) for years now, so I don't really know how to add javascript to the views. :(

@demogar
Copy link
Author

demogar commented Dec 19, 2013

Ok, then. I'll try to see how I can actually implement this on my own. If I'm lucky, I'll put a PR.

We can close this ticket for now.

Cheers!

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

No branches or pull requests

2 participants