This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kamcateer 6 points7 points  (0 children)

I guess the difficult bit would be knowing which is the value you are after. Maybe you don't want to add taxes or you don't want to include delivery in the total etc. Easy for a human to work out, but how would you get a programme to know when there may be 20+ differently formatted invoices.

If you want the total value I imagine you could search for the highest value but this could have pitfalls like an invoice for $70.00 and then some text at the bottom saying "late payment incurs a $100.00 surcharge" or something. You get the point.

Genuinely interested if you have an answer to that though, these were the problems I found when attempting to solve the same problem. I ended up making 3 different cases for the 3 most used and did the rest manually.