UNPKG

docparse-dumpinvoices

Version:

takes a list of couchdb invoice ids and exports the data contained within those invoices to an Excel spreadsheet

14 lines (12 loc) 302 B
var anchors = [ /^late pmt chg credit$/i, /^cancel late payment chg$/i, /^cancel late payment charges?$/i ] module.exports = function (cost) { var description = cost.description var isMatch = anchors.some(function (anchor) { return anchor.test(description) }) return isMatch }