Skip to content

Firefly III: a personal finances manager

Merge branch 'develop' into CSV-ING

James Coleae967c027b2c
diff --cc app/Import/Specifics/IngDescription.php
index 382c9bb8a4,26cdf47c8d..684daade09
--- a/app/Import/Specifics/IngDescription.php
+++ b/app/Import/Specifics/IngDescription.php
@@@ -130,15 -136,11 +136,15 @@@ class IngDescription implements Specifi
}
/**
- * Move "Valutadatum" from the description to new column.
+ * Remove "Naam" (and its value) from the description.
*/
- protected function moveValutadatumDescription(): void
+ protected function removeNameIngDescription(): void
{
- $this->row[8] = preg_replace('/Naam:.*?([a-zA-Z\/]+:)/', '$1', $this->row[8]);
+ $matches = array();
+ if (preg_match('/Valutadatum: ([0-9-]+)/', $this->row[8], $matches)) {
+ $this->row[9] = date("Ymd", strtotime($matches[1]));
+ $this->row[8] = preg_replace('/Valutadatum: [0-9-]+/', '', $this->row[8]);
+ }
}
/**