<commit_before>'use strict';

var BaseModel = require('model-toolkit').BaseModel;
var InventoryDocumentItem = require('./inventory-document-item');

module.exports = class InventoryDocument extends BaseModel {
    constructor(source) {
        super('inventory-document', '1.0.0');

        // Define properties.
        this.code = '';
        this.date = new Date();

        this.referenceNo = '';
        this.referenceType = '';
        
        this.type = ''; // IN, OUT, RET-IN, RET-OUT

        this.storageId = {};
        this.storageCode = "";
        this.storageName = "";

        this.items = [];
        this.remark = '';

        this.copy(source);

        var _items = [];
        for (var item of this.items) {
            _items.push(new InventoryDocumentItem(item));
        }
        this.items = _items;
    }
};<commit_msg>update models<commit_after>'use strict';

var BaseModel = require('model-toolkit').BaseModel;
var InventoryDocumentItem = require('./inventory-document-item');

module.exports = class InventoryDocument extends BaseModel {
    constructor(source) {
        super('inventory-document', '1.0.0');

        // Define properties.
        this.code = '';
        this.date = new Date();

        this.referenceNo = '';
        this.referenceType = '';

        this.type = ''; // IN, OUT, RET-IN, RET-OUT

        this.storageId = {};
        this.storageCode = "";
        this.storageName = "";

        this.items = [];
        this.remark = '';

        this.copy(source);

        var _items = [];
        for (var item of this.items) {
            _items.push(new InventoryDocumentItem(InventoryDocumentItem.data));
        }
        this.items = _items;
    }
};
{'fraction_non_alphanumeric': 0.1477803738317757, 'fraction_numerical': 0.0035046728971962616, 'mean_word_length': 2.0644007155635062, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7373394', 'n_tokens_mistral': 490, 'n_tokens_neox': 470, 'n_words': 93}