Person.js 676 Bytes
/* global console */
define(
    [
        'ofbiz/model/Base',
        'ofbiz/model/Party',
    ],
    function(
        Base,
        Party
    ) {
        'use strict';
        console.log('ofbiz/model/Person: loaded');
        return Party.extend({
            defaults: {
                firstName: null,
                lastName: null,
            },
            validation: {
                firstName: [
                    Base.createRequiredValidator('ofbiz/model/Person.firstName'),
                ],
                lastName: [
                    Base.createRequiredValidator('ofbiz/model/Person.lastName'),
                ],
            },
        });
    }
);