Skip to content

Commit

Permalink
YTJ-hausta ei vanhentunutta puhelinnumeroa
Browse files Browse the repository at this point in the history
  • Loading branch information
artoh committed Apr 12, 2024
1 parent 95555ad commit 8bfc533
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kitsas/uusikirjanpito/tiedotsivu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ void TiedotSivu::yTietoSaapuu()
const QVariantMap iMap = item.toMap();
const QString typeName = iMap.value("type").toString();
const QString value = iMap.value("value").toString();
// Skipataan vanhentuneet yhteystiedot
if( iMap.value("endDate").toDate().isValid() )
continue;
if( typeName == "Kotisivun www-osoite" && ui->webEdit->text().isEmpty()) {
ui->webEdit->setText( value );
} else if( typeName == "Puhelin" && ui->puhelinEdit->text().isEmpty()) {
Expand Down

0 comments on commit 8bfc533

Please sign in to comment.