define("InvoicePageV2", ["InvoiceConfigurationConstants"], function(InvoiceConfigurationConstants) { return { entitySchemaName: "Invoice", attributes: { "IsModelItemsEnabled": { dataValueType: Terrasoft.DataValueType.BOOLEAN, value: true, dependencies: [{ columns: ["PaymentStatus"], methodName: "setCardLockoutStatus" }] } }, methods: { getDisableExclusionsColumnTags: function() { return ["PaymentStatus"]; }, getDisableExclusionsDetailSchemaNames: function() { return ["ActivityDetailV2"]; }, setCardLockoutStatus: function() { var state = this.get("PaymentStatus"); if (state.value === InvoiceConfigurationConstants.Invoice.PaymentStatus.Paid) { this.set("IsModelItemsEnabled", false); } else { this.set("IsModelItemsEnabled", true); } }, onEntityInitialized: function() { this.callParent(arguments); this.setCardLockoutStatus(); } }, details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/, diff: /**SCHEMA_DIFF*/[ { "operation": "merge", "name": "CardContentWrapper", "values": { "generator": "DisableControlsGenerator.generatePartial" } } ]/**SCHEMA_DIFF*/ }; });
Показать все комментарии
Войдите или зарегистрируйтесь, что бы комментировать