Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 19 commits
  • 16 files changed
  • 0 comments
  • 3 contributors
4 enyo-client/application/source/en/strings.js
@@ -148,6 +148,7 @@ var lang = XT.stringsFor("en_US", {
148 148 "_data": "Data",
149 149 "_dataState": "Data State",
150 150 "_date": "Date",
  151 + "_days": "Days",
151 152 "_deactivate": "Deactivate",
152 153 "_default": "Default",
153 154 "_defaults": "Defaults",
@@ -379,6 +380,7 @@ var lang = XT.stringsFor("en_US", {
379 380 "_propername": "Propername",
380 381 "_prospect": "Prospect",
381 382 "_prospects": "Prospects",
  383 + "_proximo": "Proximo",
382 384 "_public": "Public",
383 385 "_purchaseOrderNumber": "Purchase Order",
384 386 "_required": "Required",
@@ -401,6 +403,7 @@ var lang = XT.stringsFor("en_US", {
401 403 "_roles": "Roles",
402 404 "_salesRep": "Sales Rep",
403 405 "_saleType": "Sale Type",
  406 + "_saleTypes": "Sale Types",
404 407 "_schedule": "Schedule",
405 408 "_scheduleDate": "Schedule Date",
406 409 "_secondaryContact": "Secondary Contact",
@@ -417,6 +420,7 @@ var lang = XT.stringsFor("en_US", {
417 420 "_shipVia": "Ship Via",
418 421 "_shipTo": "Ship To",
419 422 "_shipZone": "Ship Zone",
  423 + "_shipZones": "Ship Zones",
420 424 "_shippingNotes": "Shipping Notes",
421 425 "_site": "Site",
422 426 "_siteCode": "Site Code",
12 enyo-client/application/source/models/customer.js
@@ -727,6 +727,18 @@ white:true*/
727 727 model: XM.ShipZone
728 728
729 729 });
  730 +
  731 + /**
  732 + @class
  733 +
  734 + @extends XM.Collection
  735 + */
  736 + XM.CustomerGroupCollection = XM.Collection.extend({
  737 + /** @scope XM.CustomerGroupCollection.prototype */
  738 +
  739 + model: XM.CustomerGroup
  740 +
  741 + });
730 742
731 743 /**
732 744 @class
16 enyo-client/application/source/models/static.js
@@ -145,4 +145,20 @@ white:true*/
145 145 XM.characteristicTypes.add(characteristicType);
146 146 }
147 147
  148 + // Terms Type
  149 + var termsTypeJson = [
  150 + { id: "D", name: "_days".loc() },
  151 + { id: "P", name: "_proximo".loc() }
  152 + ];
  153 + XM.TermsTypeModel = Backbone.Model.extend({
  154 + });
  155 + XM.TermsTypeCollection = Backbone.Collection.extend({
  156 + model: XM.TermsTypeModel
  157 + });
  158 + XM.termsTypes = new XM.TermsTypeCollection();
  159 + for (i = 0; i < termsTypeJson.length; i++) {
  160 + var termsType = new XM.TermsTypeModel(termsTypeJson[i]);
  161 + XM.termsTypes.add(termsType);
  162 + }
  163 +
148 164 }());
11 enyo-client/application/source/widgets/picker.js
@@ -414,6 +414,17 @@ regexp:true, undef:true, trailing:true, white:true */
414 414 {attribute: 'code'}
415 415 ]
416 416 });
  417 +
  418 + // ..........................................................
  419 + // TERMS TYPE
  420 + //
  421 +
  422 + enyo.kind({
  423 + name: "XV.TermsTypePicker",
  424 + kind: "XV.PickerWidget",
  425 + collection: "XM.termsTypes",
  426 + nameAttribute: "name"
  427 + });
417 428
418 429 // ..........................................................
419 430 // UNIT
9 enyo-client/database/orm/models/customer.json
@@ -1557,15 +1557,6 @@
1557 1557 "type": "Number",
1558 1558 "column": "custgrp_descrip"
1559 1559 }
1560   - },
1561   - {
1562   - "name": "customers",
1563   - "toMany": {
1564   - "isNested": true,
1565   - "type": "CustomerGroupCustomer",
1566   - "column": "custgrp_id",
1567   - "inverse": "customerGroup"
1568   - }
1569 1560 }
1570 1561 ],
1571 1562 "isSystem": true
5 enyo-client/extensions/source/sales/client/en/strings.js
@@ -27,11 +27,15 @@ var lang = XT.stringsFor("en_US", {
27 27 "_creditMemo": "Credit Memo",
28 28 "_current": "Current",
29 29 "_currentDate": "Current Date",
  30 + "_customerGroup": "Customer Groups",
  31 + "_cutOffDay": "Cutoff Day",
30 32 "_dateControl": "Date Control",
31 33 "_disableSalesOrderPriceOverride": "Disallow Override of Sale Price on Sales Order",
  34 + "_discountDays": "Discount Days",
32 35 "_doNotUpdate": "Do Not Update",
33 36 "_enableSOShipping": "Enable Shipping Interface from Sales Order screen",
34 37 "_firmSalesOrdersWhenAddedToPackingList": "Firm Sales Orders when added to Packing List Batch",
  38 + "_freightClass": "Freight Class",
35 39 "_freightPricing": "Freight Pricing",
36 40 "_hideSOMiscCharge": "Hide Misc. Charge on Sales Order screen",
37 41 "_ignoreIfDiscounted": "Ignore if Discounted",
@@ -56,6 +60,7 @@ var lang = XT.stringsFor("en_US", {
56 60 "_shipDate": "Ship Date",
57 61 "_showQuotesAfterConverted": "Show Quotes after Conversion to SO",
58 62 "_showSaveAndAddbutton": "Show 'Save and Add to Packing List' Button on Sales Order",
  63 + "_termsType": "Terms Type",
59 64 "_update": "Update",
60 65 "_useCalculatedFreightPricing": "Use calculated Freight values by default",
61 66 "_usePromiseDates": "Enable Promise Dates"
6 enyo-client/extensions/source/sales/client/postbooks.js
@@ -19,6 +19,12 @@ trailing:true white:true*/
19 19 panels = [
20 20 {name: "siteList", kind: "XV.SiteList"},
21 21 {name: "siteTypeList", kind: "XV.SiteTypeList"},
  22 + {name: "saleTypeList", kind: "XV.SaleTypeList"},
  23 + {name: "shipZoneList", kind: "XV.ShipZoneList"},
  24 + {name: "salesRepList", kind: "XV.SalesRepList"},
  25 + {name: "termsList", kind: "XV.TermsList"},
  26 + {name: "customerGroupList", kind: "XV.CustomerGroupList"},
  27 + {name: "freightClassList", kind: "XV.FreightClassList"},
22 28 {name: "itemSiteList", kind: "XV.ItemSiteList"},
23 29 {name: "costCategoryList", kind: "XV.CostCategoryList"},
24 30 {name: "plannerCodeList", kind: "XV.PlannerCodeList"},
188 enyo-client/extensions/source/sales/client/views/list.js
... ... @@ -0,0 +1,188 @@
  1 +/*jshint bitwise:true, indent:2, curly:true eqeqeq:true, immed:true,
  2 +latedef:true, newcap:true, noarg:true, regexp:true, undef:true,
  3 +trailing:true white:true*/
  4 +/*global XT:true, XM:true, XV:true, _:true, window: true, enyo:true, Globalize:true*/
  5 +
  6 +(function () {
  7 +
  8 + // ..........................................................
  9 + // CUSTOMER GROUP
  10 + //
  11 +
  12 + enyo.kind({
  13 + name: "XV.CustomerGroupList",
  14 + kind: "XV.List",
  15 + label: "_customerGroup".loc(),
  16 + collection: "XM.CustomerGroupCollection",
  17 + parameterWidget: "XV.CustomerGroupListParameters",
  18 + query: {orderBy: [
  19 + {attribute: 'name'}
  20 + ]},
  21 + components: [
  22 + {kind: "XV.ListItem", components: [
  23 + {kind: "FittableColumns", components: [
  24 + {kind: "XV.ListColumn", classes: "short",
  25 + components: [
  26 + {kind: "XV.ListAttr", attr: "name", isKey: true}
  27 + ]},
  28 + {kind: "XV.ListColumn", classes: "last", fit: true, components: [
  29 + {kind: "XV.ListAttr", attr: "description"}
  30 + ]}
  31 + ]}
  32 + ]}
  33 + ]
  34 + });
  35 +
  36 + XV.registerModelList("XM.CustomerGroupRelation", "XV.CustomerGroupList");
  37 +
  38 + // ..........................................................
  39 + // FREIGHT CLASS
  40 + //
  41 +
  42 + enyo.kind({
  43 + name: "XV.FreightClassList",
  44 + kind: "XV.List",
  45 + label: "_freightClass".loc(),
  46 + collection: "XM.FreightClassCollection",
  47 + parameterWidget: "XV.FreightClassListParameters",
  48 + query: {orderBy: [
  49 + {attribute: 'code'}
  50 + ]},
  51 + components: [
  52 + {kind: "XV.ListItem", components: [
  53 + {kind: "FittableColumns", components: [
  54 + {kind: "XV.ListColumn", classes: "short",
  55 + components: [
  56 + {kind: "XV.ListAttr", attr: "code", isKey: true}
  57 + ]},
  58 + {kind: "XV.ListColumn", classes: "last", fit: true, components: [
  59 + {kind: "XV.ListAttr", attr: "description"}
  60 + ]}
  61 + ]}
  62 + ]}
  63 + ]
  64 + });
  65 +
  66 + XV.registerModelList("XM.FreightClassRelation", "XV.FreightClassList");
  67 +
  68 + // ..........................................................
  69 + // SALE TYPE
  70 + //
  71 +
  72 + enyo.kind({
  73 + name: "XV.SaleTypeList",
  74 + kind: "XV.List",
  75 + label: "_saleTypes".loc(),
  76 + collection: "XM.SaleTypeCollection",
  77 + parameterWidget: "XV.SaleTypeListParameters",
  78 + query: {orderBy: [
  79 + {attribute: 'code'}
  80 + ]},
  81 + components: [
  82 + {kind: "XV.ListItem", components: [
  83 + {kind: "FittableColumns", components: [
  84 + {kind: "XV.ListColumn", classes: "short",
  85 + components: [
  86 + {kind: "XV.ListAttr", attr: "code", isKey: true}
  87 + ]},
  88 + {kind: "XV.ListColumn", classes: "last", fit: true, components: [
  89 + {kind: "XV.ListAttr", attr: "description"}
  90 + ]}
  91 + ]}
  92 + ]}
  93 + ]
  94 + });
  95 +
  96 + XV.registerModelList("XM.SaleTypeRelation", "XV.SaleTypeList");
  97 +
  98 + // ..........................................................
  99 + // SALES REP
  100 + //
  101 +
  102 + enyo.kind({
  103 + name: "XV.SalesRepList",
  104 + kind: "XV.List",
  105 + label: "_salesRep".loc(),
  106 + collection: "XM.SalesRepCollection",
  107 + parameterWidget: "XV.SalesRepListParameters",
  108 + query: {orderBy: [
  109 + {attribute: 'number'}
  110 + ]},
  111 + components: [
  112 + {kind: "XV.ListItem", components: [
  113 + {kind: "FittableColumns", components: [
  114 + {kind: "XV.ListColumn", classes: "short",
  115 + components: [
  116 + {kind: "XV.ListAttr", attr: "number", isKey: true}
  117 + ]},
  118 + {kind: "XV.ListColumn", classes: "last", fit: true, components: [
  119 + {kind: "XV.ListAttr", attr: "name"}
  120 + ]}
  121 + ]}
  122 + ]}
  123 + ]
  124 + });
  125 +
  126 + XV.registerModelList("XM.SalesRepRelation", "XV.SalesRepList");
  127 +
  128 + // ..........................................................
  129 + // SHIP ZONE
  130 + //
  131 +
  132 + enyo.kind({
  133 + name: "XV.ShipZoneList",
  134 + kind: "XV.List",
  135 + label: "_shipZones".loc(),
  136 + collection: "XM.ShipZoneCollection",
  137 + parameterWidget: "XV.ShipZoneListParameters",
  138 + query: {orderBy: [
  139 + {attribute: 'name'}
  140 + ]},
  141 + components: [
  142 + {kind: "XV.ListItem", components: [
  143 + {kind: "FittableColumns", components: [
  144 + {kind: "XV.ListColumn", classes: "short",
  145 + components: [
  146 + {kind: "XV.ListAttr", attr: "name", isKey: true}
  147 + ]},
  148 + {kind: "XV.ListColumn", classes: "last", fit: true, components: [
  149 + {kind: "XV.ListAttr", attr: "description"}
  150 + ]}
  151 + ]}
  152 + ]}
  153 + ]
  154 + });
  155 +
  156 + XV.registerModelList("XM.ShipZoneRelation", "XV.ShipZoneList");
  157 +
  158 + // ..........................................................
  159 + // TERMS
  160 + //
  161 +
  162 + enyo.kind({
  163 + name: "XV.TermsList",
  164 + kind: "XV.List",
  165 + label: "_terms".loc(),
  166 + collection: "XM.TermsCollection",
  167 + parameterWidget: "XV.TermsListParameters",
  168 + query: {orderBy: [
  169 + {attribute: 'code'}
  170 + ]},
  171 + components: [
  172 + {kind: "XV.ListItem", components: [
  173 + {kind: "FittableColumns", components: [
  174 + {kind: "XV.ListColumn", classes: "short",
  175 + components: [
  176 + {kind: "XV.ListAttr", attr: "code", isKey: true}
  177 + ]},
  178 + {kind: "XV.ListColumn", classes: "last", fit: true, components: [
  179 + {kind: "XV.ListAttr", attr: "description"}
  180 + ]}
  181 + ]}
  182 + ]}
  183 + ]
  184 + });
  185 +
  186 + XV.registerModelList("XM.TermsRelation", "XV.TermsList");
  187 +
  188 +}());
1  enyo-client/extensions/source/sales/client/views/package.js
... ... @@ -1,3 +1,4 @@
1 1 enyo.depends(
  2 + "list.js",
2 3 "workspace.js"
3 4 );
166 enyo-client/extensions/source/sales/client/views/workspace.js
@@ -154,7 +154,7 @@ trailing:true white:true*/
154 154 {kind: "XV.NumberWidget", attr: "SOCreditLimit",
155 155 label: "_creditLimit".loc()},
156 156 {kind: "XV.InputWidget", attr: "SOCreditRate",
157   - label: "_creditRating".loc()},
  157 + label: "_creditRating".loc()}
158 158 ]}
159 159 ]}
160 160 ]}
@@ -172,5 +172,169 @@ trailing:true white:true*/
172 172 XV.appendExtension("XV.OpportunityWorkspace", extensions);
173 173
174 174 };
  175 +
  176 + // ..........................................................
  177 + // CUSTOMER GROUP
  178 + //
  179 +
  180 + enyo.kind({
  181 + name: "XV.CustomerGroupWorkspace",
  182 + kind: "XV.Workspace",
  183 + title: "_customerGroup".loc(),
  184 + model: "XM.CustomerGroup",
  185 + components: [
  186 + {kind: "Panels", arrangerKind: "CarouselArranger",
  187 + fit: true, components: [
  188 + {kind: "XV.Groupbox", name: "mainPanel", components: [
  189 + {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
  190 + {kind: "XV.ScrollableGroupbox", name: "mainGroup",
  191 + classes: "in-panel", components: [
  192 + {kind: "XV.InputWidget", attr: "name"},
  193 + {kind: "XV.InputWidget", attr: "description"}
  194 + ]}
  195 + ]}
  196 + ]}
  197 + ]
  198 + });
  199 +
  200 + XV.registerModelWorkspace("XM.CustomerGroup", "XV.CustomerGroupWorkspace");
  201 +
  202 + // ..........................................................
  203 + // FREIGHT CLASS
  204 + //
  205 +
  206 + enyo.kind({
  207 + name: "XV.FreightClassWorkspace",
  208 + kind: "XV.Workspace",
  209 + title: "_freightClass".loc(),
  210 + model: "XM.FreightClass",
  211 + components: [
  212 + {kind: "Panels", arrangerKind: "CarouselArranger",
  213 + fit: true, components: [
  214 + {kind: "XV.Groupbox", name: "mainPanel", components: [
  215 + {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
  216 + {kind: "XV.ScrollableGroupbox", name: "mainGroup",
  217 + classes: "in-panel", components: [
  218 + {kind: "XV.InputWidget", attr: "code"},
  219 + {kind: "XV.InputWidget", attr: "description"}
  220 + ]}
  221 + ]}
  222 + ]}
  223 + ]
  224 + });
  225 +
  226 + XV.registerModelWorkspace("XM.FreightClass", "XV.FreightClassWorkspace");
  227 +
  228 + // ..........................................................
  229 + // SALE TYPE
  230 + //
  231 +
  232 + enyo.kind({
  233 + name: "XV.SaleTypeWorkspace",
  234 + kind: "XV.Workspace",
  235 + title: "_saleType".loc(),
  236 + model: "XM.SaleType",
  237 + components: [
  238 + {kind: "Panels", arrangerKind: "CarouselArranger",
  239 + fit: true, components: [
  240 + {kind: "XV.Groupbox", name: "mainPanel", components: [
  241 + {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
  242 + {kind: "XV.ScrollableGroupbox", name: "mainGroup",
  243 + classes: "in-panel", components: [
  244 + {kind: "XV.InputWidget", attr: "code"},
  245 + {kind: "XV.InputWidget", attr: "description"}
  246 + ]}
  247 + ]}
  248 + ]}
  249 + ]
  250 + });
  251 +
  252 + XV.registerModelWorkspace("XM.SaleType", "XV.SaleTypeWorkspace");
  253 +
  254 + // ..........................................................
  255 + // SALES REP
  256 + //
  257 +
  258 + enyo.kind({
  259 + name: "XV.SalesRepWorkspace",
  260 + kind: "XV.Workspace",
  261 + title: "_salesRep".loc(),
  262 + model: "XM.SalesRep",
  263 + components: [
  264 + {kind: "Panels", arrangerKind: "CarouselArranger",
  265 + fit: true, components: [
  266 + {kind: "XV.Groupbox", name: "mainPanel", components: [
  267 + {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
  268 + {kind: "XV.ScrollableGroupbox", name: "mainGroup",
  269 + classes: "in-panel", components: [
  270 + {kind: "XV.InputWidget", attr: "number"},
  271 + {kind: "XV.InputWidget", attr: "name"},
  272 + {kind: "XV.NumberWidget", attr: "commission"}
  273 + //method is a 1-char column on the sales rep table, but it looks like it's unused?
  274 + // column emp_id is deprecated
  275 + //enhanced commissions widget?
  276 + ]}
  277 + ]}
  278 + ]}
  279 + ]
  280 + });
  281 +
  282 + XV.registerModelWorkspace("XM.SalesRep", "XV.SalesRepWorkspace");
  283 +
  284 + // ..........................................................
  285 + // SHIP ZONE
  286 + //
  287 +
  288 + enyo.kind({
  289 + name: "XV.ShipZoneWorkspace",
  290 + kind: "XV.Workspace",
  291 + title: "_shipZone".loc(),
  292 + model: "XM.ShipZone",
  293 + components: [
  294 + {kind: "Panels", arrangerKind: "CarouselArranger",
  295 + fit: true, components: [
  296 + {kind: "XV.Groupbox", name: "mainPanel", components: [
  297 + {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
  298 + {kind: "XV.ScrollableGroupbox", name: "mainGroup",
  299 + classes: "in-panel", components: [
  300 + {kind: "XV.InputWidget", attr: "name"},
  301 + {kind: "XV.InputWidget", attr: "description"}
  302 + ]}
  303 + ]}
  304 + ]}
  305 + ]
  306 + });
  307 +
  308 + XV.registerModelWorkspace("XM.ShipZone", "XV.ShipZoneWorkspace");
  309 +
  310 + // ..........................................................
  311 + // TERMS
  312 + //
  313 +
  314 + enyo.kind({
  315 + name: "XV.TermsWorkspace",
  316 + kind: "XV.Workspace",
  317 + title: "_terms".loc(),
  318 + model: "XM.Terms",
  319 + components: [
  320 + {kind: "Panels", arrangerKind: "CarouselArranger",
  321 + fit: true, components: [
  322 + {kind: "XV.Groupbox", name: "mainPanel", components: [
  323 + {kind: "onyx.GroupboxHeader", content: "_overview".loc()},
  324 + {kind: "XV.ScrollableGroupbox", name: "mainGroup",
  325 + classes: "in-panel", components: [
  326 + {kind: "XV.InputWidget", attr: "code"},
  327 + {kind: "XV.InputWidget", attr: "description"},
  328 + {kind: "XV.TermsTypePicker", attr: "termsType"},
  329 + {kind: "XV.NumberWidget", attr: "dueDays"},
  330 + {kind: "XV.NumberWidget", attr: "discountDays"},
  331 + {kind: "XV.NumberWidget", attr: "cutOffDay"}
  332 + ]}
  333 + ]}
  334 + ]}
  335 + ]
  336 + });
  337 +
  338 + XV.registerModelWorkspace("XM.Terms", "XV.TermsWorkspace");
175 339
176 340 }());
1  enyo-client/extensions/source/sales/client/widgets/package.js
... ... @@ -1,2 +1,3 @@
1 1 enyo.depends(
  2 + "parameter.js"
2 3 );
120 enyo-client/extensions/source/sales/client/widgets/parameter.js
... ... @@ -0,0 +1,120 @@
  1 +/*jshint bitwise:true, indent:2, curly:true eqeqeq:true, immed:true,
  2 +latedef:true, newcap:true, noarg:true, regexp:true, undef:true,
  3 +trailing:true white:true*/
  4 +/*global XT:true, XM:true, _:true, enyo:true, Globalize:true*/
  5 +
  6 +(function () {
  7 +
  8 + // ..........................................................
  9 + // CUSTOMER GROUP
  10 + //
  11 +
  12 + enyo.kind({
  13 + name: "XV.CustomerGroupListParameters",
  14 + kind: "XV.ParameterWidget",
  15 + components: [
  16 + {kind: "onyx.GroupboxHeader", content: "_customerGroup".loc()},
  17 + {name: "name", label: "_name".loc(), attr: "name"},
  18 + {name: "description", label: "_description", attr: "description"}
  19 + ]
  20 + });
  21 +
  22 + // ..........................................................
  23 + // FREIGHT CLASS
  24 + //
  25 +
  26 + enyo.kind({
  27 + name: "XV.FreightClassListParameters",
  28 + kind: "XV.ParameterWidget",
  29 + components: [
  30 + {kind: "onyx.GroupboxHeader", content: "_freightClass".loc()},
  31 + {name: "code", label: "_code".loc(), attr: "code"},
  32 + {name: "description", label: "_description", attr: "description"}
  33 + ]
  34 + });
  35 +
  36 + // ..........................................................
  37 + // SALE TYPE
  38 + //
  39 +
  40 + enyo.kind({
  41 + name: "XV.SaleTypeListParameters",
  42 + kind: "XV.ParameterWidget",
  43 + components: [
  44 + {name: "isActive", attr: "isActive", label: "_showInactive".loc(), defaultKind: "XV.CheckboxWidget",
  45 + getParameter: function () {
  46 + var param;
  47 + if (!this.getValue()) {
  48 + param = {
  49 + attribute: this.getAttr(),
  50 + operator: '=',
  51 + value: true
  52 + };
  53 + }
  54 + return param;
  55 + }
  56 + },
  57 + {kind: "onyx.GroupboxHeader", content: "_saleTypes".loc()},
  58 + {name: "code", label: "_code".loc(), attr: "code"},
  59 + {name: "description", label: "_description", attr: "description"}
  60 + ]
  61 + });
  62 +
  63 + // ..........................................................
  64 + // SALES REP
  65 + //
  66 +
  67 + enyo.kind({
  68 + name: "XV.SalesRepListParameters",
  69 + kind: "XV.ParameterWidget",
  70 + components: [
  71 + {name: "isActive", attr: "isActive", label: "_showInactive".loc(), defaultKind: "XV.CheckboxWidget",
  72 + getParameter: function () {
  73 + var param;
  74 + if (!this.getValue()) {
  75 + param = {
  76 + attribute: this.getAttr(),
  77 + operator: '=',
  78 + value: true
  79 + };
  80 + }
  81 + return param;
  82 + }
  83 + },
  84 + {kind: "onyx.GroupboxHeader", content: "_salesRep".loc()},
  85 + {name: "number", label: "_number".loc(), attr: "number"},
  86 + {name: "name", label: "_name".loc(), attr: "name"},
  87 + {name: "commission", label: "_commission".loc(), attr: "commission"},
  88 + {name: "method", label: "_method".loc(), attr: "method"}
  89 + ]
  90 + });
  91 +
  92 + // ..........................................................
  93 + // SHIP ZONE
  94 + //
  95 +
  96 + enyo.kind({
  97 + name: "XV.ShipZoneListParameters",
  98 + kind: "XV.ParameterWidget",
  99 + components: [
  100 + {kind: "onyx.GroupboxHeader", content: "_shipZones".loc()},
  101 + {name: "name", label: "_name".loc(), attr: "name"},
  102 + {name: "description", label: "_description", attr: "description"}
  103 + ]
  104 + });
  105 +
  106 + // ..........................................................
  107 + // TERMS
  108 + //
  109 +
  110 + enyo.kind({
  111 + name: "XV.TermsListParameters",
  112 + kind: "XV.ParameterWidget",
  113 + components: [
  114 + {kind: "onyx.GroupboxHeader", content: "_Terms".loc()},
  115 + {name: "code", label: "_code".loc(), attr: "code"},
  116 + {name: "description", label: "_description", attr: "description"}
  117 + ]
  118 + });
  119 +
  120 +}());
27 node-datasource/test/vows/models/customer_group.js
... ... @@ -0,0 +1,27 @@
  1 +/*jshint trailing:true, white:true, indent:2, strict:true, curly:true,
  2 + immed:true, eqeqeq:true, forin:true, latedef:true,
  3 + newcap:true, noarg:true, undef:true */
  4 +/*global XT:true, XM:true, XV:true, process:true, module:true, require:true */
  5 +
  6 +var XVOWS = XVOWS || {};
  7 +(function () {
  8 + "use strict";
  9 +
  10 + var vows = require("vows"),
  11 + crud = require('../lib/crud'),
  12 + data = {
  13 + recordType: "XM.CustomerGroup",
  14 + autoTestAttributes: true,
  15 + createHash: {
  16 + name: "grp"
  17 + },
  18 + updateHash: {
  19 + name: "group"
  20 + }
  21 + };
  22 +
  23 + vows.describe('XM.CustomerGroup CRUD test').addBatch({
  24 + 'We can run the XM.CustomerGroup CRUD tests ': crud.runAllCrud(data)
  25 + }).export(module);
  26 +
  27 +}());
27 node-datasource/test/vows/models/freight_class.js
... ... @@ -0,0 +1,27 @@
  1 +/*jshint trailing:true, white:true, indent:2, strict:true, curly:true,
  2 + immed:true, eqeqeq:true, forin:true, latedef:true,
  3 + newcap:true, noarg:true, undef:true */
  4 +/*global XT:true, XM:true, XV:true, process:true, module:true, require:true */
  5 +
  6 +var XVOWS = XVOWS || {};
  7 +(function () {
  8 + "use strict";
  9 +
  10 + var vows = require("vows"),
  11 + crud = require('../lib/crud'),
  12 + data = {
  13 + recordType: "XM.FreightClass",
  14 + autoTestAttributes: true,
  15 + createHash: {
  16 + code: "Freight"
  17 + },
  18 + updateHash: {
  19 + code: "updated"
  20 + }
  21 + };
  22 +
  23 + vows.describe('XM.FreightClass CRUD test').addBatch({
  24 + 'We can run the XM.FreightClass CRUD tests ': crud.runAllCrud(data)
  25 + }).export(module);
  26 +
  27 +}());
27 node-datasource/test/vows/models/sales_rep.js
... ... @@ -0,0 +1,27 @@
  1 +/*jshint trailing:true, white:true, indent:2, strict:true, curly:true,
  2 + immed:true, eqeqeq:true, forin:true, latedef:true,
  3 + newcap:true, noarg:true, undef:true */
  4 +/*global XT:true, XM:true, XV:true, process:true, module:true, require:true */
  5 +
  6 +var XVOWS = XVOWS || {};
  7 +(function () {
  8 + "use strict";
  9 +
  10 + var vows = require("vows"),
  11 + crud = require('../lib/crud'),
  12 + data = {
  13 + recordType: "XM.SalesRep",
  14 + autoTestAttributes: true,
  15 + createHash: {
  16 + number: "rep"
  17 + },
  18 + updateHash: {
  19 + number: "updatedRep"
  20 + }
  21 + };
  22 +
  23 + vows.describe('XM.SalesRep CRUD test').addBatch({
  24 + 'We can run the XM.SalesRep CRUD tests ': crud.runAllCrud(data)
  25 + }).export(module);
  26 +
  27 +}());
27 node-datasource/test/vows/models/terms.js
... ... @@ -0,0 +1,27 @@
  1 +/*jshint trailing:true, white:true, indent:2, strict:true, curly:true,
  2 + immed:true, eqeqeq:true, forin:true, latedef:true,
  3 + newcap:true, noarg:true, undef:true */
  4 +/*global XT:true, XM:true, XV:true, process:true, module:true, require:true */
  5 +
  6 +var XVOWS = XVOWS || {};
  7 +(function () {
  8 + "use strict";
  9 +
  10 + var vows = require("vows"),
  11 + crud = require('../lib/crud'),
  12 + data = {
  13 + recordType: "XM.Terms",
  14 + autoTestAttributes: true,
  15 + createHash: {
  16 + code: "datTerm"
  17 + },
  18 + updateHash: {
  19 + code: "updatedTerm"
  20 + }
  21 + };
  22 +
  23 + vows.describe('XM.Terms CRUD test').addBatch({
  24 + 'We can run the XM.Terms CRUD tests ': crud.runAllCrud(data)
  25 + }).export(module);
  26 +
  27 +}());

No commit comments for this range

Something went wrong with that request. Please try again.