v1.1.4 getPropertyDate

This commit is contained in:
bossanyit
2023-06-26 20:49:43 +02:00
parent 3bc2b74f74
commit 7e3d99b9a3
4 changed files with 44 additions and 3 deletions
+12
View File
@@ -133,6 +133,18 @@ class Customer {
}
}
String getPropertyDate(String propertyName) {
if (properties[propertyName] == null) {
return "";
} else {
if (properties[propertyName]!.dateAdd == null) {
return "";
} else {
return DateFormat('yyyy-MM-dd').format(properties[propertyName]!.dateAdd!);
}
}
}
setProperty(String propertyName, double value) {
properties[propertyName]!.propertyValue = value;
}