Calc Invoices to Pay?

Kenneth Brody kenbrody at bestweb.net
Tue Mar 4 08:05:43 PST 2008


Quoting Fairlight (Tue, 4 Mar 2008 10:47:54 -0500):

> The honourable and venerable Stanley Barnett spoke thus:
>>
>> > he's matching one sum against multiple cheques.
>>
>> No, I'm looking for "all the unpaid and posted invoices" whose totals
>> adds up to the check payment amount.
>
> Yeah, but if you have a pool of 35 invoices that are unpaid and get a lump
> sum payment of $1074.37, the way I understand it you're looking to
> automatically find the combination of invoices that equals that amount and
> flag them paid.
>
> Which is what I -meant- by one sum (the payment) against multiple cheques
> (actually invoices, now that I reread).  But the permutation game is a
> headache and 3/4.

Oh, it can't be all that bad.  After all, if you have 35 invoices, there
are only 34,359,738,367 possible combinations.  (Though you don't actually
have to check all of them if you code it correctly.)

-- 
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list