Closed Elyrith closed 8 years ago
Hi @Elyrith -
Thanks for sending this in! I'm going to do quite a bit of testing before merging; any change that can affect the numbers in the journal needs as much scrutiny as we can muster. Give me the weekend and I'll get back to you though.
Thanks again!
I already found an error, but I think I fixed it: The previous length of form_lines.quantity was "10, 0", so since we're adding 3 decimals it should now be "13, 3".
(I should mention that I'm a very amateur accountant, so don't skimp on the scrutiny. Assume nothing.)
This is similar to some work I've already done, check/diff my repo if you feel so inclined. https://github.com/cdp1337/beansbooks/tree/eval-master
Hey @Elyrith -
This PR looks pretty good! I've made a few comments on it for some minor changes, but once I have those and the SQL file mentioned below, we should be able to merge.
One thing that is missing from the PR is changing this line in the installation SQL: https://github.com/system76/beansbooks/blob/master/install_files/database_structure.sql#L118
We treat that SQL as the canonical source for the database ( i.e. as it should be with each released version ), and then we use the update scripts to tick everything up to that point should someone update their code. Go ahead and change the line in that to be a decimal(13,3)
like you have in your update script.
One other thing I want to point out that you did correctly so that anyone watching can learn. You created the update script for the next patch release version without bumping the actual stored version in beans.php. This is correct for a few reasons: 1) It allows us to pull and test the PR by individually running the update. 2) We can merge more changes into that update script if we decide more features should hit this release. 3) If we decide the next release is actually a minor release ( or even a major release ), then it's easier for us to update the develop branch with that info and test accordingly.
So thank you!
All changes made as per your details.
Awesome - thanks! I'll test again just to be safe and then merge if we're good.
This looks good! Thanks for the pull request! We've got a few more minor fixes to move into the develop branch, but after that we'll stage this as a minor version release ( v1.5 ) - as the quantities is a significant feature improvement - so thank you!
I'm glad I can help! Thank YOU for this amazing piece of software!
This is a first attempt and I'm very new. I tried to make sure I got all the changes from #120, but there are a few things I can't test:
As for my testing, this seems to work for Customers > Sales Orders, Customers > Invoices, Vendors > Expenses, Vendors > Purchase Orders.
This is an attempt to complete issue #120.