I've been very impressed with what a little thinking outside the box can accomplish using Monarch & Monarch Automator.
I ran into what I think is a dead-end today. I have a PDF input file of an invoice that contains 3 detail lines. The first two are items that were invoiced; the third is a freight surcharge which is a percentage of the extended price of the first two items.
I want to validate that the surcharge is indeed the amount it's supposed to be. In Monarch, I created a summary that summed the extended price of the commodity items and also included as a separate field the surcharge. In the summary output I can see these two values side by side and can visually tell whether they're equal or not. In another version of the summary, I created an expression as one of the fields to subtract the sum of the commodities from the surcharge, hopefully leaving zero.
On the Automator side, I'd like to conditionally export the surcharge based on whether it matched or didn't match what was expected. In the second version of the Monarch summary, that would mean export it if the value was zero or skip the export if it wasn't.
Not that it would make any difference in what I'm asking for, but the export I'd want to perform would be an ODBC update. If there was no discrepancy, I'd want to add a G/L account # to the surcharge detail record (which would trigger our ERP to post it).
I'm not sure what would best accomplish this. Allow filtering for Summaries? Allow "If()" functionality in Summary formulas (allowing me to return the G/L # or blank depending on the value)?
Monarch & Automator are very powerful, and I've figured out a way to do most of the things I need. But this one has me stumped.
Thanks,
Alan Hermann