Skip to content

Loading…

catching up #60

Merged
merged 18 commits into from

2 participants

@mikerodonnell89

No description provided.

@mikerodonnell89 mikerodonnell89 merged commit a3fe153 into mikerodonnell89:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2013
  1. added sale type list

    committed
  2. added terms test

    committed
  3. terms list added

    committed
  4. Terms setup stuff

    committed
Commits on Apr 3, 2013
  1. customer group setup workspace added. I would like to add a list of c…

    committed
    …ustomers in the grouers in the group to the workspace, but there is a problem with the db/orm for the customers attribute
  2. Merge branch 'xtuple'

    committed
Commits on Apr 4, 2013
  1. Merge branch 'xtuple'

    committed
  2. @shackbarth

    Merge pull request #231 from mikerodonnell89/listsWorkspaces

    shackbarth committed
    lists and setup workspaces
View
4 enyo-client/application/source/en/strings.js
@@ -148,6 +148,7 @@ var lang = XT.stringsFor("en_US", {
"_data": "Data",
"_dataState": "Data State",
"_date": "Date",
+ "_days": "Days",
"_deactivate": "Deactivate",
"_default": "Default",
"_defaults": "Defaults",
@@ -379,6 +380,7 @@ var lang = XT.stringsFor("en_US", {
"_propername": "Propername",
"_prospect": "Prospect",
"_prospects": "Prospects",
+ "_proximo": "Proximo",
"_public": "Public",
"_purchaseOrderNumber": "Purchase Order",
"_required": "Required",
@@ -401,6 +403,7 @@ var lang = XT.stringsFor("en_US", {
"_roles": "Roles",
"_salesRep": "Sales Rep",
"_saleType": "Sale Type",
+ "_saleTypes": "Sale Types",
"_schedule": "Schedule",
"_scheduleDate": "Schedule Date",
"_secondaryContact": "Secondary Contact",
@@ -417,6 +420,7 @@ var lang = XT.stringsFor("en_US", {
"_shipVia": "Ship Via",
"_shipTo": "Ship To",
"_shipZone": "Ship Zone",
+ "_shipZones": "Ship Zones",
"_shippingNotes": "Shipping Notes",
"_site": "Site",
"_siteCode": "Site Code",
View
12 enyo-client/application/source/models/customer.js
@@ -727,6 +727,18 @@ white:true*/
model: XM.ShipZone
});
+
+ /**
+ @class
+
+ @extends XM.Collection
+ */
+ XM.CustomerGroupCollection = XM.Collection.extend({
+ /** @scope XM.CustomerGroupCollection.prototype */
+
+ model: XM.CustomerGroup
+
+ });
/**
@class
View
16 enyo-client/application/source/models/static.js
@@ -145,4 +145,20 @@ white:true*/
XM.characteristicTypes.add(characteristicType);
}
+ // Terms Type
+ var termsTypeJson = [
+ { id: "D", name: "_days".loc() },
+ { id: "P", name: "_proximo".loc() }
+ ];
+ XM.TermsTypeModel = Backbone.Model.extend({
+ });
+ XM.TermsTypeCollection = Backbone.Collection.extend({
+ model: XM.TermsTypeModel
+ });
+ XM.termsTypes = new XM.TermsTypeCollection();
+ for (i = 0; i < termsTypeJson.length; i++) {
+ var termsType = new XM.TermsTypeModel(termsTypeJson[i]);
+ XM.termsTypes.add(termsType);
+ }
+
}());
View
11 enyo-client/application/source/widgets/picker.js
@@ -414,6 +414,17 @@ regexp:true, undef:true, trailing:true, white:true */
{attribute: 'code'}
]
});
+
+ // ..........................................................
+ // TERMS TYPE
+ //
+
+ enyo.kind({
+ name: "XV.TermsTypePicker",
+ kind: "XV.PickerWidget",
+ collection: "XM.termsTypes",
+ nameAttribute: "name"
+ });
// ..........................................................
// UNIT
View
9 enyo-client/database/orm/models/customer.json
@@ -1557,15 +1557,6 @@
"type": "Number",
"column": "custgrp_descrip"
}
- },
- {
- "name": "customers",
- "toMany": {
- "isNested": true,
- "type": "CustomerGroupCustomer",
- "column": "custgrp_id",
- "inverse": "customerGroup"
- }
}
],
"isSystem": true
View
5 enyo-client/extensions/source/sales/client/en/strings.js
@@ -27,11 +27,15 @@ var lang = XT.stringsFor("en_US", {
"_creditMemo": "Credit Memo",
"_current": "Current",
"_currentDate": "Current Date",
+ "_customerGroup": "Customer Groups",
+ "_cutOffDay": "Cutoff Day",
"_dateControl": "Date Control",
"_disableSalesOrderPriceOverride": "Disallow Override of Sale Price on Sales Order",
+ "_discountDays": "Discount Days",
"_doNotUpdate": "Do Not Update",
"_enableSOShipping": "Enable Shipping Interface from Sales Order screen",
"_firmSalesOrdersWhenAddedToPackingList": "Firm Sales Orders when added to Packing List Batch",
+ "_freightClass": "Freight Class",
"_freightPricing": "Freight Pricing",
"_hideSOMiscCharge": "Hide Misc. Charge on Sales Order screen",
"_ignoreIfDiscounted": "Ignore if Discounted",
@@ -56,6 +60,7 @@ var lang = XT.stringsFor("en_US", {
"_shipDate": "Ship Date",
"_showQuotesAfterConverted": "Show Quotes after Conversion to SO",
"_showSaveAndAddbutton": "Show 'Save and Add to Packing List' Button on Sales Order",
+ "_termsType": "Terms Type",
"_update": "Update",
"_useCalculatedFreightPricing": "Use calculated Freight values by default",
"_usePromiseDates": "Enable Promise Dates"
View
6 enyo-client/extensions/source/sales/client/postbooks.js
@@ -19,6 +19,12 @@ trailing:true white:true*/
panels = [
{name: "siteList", kind: "XV.SiteList"},
{name: "siteTypeList", kind: "XV.SiteTypeList"},
+ {name: "saleTypeList", kind: "XV.SaleTypeList"},
+ {name: "shipZoneList", kind: "XV.ShipZoneList"},
+ {name: "salesRepList", kind: "XV.SalesRepList"},
+ {name: "termsList", kind: "XV.TermsList"},
+ {name: "customerGroupList", kind: "XV.CustomerGroupList"},
+ {name: "freightClassList", kind: "XV.FreightClassList"},
{name: "itemSiteList", kind: "XV.ItemSiteList"},
{name: "costCategoryList", kind: "XV.CostCategoryList"},
{name: "plannerCodeList", kind: "XV.PlannerCodeList"},
View
188 enyo-client/extensions/source/sales/client/views/list.js
@@ -0,0 +1,188 @@
+/*jshint bitwise:true, indent:2, curly:true eqeqeq:true, immed:true,
+latedef:true, newcap:true, noarg:true, regexp:true, undef:true,
+trailing:true white:true*/
+/*global XT:true, XM:true, XV:true, _:true, window: true, enyo:true, Globalize:true*/
+
+(function () {
+
+ // ..........................................................
+ // CUSTOMER GROUP
+ //
+
+ enyo.kind({
+ name: "XV.CustomerGroupList",
+ kind: "XV.List",
+ label: "_customerGroup".loc(),
+ collection: "XM.CustomerGroupCollection",
+ parameterWidget: "XV.CustomerGroupListParameters",
+ query: {orderBy: [
+ {attribute: 'name'}
+ ]},
+ components: [
+ {kind: "XV.ListItem", components: [
+ {kind: "FittableColumns", components: [
+ {kind: "XV.ListColumn", classes: "short",
+ components: [
+ {kind: "XV.ListAttr", attr: "name", isKey: true}
+ ]},
+ {kind: "XV.ListColumn", classes: "last", fit: true, components: [
+ {kind: "XV.ListAttr", attr: "description"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelList("XM.CustomerGroupRelation", "XV.CustomerGroupList");
+
+ // ..........................................................
+ // FREIGHT CLASS
+ //
+
+ enyo.kind({
+ name: "XV.FreightClassList",
+ kind: "XV.List",
+ label: "_freightClass".loc(),
+ collection: "XM.FreightClassCollection",
+ parameterWidget: "XV.FreightClassListParameters",
+ query: {orderBy: [
+ {attribute: 'code'}
+ ]},
+ components: [
+ {kind: "XV.ListItem", components: [
+ {kind: "FittableColumns", components: [
+ {kind: "XV.ListColumn", classes: "short",
+ components: [
+ {kind: "XV.ListAttr", attr: "code", isKey: true}
+ ]},
+ {kind: "XV.ListColumn", classes: "last", fit: true, components: [
+ {kind: "XV.ListAttr", attr: "description"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelList("XM.FreightClassRelation", "XV.FreightClassList");
+
+ // ..........................................................
+ // SALE TYPE
+ //
+
+ enyo.kind({
+ name: "XV.SaleTypeList",
+ kind: "XV.List",
+ label: "_saleTypes".loc(),
+ collection: "XM.SaleTypeCollection",
+ parameterWidget: "XV.SaleTypeListParameters",
+ query: {orderBy: [
+ {attribute: 'code'}
+ ]},
+ components: [
+ {kind: "XV.ListItem", components: [
+ {kind: "FittableColumns", components: [
+ {kind: "XV.ListColumn", classes: "short",
+ components: [
+ {kind: "XV.ListAttr", attr: "code", isKey: true}
+ ]},
+ {kind: "XV.ListColumn", classes: "last", fit: true, components: [
+ {kind: "XV.ListAttr", attr: "description"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelList("XM.SaleTypeRelation", "XV.SaleTypeList");
+
+ // ..........................................................
+ // SALES REP
+ //
+
+ enyo.kind({
+ name: "XV.SalesRepList",
+ kind: "XV.List",
+ label: "_salesRep".loc(),
+ collection: "XM.SalesRepCollection",
+ parameterWidget: "XV.SalesRepListParameters",
+ query: {orderBy: [
+ {attribute: 'number'}
+ ]},
+ components: [
+ {kind: "XV.ListItem", components: [
+ {kind: "FittableColumns", components: [
+ {kind: "XV.ListColumn", classes: "short",
+ components: [
+ {kind: "XV.ListAttr", attr: "number", isKey: true}
+ ]},
+ {kind: "XV.ListColumn", classes: "last", fit: true, components: [
+ {kind: "XV.ListAttr", attr: "name"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelList("XM.SalesRepRelation", "XV.SalesRepList");
+
+ // ..........................................................
+ // SHIP ZONE
+ //
+
+ enyo.kind({
+ name: "XV.ShipZoneList",
+ kind: "XV.List",
+ label: "_shipZones".loc(),
+ collection: "XM.ShipZoneCollection",
+ parameterWidget: "XV.ShipZoneListParameters",
+ query: {orderBy: [
+ {attribute: 'name'}
+ ]},
+ components: [
+ {kind: "XV.ListItem", components: [
+ {kind: "FittableColumns", components: [
+ {kind: "XV.ListColumn", classes: "short",
+ components: [
+ {kind: "XV.ListAttr", attr: "name", isKey: true}
+ ]},
+ {kind: "XV.ListColumn", classes: "last", fit: true, components: [
+ {kind: "XV.ListAttr", attr: "description"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelList("XM.ShipZoneRelation", "XV.ShipZoneList");
+
+ // ..........................................................
+ // TERMS
+ //
+
+ enyo.kind({
+ name: "XV.TermsList",
+ kind: "XV.List",
+ label: "_terms".loc(),
+ collection: "XM.TermsCollection",
+ parameterWidget: "XV.TermsListParameters",
+ query: {orderBy: [
+ {attribute: 'code'}
+ ]},
+ components: [
+ {kind: "XV.ListItem", components: [
+ {kind: "FittableColumns", components: [
+ {kind: "XV.ListColumn", classes: "short",
+ components: [
+ {kind: "XV.ListAttr", attr: "code", isKey: true}
+ ]},
+ {kind: "XV.ListColumn", classes: "last", fit: true, components: [
+ {kind: "XV.ListAttr", attr: "description"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelList("XM.TermsRelation", "XV.TermsList");
+
+}());
View
1 enyo-client/extensions/source/sales/client/views/package.js
@@ -1,3 +1,4 @@
enyo.depends(
+ "list.js",
"workspace.js"
);
View
166 enyo-client/extensions/source/sales/client/views/workspace.js
@@ -154,7 +154,7 @@ trailing:true white:true*/
{kind: "XV.NumberWidget", attr: "SOCreditLimit",
label: "_creditLimit".loc()},
{kind: "XV.InputWidget", attr: "SOCreditRate",
- label: "_creditRating".loc()},
+ label: "_creditRating".loc()}
]}
]}
]}
@@ -172,5 +172,169 @@ trailing:true white:true*/
XV.appendExtension("XV.OpportunityWorkspace", extensions);
};
+
+ // ..........................................................
+ // CUSTOMER GROUP
+ //
+
+ enyo.kind({
+ name: "XV.CustomerGroupWorkspace",
+ kind: "XV.Workspace",
+ title: "_customerGroup".loc(),
+ model: "XM.CustomerGroup",
+ components: [
+ {kind: "Panels", arrangerKind: "CarouselArranger",
+ fit: true, components: [
+ {kind: "XV.Groupbox", name: "mainPanel", components: [
+ {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
+ {kind: "XV.ScrollableGroupbox", name: "mainGroup",
+ classes: "in-panel", components: [
+ {kind: "XV.InputWidget", attr: "name"},
+ {kind: "XV.InputWidget", attr: "description"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelWorkspace("XM.CustomerGroup", "XV.CustomerGroupWorkspace");
+
+ // ..........................................................
+ // FREIGHT CLASS
+ //
+
+ enyo.kind({
+ name: "XV.FreightClassWorkspace",
+ kind: "XV.Workspace",
+ title: "_freightClass".loc(),
+ model: "XM.FreightClass",
+ components: [
+ {kind: "Panels", arrangerKind: "CarouselArranger",
+ fit: true, components: [
+ {kind: "XV.Groupbox", name: "mainPanel", components: [
+ {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
+ {kind: "XV.ScrollableGroupbox", name: "mainGroup",
+ classes: "in-panel", components: [
+ {kind: "XV.InputWidget", attr: "code"},
+ {kind: "XV.InputWidget", attr: "description"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelWorkspace("XM.FreightClass", "XV.FreightClassWorkspace");
+
+ // ..........................................................
+ // SALE TYPE
+ //
+
+ enyo.kind({
+ name: "XV.SaleTypeWorkspace",
+ kind: "XV.Workspace",
+ title: "_saleType".loc(),
+ model: "XM.SaleType",
+ components: [
+ {kind: "Panels", arrangerKind: "CarouselArranger",
+ fit: true, components: [
+ {kind: "XV.Groupbox", name: "mainPanel", components: [
+ {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
+ {kind: "XV.ScrollableGroupbox", name: "mainGroup",
+ classes: "in-panel", components: [
+ {kind: "XV.InputWidget", attr: "code"},
+ {kind: "XV.InputWidget", attr: "description"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelWorkspace("XM.SaleType", "XV.SaleTypeWorkspace");
+
+ // ..........................................................
+ // SALES REP
+ //
+
+ enyo.kind({
+ name: "XV.SalesRepWorkspace",
+ kind: "XV.Workspace",
+ title: "_salesRep".loc(),
+ model: "XM.SalesRep",
+ components: [
+ {kind: "Panels", arrangerKind: "CarouselArranger",
+ fit: true, components: [
+ {kind: "XV.Groupbox", name: "mainPanel", components: [
+ {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
+ {kind: "XV.ScrollableGroupbox", name: "mainGroup",
+ classes: "in-panel", components: [
+ {kind: "XV.InputWidget", attr: "number"},
+ {kind: "XV.InputWidget", attr: "name"},
+ {kind: "XV.NumberWidget", attr: "commission"}
+ //method is a 1-char column on the sales rep table, but it looks like it's unused?
+ // column emp_id is deprecated
+ //enhanced commissions widget?
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelWorkspace("XM.SalesRep", "XV.SalesRepWorkspace");
+
+ // ..........................................................
+ // SHIP ZONE
+ //
+
+ enyo.kind({
+ name: "XV.ShipZoneWorkspace",
+ kind: "XV.Workspace",
+ title: "_shipZone".loc(),
+ model: "XM.ShipZone",
+ components: [
+ {kind: "Panels", arrangerKind: "CarouselArranger",
+ fit: true, components: [
+ {kind: "XV.Groupbox", name: "mainPanel", components: [
+ {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
+ {kind: "XV.ScrollableGroupbox", name: "mainGroup",
+ classes: "in-panel", components: [
+ {kind: "XV.InputWidget", attr: "name"},
+ {kind: "XV.InputWidget", attr: "description"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelWorkspace("XM.ShipZone", "XV.ShipZoneWorkspace");
+
+ // ..........................................................
+ // TERMS
+ //
+
+ enyo.kind({
+ name: "XV.TermsWorkspace",
+ kind: "XV.Workspace",
+ title: "_terms".loc(),
+ model: "XM.Terms",
+ components: [
+ {kind: "Panels", arrangerKind: "CarouselArranger",
+ fit: true, components: [
+ {kind: "XV.Groupbox", name: "mainPanel", components: [
+ {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
+ {kind: "XV.ScrollableGroupbox", name: "mainGroup",
+ classes: "in-panel", components: [
+ {kind: "XV.InputWidget", attr: "code"},
+ {kind: "XV.InputWidget", attr: "description"},
+ {kind: "XV.TermsTypePicker", attr: "termsType"},
+ {kind: "XV.NumberWidget", attr: "dueDays"},
+ {kind: "XV.NumberWidget", attr: "discountDays"},
+ {kind: "XV.NumberWidget", attr: "cutOffDay"}
+ ]}
+ ]}
+ ]}
+ ]
+ });
+
+ XV.registerModelWorkspace("XM.Terms", "XV.TermsWorkspace");
}());
View
1 enyo-client/extensions/source/sales/client/widgets/package.js
@@ -1,2 +1,3 @@
enyo.depends(
+ "parameter.js"
);
View
120 enyo-client/extensions/source/sales/client/widgets/parameter.js
@@ -0,0 +1,120 @@
+/*jshint bitwise:true, indent:2, curly:true eqeqeq:true, immed:true,
+latedef:true, newcap:true, noarg:true, regexp:true, undef:true,
+trailing:true white:true*/
+/*global XT:true, XM:true, _:true, enyo:true, Globalize:true*/
+
+(function () {
+
+ // ..........................................................
+ // CUSTOMER GROUP
+ //
+
+ enyo.kind({
+ name: "XV.CustomerGroupListParameters",
+ kind: "XV.ParameterWidget",
+ components: [
+ {kind: "onyx.GroupboxHeader", content: "_customerGroup".loc()},
+ {name: "name", label: "_name".loc(), attr: "name"},
+ {name: "description", label: "_description", attr: "description"}
+ ]
+ });
+
+ // ..........................................................
+ // FREIGHT CLASS
+ //
+
+ enyo.kind({
+ name: "XV.FreightClassListParameters",
+ kind: "XV.ParameterWidget",
+ components: [
+ {kind: "onyx.GroupboxHeader", content: "_freightClass".loc()},
+ {name: "code", label: "_code".loc(), attr: "code"},
+ {name: "description", label: "_description", attr: "description"}
+ ]
+ });
+
+ // ..........................................................
+ // SALE TYPE
+ //
+
+ enyo.kind({
+ name: "XV.SaleTypeListParameters",
+ kind: "XV.ParameterWidget",
+ components: [
+ {name: "isActive", attr: "isActive", label: "_showInactive".loc(), defaultKind: "XV.CheckboxWidget",
+ getParameter: function () {
+ var param;
+ if (!this.getValue()) {
+ param = {
+ attribute: this.getAttr(),
+ operator: '=',
+ value: true
+ };
+ }
+ return param;
+ }
+ },
+ {kind: "onyx.GroupboxHeader", content: "_saleTypes".loc()},
+ {name: "code", label: "_code".loc(), attr: "code"},
+ {name: "description", label: "_description", attr: "description"}
+ ]
+ });
+
+ // ..........................................................
+ // SALES REP
+ //
+
+ enyo.kind({
+ name: "XV.SalesRepListParameters",
+ kind: "XV.ParameterWidget",
+ components: [
+ {name: "isActive", attr: "isActive", label: "_showInactive".loc(), defaultKind: "XV.CheckboxWidget",
+ getParameter: function () {
+ var param;
+ if (!this.getValue()) {
+ param = {
+ attribute: this.getAttr(),
+ operator: '=',
+ value: true
+ };
+ }
+ return param;
+ }
+ },
+ {kind: "onyx.GroupboxHeader", content: "_salesRep".loc()},
+ {name: "number", label: "_number".loc(), attr: "number"},
+ {name: "name", label: "_name".loc(), attr: "name"},
+ {name: "commission", label: "_commission".loc(), attr: "commission"},
+ {name: "method", label: "_method".loc(), attr: "method"}
+ ]
+ });
+
+ // ..........................................................
+ // SHIP ZONE
+ //
+
+ enyo.kind({
+ name: "XV.ShipZoneListParameters",
+ kind: "XV.ParameterWidget",
+ components: [
+ {kind: "onyx.GroupboxHeader", content: "_shipZones".loc()},
+ {name: "name", label: "_name".loc(), attr: "name"},
+ {name: "description", label: "_description", attr: "description"}
+ ]
+ });
+
+ // ..........................................................
+ // TERMS
+ //
+
+ enyo.kind({
+ name: "XV.TermsListParameters",
+ kind: "XV.ParameterWidget",
+ components: [
+ {kind: "onyx.GroupboxHeader", content: "_Terms".loc()},
+ {name: "code", label: "_code".loc(), attr: "code"},
+ {name: "description", label: "_description", attr: "description"}
+ ]
+ });
+
+}());
View
27 node-datasource/test/vows/models/customer_group.js
@@ -0,0 +1,27 @@
+/*jshint trailing:true, white:true, indent:2, strict:true, curly:true,
+ immed:true, eqeqeq:true, forin:true, latedef:true,
+ newcap:true, noarg:true, undef:true */
+/*global XT:true, XM:true, XV:true, process:true, module:true, require:true */
+
+var XVOWS = XVOWS || {};
+(function () {
+ "use strict";
+
+ var vows = require("vows"),
+ crud = require('../lib/crud'),
+ data = {
+ recordType: "XM.CustomerGroup",
+ autoTestAttributes: true,
+ createHash: {
+ name: "grp"
+ },
+ updateHash: {
+ name: "group"
+ }
+ };
+
+ vows.describe('XM.CustomerGroup CRUD test').addBatch({
+ 'We can run the XM.CustomerGroup CRUD tests ': crud.runAllCrud(data)
+ }).export(module);
+
+}());
View
27 node-datasource/test/vows/models/freight_class.js
@@ -0,0 +1,27 @@
+/*jshint trailing:true, white:true, indent:2, strict:true, curly:true,
+ immed:true, eqeqeq:true, forin:true, latedef:true,
+ newcap:true, noarg:true, undef:true */
+/*global XT:true, XM:true, XV:true, process:true, module:true, require:true */
+
+var XVOWS = XVOWS || {};
+(function () {
+ "use strict";
+
+ var vows = require("vows"),
+ crud = require('../lib/crud'),
+ data = {
+ recordType: "XM.FreightClass",
+ autoTestAttributes: true,
+ createHash: {
+ code: "Freight"
+ },
+ updateHash: {
+ code: "updated"
+ }
+ };
+
+ vows.describe('XM.FreightClass CRUD test').addBatch({
+ 'We can run the XM.FreightClass CRUD tests ': crud.runAllCrud(data)
+ }).export(module);
+
+}());
View
27 node-datasource/test/vows/models/sales_rep.js
@@ -0,0 +1,27 @@
+/*jshint trailing:true, white:true, indent:2, strict:true, curly:true,
+ immed:true, eqeqeq:true, forin:true, latedef:true,
+ newcap:true, noarg:true, undef:true */
+/*global XT:true, XM:true, XV:true, process:true, module:true, require:true */
+
+var XVOWS = XVOWS || {};
+(function () {
+ "use strict";
+
+ var vows = require("vows"),
+ crud = require('../lib/crud'),
+ data = {
+ recordType: "XM.SalesRep",
+ autoTestAttributes: true,
+ createHash: {
+ number: "rep"
+ },
+ updateHash: {
+ number: "updatedRep"
+ }
+ };
+
+ vows.describe('XM.SalesRep CRUD test').addBatch({
+ 'We can run the XM.SalesRep CRUD tests ': crud.runAllCrud(data)
+ }).export(module);
+
+}());
View
27 node-datasource/test/vows/models/terms.js
@@ -0,0 +1,27 @@
+/*jshint trailing:true, white:true, indent:2, strict:true, curly:true,
+ immed:true, eqeqeq:true, forin:true, latedef:true,
+ newcap:true, noarg:true, undef:true */
+/*global XT:true, XM:true, XV:true, process:true, module:true, require:true */
+
+var XVOWS = XVOWS || {};
+(function () {
+ "use strict";
+
+ var vows = require("vows"),
+ crud = require('../lib/crud'),
+ data = {
+ recordType: "XM.Terms",
+ autoTestAttributes: true,
+ createHash: {
+ code: "datTerm"
+ },
+ updateHash: {
+ code: "updatedTerm"
+ }
+ };
+
+ vows.describe('XM.Terms CRUD test').addBatch({
+ 'We can run the XM.Terms CRUD tests ': crud.runAllCrud(data)
+ }).export(module);
+
+}());
Something went wrong with that request. Please try again.