docparse-upload-set-matches

1.2.0 • Public • Published

Docparse Upload Set Matches

After parsing an upload, add all the matched invoice ids to the invoices field of the upload docment. The upload should be an instance of docparse-upload.

Dependency Status Dependency tracking by David

Usage

var eyespect = require('eyespect').inspector()
var upload = {
  invoiceIDs: []
var invoice1ID = 'fooInvoiceID1'
var invoice2ID = 'barInvoiceID2'
var invoiceIDs = [invoice1ID, invoice2ID];
var data = {
  invoiceIDs: [invoiceIDs],
  upload: upload
};
setMatches(data, function(err, upload) {
  if (err) {
    inspect(err, 'error adding invoice ids to upload')
    return;
  }
  inspect(upload, 'upload after adding invoice ids');
});

Installation

npm install docparse-upload-set-matches

Example Installation

npm install docparse-upload-set-matches eyespect

Readme

Keywords

none

Package Sidebar

Install

npm i docparse-upload-set-matches

Weekly Downloads

1

Version

1.2.0

License

BSD

Last publish

Collaborators

  • clewfirst