docparse-fetch-bills-node

1.2.1 • Public • Published

Docparse Fetch Bills

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

Installation

npm install -S docparse-fetch-bills-node

Usage

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) {
    console.dir(err)
    return
  }
  console.dir(reply)
})

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

Readme

Keywords

none

Package Sidebar

Install

npm i docparse-fetch-bills-node

Weekly Downloads

8

Version

1.2.1

License

BSD

Last publish

Collaborators

  • clewfirst