Re: remove gaps in a table

From: Thomas 'PointedEars' Lahn <PointedEars_at_web.de>
Date: Wed, 27 Dec 2017 21:33:42 +0100
Message-ID: <2424887.mvXUDI8C0e_at_PointedEars.de>


J.O. Aho wrote:

> On 12/21/17 19:02, Thomas 'PointedEars' Lahn wrote:

>> J.O. Aho wrote:
>>> On 12/20/17 20:27, J�rgen Exner wrote:
>>>> On Wed, 20 Dec 2017 19:20:09 +0100, "J.O. Aho" <user_at_example.net> wrote
>>>> in comp.databases.mysql:
>>>>> an order is "deleted", you generate a new order which is the complete
>>>>> opposite of the original order, so if the original order is for 3
>>>>> nails of a value of 3 dollars, then the new one is for -3 nails for
>>>>> the value of -3 dollars. This way you have gapless order numbers for
>>>>> the accounting department and the numbers would be correct from an
>>>>> accounting point of view.
>>>> That is nuts. How would e.g. shipping package and send -3 nails?
>>> Yes, but you have a nuts requirement in the first place and accountants
>>> seems to like things nuts like this. ;)
>> Your logic is flawed.  Consider shipping costs, for example.

>
> No, it's not, if the order is deleted, then you balance the account
> again with a negative value on the shipping.
>
> This is how accounting works, make something simple to something more
> complicated.

You must be joking.

-- 
PointedEars
Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn>
Twitter: _at_PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
Received on Wed Dec 27 2017 - 21:33:42 CET

Original text of this message