Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the Cash count section, there you can add up all the coins/cash in your till, but this is specific to US users and doesn't support other values (like the Canadian $2 coin). This should be improved to be configurable, as lots of places could have different cash values.
Latest changes can be found in this PR: https://github.com/AcroMedia/commerce_pos/pull/42.
Comments
Comment #2
smccabe CreditAttribution: smccabe at Acro Commerce commentedComment #3
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedFor making this configuration, I'm thinking we add the configuration section to the Reporting page. By default, the currency type would be dollars and we add the denominations that currently exist. Then, we give the user the option to add their own additional denominations to it. We also allow the user to add a different currency type and add the denominations that fall under it.
I don't know how big this change should get, should we make this its own entity or just add a couple of tables like this:
Any suggestions? For simplicity's sake and for getting this rolled out as quickly as possible, I'm leaning towards the latter.
Comment #4
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedComment #5
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedComment #6
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedAdded module to provide an interface for configuring denominations.
Comment #7
smccabe CreditAttribution: smccabe at Acro Commerce commentedOverall I think the architecture is good, some small nitpicks so far.
Needs descriptive text added
Can just say "delete" doesn't need to say denomination, makes it more consistent
Missing breadcrumb text to get back to other settings
Comment #8
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedAdding new patch with changes made from comments in #7.
Comment #9
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedComment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedI've reviewed the code and suggested some changes on the PR:
https://github.com/AcroMedia/commerce_pos/pull/36
Overall, it looks very good. I'm going to try testing it now.
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedI tried to enable the module and the commerce_pos_keypad module but got an error because of the duplicate .install file as mentioned in the code review. Removing the commerce_pos_keypad.install file fixed it for me.
The Delete Domination issue that smccabe pointed out is still present. I guess the new patch in #8 needs to be applied to the PR still?
Can you roll the patch from #8 into the PR, or submit an interdiff? Thanks :)
Comment #12
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedThanks for the review @wildkatana. I need to update the PR. I'll update asap.
Comment #13
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedNew patch with updated changes from awesome review from @wildkatana in PR.
Comment #14
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedAdded fix to prohibit a denomination type from being deleted if it is part of the configured denom types. PR also updated.
Comment #15
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedComment #16
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedUpdate patch from recommendations in PR.
Comment #17
smccabe CreditAttribution: smccabe at Acro Commerce commentedComment #19
smccabe CreditAttribution: smccabe at Acro Commerce commentedCleaned up some phpcs issues and merged in!
Great job @shabana.navas and @wildkatana! Big patch but it looks very good.