Hi all -
I am currently building a POS system for my mom's (very small) business. This system is not designed to process payments (although that would be an awesome feature), but is simply meant to keep a record of transactions in order to more easily keep track of sales for tax purposes (she currently does this all with pen and paper, and excel terrifies her).
I am trying to design a system that can handle up to 20 unique items in an order, but that doesn't allow you to add an item until the first one is added. Once Item #1 is added, fields for item #2 are made visible. Then, at the bottom, the totals are summed in order to calculate sales tax and order total.
In order to facilitate this, I have 20 pre-made blocks to act as the form that needs to be filled out. I was hoping to sum the unit price variable in each of these blocks to calculate the order total, but because the variable is null the sum function spits out an error.
Currently, I am working around this by setting the initial value of the price variable to 0, but that doesn't look as pretty, and is also annoying to use since the app user has to delete the zeros in order to enter a price. I also considered a massive nested IF(), however that is obnoxious (although what I will probably end up doing in the end if there aren't any better ideas).
Any suggestions or workarounds?
Thank you!