UNPKG

docparse-dumpinvoices

Version:

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

15 lines (14 loc) 391 B
var isLatePaymentChargeCost = require('./isLatePaymentChargeCost') var isLatePaymentCreditCost = require('./isLatePaymentCreditCost') module.exports = function (costs) { var filtered = costs.filter(function (cost) { if (isLatePaymentChargeCost(cost)) { return false } if (isLatePaymentCreditCost(cost)) { return false } return true }) return filtered }