# docparse-save-bill

> Save new a docparse bill in the database with given data

Latest version **1.1.1** (published 2013-02-12) · BSD license · 0 weekly downloads

## Install

```sh
npm install docparse-save-bill
pnpm add docparse-save-bill
yarn add docparse-save-bill
bun add docparse-save-bill
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2013-02-12 |
| First published | 2013-02-05 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | Noah Isaacson |
| Maintainers | clewfirst |
| Keywords | docparse, bill, save |

## Links

- npm: https://www.npmjs.com/package/docparse-save-bill
- Repository: https://github.com/nisaacson/docparse-save-bill
- npm.io page: https://npm.io/package/docparse-save-bill

## Dependencies (2)

- [moment](https://npm.io/package/moment.md) ~2.0.0
- [docparse-bill](https://npm.io/package/docparse-bill.md) ~1.1.1

## Recent versions

- 1.1.1 (latest) — 2013-02-12
- 1.1.0 — 2013-02-12
- 1.0.9 — 2013-02-07
- 1.0.8 — 2013-02-06
- 1.0.7 — 2013-02-06
- 1.0.6 — 2013-02-06
- 1.0.5 — 2013-02-05
- 1.0.4 — 2013-02-05
- 1.0.3 — 2013-02-05
- 1.0.2 — 2013-02-05
- 1.0.1 — 2013-02-05
- 1.0.0 — 2013-02-05

## README

# Docparse Save Bill
Save new a docparse bill in the database with given data

[![Build Status](https://travis-ci.org/nisaacson/docparse-save-bill.png)](https://travis-ci.org/nisaacson/docparse-save-bill)
[![Dependency Status](https://david-dm.org/nisaacson/docparse-save-bill/status.png)](https://david-dm.org/nisaacson/docparse-save-bill)
Dependency tracking by [David](https://david-dm.org/)

# Usage

```javascript
var saveBill = require('docparse-save-bill');
var moment = require('moment');
var mongoose = require('mongoose');
var ObjectId = mongoose.Types.ObjectId;
var data = {
  supplierID: new ObjectId(),
  customerID: new ObjectId(),
  loginID: new ObjectId(),
  hash: 'foo hash',
  supplierCode: 'FGS',
  billNumber: 'foo bill number',
  dataType: 'pdf',
  billDate: moment(),
  accountNumber: 'foo account number',
  textPages: ['foo page 1 text', 'bar page 2 text']
};

saveBill(queryParams, function(err, bill) {
  if (err) {
    inspect(err, 'error saveing bill')
    return;
  }
  if (!bill) {
    inspect('no bill found');
    return cb();
  }
  inspect(bill.toObject(), 'found bill');
});
```
## Installation
`npm install docparse-save-bill`

## Example Installation
`npm install docparse-save-bill mongoose moment eyespect`

---
_Source: https://npm.io/package/docparse-save-bill · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
