docparse-add-invoice

    1.1.1 • Public • Published

    Docparse Add Invoice

    After saving an invoice, add the _id to the container bill

    Build Status Dependency Status Dependency tracking by David

    Usage

    var eyespect = require('eyespect').inspector()
    var mongoose = require('mongoose');
    var ObjectId = mongoose.Types.ObjectId;
    var createInvoice = require('docparse-default-upload');
    var createBill = require('docparse-default-bill');
    var addInvoice = require('docparse-add-invoice');
     
    var invoice = createInvoice();
    var bill = createBill();
    var addData = {
      invoiceID: invoice._id,
      bill: bill
    }
    addInvoice(addData, function(err, bill) {
      if (err) {
        inspect(err, 'error adding invoice ids to upload')
        return;
      }
      inspect(bill.toObject(), 'bill after adding invoice ids');
    });

    Installation

    npm install docparse-add-invoice

    Example Installation

    npm install docparse-add-invoice docparse-default-bill docparse-default-invoice eyespect

    Keywords

    none

    Install

    npm i docparse-add-invoice

    DownloadsWeekly Downloads

    15

    Version

    1.1.1

    License

    BSD

    Last publish

    Collaborators

    • clewfirst