1.6.0 • Published 6 months ago
invoice-price-checker v1.6.0
Invoice Price Checker
Intro
this package takes a list of invoice files and compares the items in them against a store database of items it outputs and opens an html file with summaries. Summaries include:
- price change
- new item
- no change
- shorted items
Installation
npm i g invoice-price-checker you must also have chrome installed so the html file will open after generating
Usage
invoicePriceChecker i:demo/in o:demo/out v:sobeys d:demo/data/ALLPLUExport.TXT c:1 t:2.5
Where:
- i = folder path for invoices
- o = output path for moving read files AND generating html
- v = what vendor invoices you are testing prices for
- d = file path to the output of the breakpoint database via capture
- c = vendor code (ie, 1 for macdonalds/sobeys, or whatever it is in your breakpoint system)
- t = percent change threshold (ie, 2.5 is 2.5% change from invoice price to database price)
Folder example: myinvoices/ sobeys/ frozeninvoice.pdf freshmeat.pdf grocery.pdf