Commit c1820924 authored by Jack Stupple's avatar Jack Stupple

match income outgoing with correct labels

parent e5b33018
......@@ -82,8 +82,8 @@ class CharacterMigration extends Migration
if ($_category == 'salary') {
$income_outgoing = 'income';
} else if (strpos($_category, 'other_') !== false) {
if ($_category == 'other_in') {
} else if (strpos($_category, 'Other') !== false) {
if ($_category == 'Other-Income') {
$income_outgoing = 'income';
} else {
$income_outgoing = 'outgoing';
......@@ -214,8 +214,8 @@ class CharacterMigration extends Migration
$income_outgoing = 'outgoing';
if ($_modifier['category'] == 'salary') {
$income_outgoing = 'income';
} else if (strpos($_modifier['category'], 'other_') !== false) {
if ($_modifier['category'] == 'other_in') {
} else if (strpos($_modifier['category'], 'Other') !== false) {
if ($_modifier['category'] === 'Other-Income') {
$income_outgoing = 'income';
} else {
$income_outgoing = 'outgoing';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment