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) 301 B
var inspect = require('eyespect').inspector(); var anchors = [ /^late pmt chg$/i, /^late payment charges?$/i ] module.exports = function (cost) { var description = cost.description var isMatch = anchors.some(function (anchor) { return anchor.test(description) }) return isMatch }