UNPKG

theendsoaper

Version:

Access Untill Tills with SOAP from Node.js and parse the results as objects, some extra useful functions in as well.

18 lines 629 B
const print = require('../printobject'); module.exports = class ArticleItem { constructor(item){ this.id = item['Id']; this.articleId = item['ArticleId']; this.itemNumber = item['ItemNumber']; this.kind = item['Kind']; this.quantity = item['Quantity']; this.singlePrice = item['SinglePrice']; this.price = item['Price']; this.discount = item['Discount']; this.vat = item['Vat']; this.vatPercent = item['VatPercent']; this.text = item['Text']; this.hqId = item['HqId']; this.extra = item['Extra']; } }