So I'm a semester into a comp sci degree... just threw my first 3 files ever up onto github as an example.
I started trying to develop this cash drawer counter add-on (not sure how many could use it; maybe not many)
Main help wanted is w/ any PseudoCode advice for pulling the date specific payment method cash transactions so I can use this drawer counter to do an opening count + cash sales revenue - closing count = cash drawer variance.
Other advice perceived as a need would be...
slight help w/ the form submit (refresh asks about resubmit; functionally it dumps old data, but the browser still prompts)
should I leave this add-on as a separate databases (I changed the username pw in the github example) I was wondering if it'd be possible to define a $db2 object and then hook in like $db2->Execute($sql); (I did a little digging on the forum on multiple databases but didn't see an example of any tackling of it.) (I just probably just add a table to my current db, but was just reluctant to)
basically anything that looks like it'd be worth providing constructive criticism.
Right now I was thinking of building an array w/ the date as an index and using the 2 databases to feed into that array like...
$datedrawercounts[2018-01-30]['open'] = $150
$datedrawercounts[2018-01-30]['sales'] = $100
$datedrawercounts[2018-01-30]['close'] = $252
$variance = open + sales - close;
therefore drawer's plus 2 dollars.
...but wasn't sure if this is an odd way for some reason to do this. Plus formatting dates sucks.
https://github.com/wolfderby/zencart_drawer_counter
Bookmarks