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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.1
    0
    • latest

Version History

Package Sidebar

Install

npm i docparse-fetch-bills-node

Weekly Downloads

1

Version

1.2.1

License

BSD

Last publish

Collaborators

  • clewfirst