docparse-get-distinct-bill-field

1.1.0 • Public • Published

Docparse Get Distinct Bill Field

Find all the distinct values for a given field from all docparse bill in the database. You must supply both queryParams and a field value in the data paramater when calling this module. See below for an example

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1
  • 1.0.4
    0
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i docparse-get-distinct-bill-field

Weekly Downloads

1

Version

1.1.0

License

BSD

Last publish

Collaborators

  • clewfirst