}
},
- getSalesOrderStatusString: function () {
- // XXX #refactor
- return XM.SalesOrder.prototype.getOrderStatusString.call(this);
- },
-
holdTypeDidChange: function () {
if (!this.get("holdType")) {
_.each(this.get("workflow").where(
case K.CANCELLED_STATUS:
return '_cancelled'.loc();
}
- },
-
- /**
- Deprecated. Use `formatStatus`.
-
- @returns {String}
- */
- getOrderStatusString: function () {
- return this.formatStatus();
}
};
readOnlyAttributes: [
"freightWeight",
- "getOrderStatusString",
+ "formatStatus",
"lineItems",
"allocatedCredit",
"balance",
{kind: "XV.ListColumn", classes: "first", components: [
{kind: "FittableColumns", components: [
{kind: "XV.ListAttr", attr: "number", isKey: true, fit: true},
- {kind: "XV.ListAttr", attr: "getOrderStatusString",
+ {kind: "XV.ListAttr", attr: "formatStatus",
style: "padding-left: 24px"},
{kind: "XV.ListAttr", attr: "scheduleDate",
classes: "right", placeholder: "_noSchedule".loc()}
label: "_quoteDate".loc()},
{kind: "XV.DateWidget", attr: "scheduleDate"},
{kind: "XV.DateWidget", attr: "expireDate"},
- {kind: "XV.InputWidget", attr: "getOrderStatusString",
+ {kind: "XV.InputWidget", attr: "formatStatus",
label: "_status".loc()},
{kind: "onyx.GroupboxHeader", content: "_billTo".loc()},
{kind: "XV.CustomerProspectWidget", attr: "customer",
{kind: "XV.DateWidget", name: "dateField", attr: "orderDate",
label: "_orderDate".loc()},
{kind: "XV.DateWidget", attr: "scheduleDate"},
- {kind: "XV.InputWidget", attr: "getOrderStatusString",
+ {kind: "XV.InputWidget", attr: "formatStatus",
label: "_status".loc()},
{kind: "onyx.GroupboxHeader", content: "_billTo".loc()},
{kind: "XV.SalesCustomerWidget", attr: "customer",
case K.CLOSED_STATUS:
return "_closed".loc();
}
- },
- /**
- Returns Purchase order status as a localized string.
-
- @returns {String}
- */
- getPurchaseOrderStatusString: function () {
- return this.formatStatus();
}
};
XM.PurchaseOrder = XM.PurchaseOrder.extend({
emailDocumentName: "_purchaseOrder".loc(),
emailProfileAttribute: "purchaseType.emailProfile",
- emailStatusMethod: "getPurchaseOrderStatusString"
+ emailStatusMethod: "formatStatus"
});
// ..........................................................
{readOnlyAttr: "vouchered",
editor: {kind: "XV.QuantityWidget", attr: "vouchered",
name: "voucheredWidget"}},
- {readOnlyAttr: "getPurchaseOrderStatusString",
+ {readOnlyAttr: "formatStatus",
editor: {kind: "XV.PurchaseOrderStatusPicker", attr: "status"}}
]},
]
{kind: "XV.ListColumn", classes: "first", components: [
{kind: "FittableColumns", components: [
{kind: "XV.ListAttr", attr: "number", isKey: true, fit: true},
- {kind: "XV.ListAttr", attr: "getPurchaseOrderStatusString",
+ {kind: "XV.ListAttr", attr: "formatStatus",
style: "padding-left: 24px"},
{kind: "XV.ListAttr", attr: "orderDate",
classes: "right"}
{kind: "XV.ListColumn", classes: "money", components: [
{kind: "XV.ListAttr", attr: "received"},
{kind: "XV.ListAttr", attr: "vouchered"},
- {kind: "XV.ListAttr", attr: "getPurchaseOrderStatusString"}
+ {kind: "XV.ListAttr", attr: "formatStatus"}
]},
]}
]}