node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


Docparse Fetch Bills

get all existing bill numbers for a given supplier code from the database


npm install -S docparse-fetch-bills-node


var fetchBills = require('docparse-fetch-bills-node')
var fetchData = {
  db: db, // a cradle db connection 
  supplierCode: 'NGE' // Ngrid Electric Supplier Code 
fetchBills(fetchData, function (err, reply) {
  if (err) {

The reply will be an array of bill numbers. This array might be empty if there are no bills in the database for the input supplier code