returnItem to get qty attribute name from model
authorjulesstp <julianmcarlin@gmail.com>
Tue, 17 Dec 2013 15:22:19 +0000 (09:22 -0600)
committerjulesstp <julianmcarlin@gmail.com>
Tue, 17 Dec 2013 15:22:19 +0000 (09:22 -0600)
lib/enyo-x/source/views/transaction_list.js
lib/enyo-x/source/views/transaction_list_container.js

index b09d7bf..2bdfb2b 100644 (file)
@@ -18,8 +18,7 @@ trailing:true, white:true, strict:false*/
     published: {
       transModule: "",
       transWorkspace: XM.Inventory,
-      transFunction: "issueToShipping",
-      transQtyIssued: "qtyIssued"
+      transFunction: "issueToShipping"
     },
     events: {
       onProcessingChanged: "",
@@ -169,7 +168,7 @@ trailing:true, white:true, strict:false*/
 
       for (i = 0; i < models.length; i++) {
         model = models[i];
-        qtyTransacted = that.getTransQtyTransacted();
+        qtyTransacted = model.get(model.quantityTransactedAttribute);
 
         // See if there's anything to transact here
         if (qtyTransacted) {
index 99d27c0..40742c4 100644 (file)
@@ -87,6 +87,9 @@ trailing:true, white:true, strict:false*/
       this.doPrevious();
     },
     buildMenu: function () {
+      if (!this.getActions()) {
+        return;
+      }
       var actionMenu = this.$.actionMenu,
         actions = this.getActions().slice(0),
         that = this;