DefaultValue @NOW

This commit is contained in:
Sedat ÖZTÜRK 2025-11-14 17:28:04 +03:00
parent d2c5956b3e
commit 7cd0feea77
2 changed files with 3 additions and 6 deletions

View file

@ -1206,7 +1206,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "Probability", FieldDbType = DbType.Int32, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Probability", FieldDbType = DbType.Int32, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value },
new() { FieldName = "EstimatedValue", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "EstimatedValue", FieldDbType = DbType.Decimal, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value },
new() { FieldName = "ExpectedCloseDate", FieldDbType = DbType.Date, Value = "@NOW", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "ExpectedCloseDate", FieldDbType = DbType.Date, Value = "@NOW", CustomValueType = FieldCustomValueTypeEnum.CustomKey },
new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value },
new() { FieldName = "Stage", FieldDbType = DbType.String, Value = "Qualification", CustomValueType = FieldCustomValueTypeEnum.Value } new() { FieldName = "Stage", FieldDbType = DbType.String, Value = "Qualification", CustomValueType = FieldCustomValueTypeEnum.Value }
}), }),
@ -1402,7 +1402,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
new() { new() {
ListFormCode = listForm.ListFormCode, ListFormCode = listForm.ListFormCode,
CultureName = LanguageCodes.En, CultureName = LanguageCodes.En,
SourceDbType = DbType.DateTime, SourceDbType = DbType.Date,
FieldName = "ExpectedCloseDate", FieldName = "ExpectedCloseDate",
Width = 100, Width = 100,
ListOrderNo = 10, ListOrderNo = 10,
@ -1616,7 +1616,7 @@ public class ListFormSeeder_Crm : IDataSeedContributor, ITransientDependency
]} ]}
}), }),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "ActionDate", FieldDbType = DbType.DateTime, Value = "@NOW", CustomValueType = FieldCustomValueTypeEnum.Value } new() { FieldName = "ActionDate", FieldDbType = DbType.DateTime, Value = "@NOW", CustomValueType = FieldCustomValueTypeEnum.CustomKey }
}), }),
} }
); );

View file

@ -60,7 +60,6 @@ export const mockPurchaseOrders: MmPurchaseOrder[] = [
}, },
], ],
receipts: [], receipts: [],
invoices: [],
creationTime: new Date("2024-01-20"), creationTime: new Date("2024-01-20"),
lastModificationTime: new Date("2024-02-03"), lastModificationTime: new Date("2024-02-03"),
requestId: "REQ001", requestId: "REQ001",
@ -130,7 +129,6 @@ export const mockPurchaseOrders: MmPurchaseOrder[] = [
}, },
], ],
receipts: [], receipts: [],
invoices: [],
creationTime: new Date("2024-01-22"), creationTime: new Date("2024-01-22"),
lastModificationTime: new Date("2024-02-08"), lastModificationTime: new Date("2024-02-08"),
requestId: "REQ002", requestId: "REQ002",
@ -200,7 +198,6 @@ export const mockPurchaseOrders: MmPurchaseOrder[] = [
}, },
], ],
receipts: [], receipts: [],
invoices: [],
creationTime: new Date("2024-01-25"), creationTime: new Date("2024-01-25"),
lastModificationTime: new Date("2024-01-26"), lastModificationTime: new Date("2024-01-26"),
requestId: "REQ003", requestId: "REQ003",