1.1.0 • Published 11 years ago

docparse-get-distinct-bill-field v1.1.0

Weekly downloads
9
License
-
Repository
github
Last release
11 years ago

Docparse Get Distinct Bill Field

Find all the distinct values for a given field from all docparse bill in the database.

Build Status Dependency Status Dependency tracking by David

Usage

var getValues = require('docparse-get-distinct-bill-field')
var queryParams = {
  supplierCode: 'FGS',
  billNumber: 'foo bill number'
};

var data = {
  queryParams: queryParams,
  field: 'bill_number'
}
getValues(data, function(err, values) {
  if (err) {
    inspect(err, 'error finding getting distinct values')
    return;
  }
  if (!bill) {
    inspect('no bill found');
    return cb();
  }
  inspect(values, 'found distinct values');
});

Installation

npm install docparse-get-distinct-bill-field

Example Installation

npm install docparse-get-distinct-bill-field eyespect