@ -744,6 +744,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["value"]).toinclude("The mortgage and deposit added together is £15,000.00 and the purchase price times by the equity is £8,400.00. These figures should be the same.")
expect(record.errors["deposit"]).toinclude("The mortgage and deposit added together is £15,000.00 and the purchase price times by the equity is £8,400.00. These figures should be the same.")
expect(record.errors["equity"]).toinclude("The mortgage and deposit added together is £15,000.00 and the purchase price times by the equity is £8,400.00. These figures should be the same.")
expect(record.errors["type"]).toinclude("The mortgage and deposit added together is £15,000.00 and the purchase price times by the equity is £8,400.00. These figures should be the same.")
expect(record.errors["cashdis"]).not_toinclude("The mortgage and deposit added together is £15,000.00 and the purchase price times by the equity is £8,400.00. These figures should be the same.")
end
@ -760,6 +761,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).toinclude("The mortgage, deposit and cash discount added together is £15,200.00 and the purchase price times by the equity is £8,400.00. These figures should be the same.")
expect(record.errors["equity"]).toinclude("The mortgage, deposit and cash discount added together is £15,200.00 and the purchase price times by the equity is £8,400.00. These figures should be the same.")
expect(record.errors["cashdis"]).toinclude("The mortgage, deposit and cash discount added together is £15,200.00 and the purchase price times by the equity is £8,400.00. These figures should be the same.")
expect(record.errors["type"]).toinclude("The mortgage, deposit and cash discount added together is £15,200.00 and the purchase price times by the equity is £8,400.00. These figures should be the same.")
end
end
@ -775,6 +777,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["equity"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -791,6 +794,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["equity"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -805,6 +809,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["equity"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
@ -825,6 +830,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["value"]).toinclude("The deposit is £5,000.00 and the purchase price times by the equity is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["deposit"]).toinclude("The deposit is £5,000.00 and the purchase price times by the equity is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["equity"]).toinclude("The deposit is £5,000.00 and the purchase price times by the equity is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["type"]).toinclude("The deposit is £5,000.00 and the purchase price times by the equity is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["cashdis"]).not_toinclude("The deposit is £5,000.00 and the purchase price times by the equity is £8,400.00. As no mortgage was used, these figures should be the same.")
end
@ -841,6 +847,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).toinclude("The deposit and cash discount added together is £5,200.00 and the purchase price times by the equity is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["equity"]).toinclude("The deposit and cash discount added together is £5,200.00 and the purchase price times by the equity is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["cashdis"]).toinclude("The deposit and cash discount added together is £5,200.00 and the purchase price times by the equity is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["type"]).toinclude("The deposit and cash discount added together is £5,200.00 and the purchase price times by the equity is £8,400.00. As no mortgage was used, these figures should be the same.")
end
end
@ -856,6 +863,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["equity"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -872,6 +880,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["equity"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -886,6 +895,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["equity"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -902,6 +912,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["equity"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -933,6 +944,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["value"]).toinclude("The mortgage and deposit added together is £15,000.00 and the percentage bought times the purchase price is £8,400.00. These figures should be the same.")
expect(record.errors["deposit"]).toinclude("The mortgage and deposit added together is £15,000.00 and the percentage bought times the purchase price is £8,400.00. These figures should be the same.")
expect(record.errors["stairbought"]).toinclude("The mortgage and deposit added together is £15,000.00 and the percentage bought times the purchase price is £8,400.00. These figures should be the same.")
expect(record.errors["type"]).toinclude("The mortgage and deposit added together is £15,000.00 and the percentage bought times the purchase price is £8,400.00. These figures should be the same.")
expect(record.errors["cashdis"]).not_toinclude("The mortgage and deposit added together is £15,000.00 and the percentage bought times the purchase price is £8,400.00. These figures should be the same.")
end
@ -949,6 +961,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).toinclude("The mortgage, deposit and cash discount added together is £15,200.00 and the percentage bought times the purchase price is £8,400.00. These figures should be the same.")
expect(record.errors["stairbought"]).toinclude("The mortgage, deposit and cash discount added together is £15,200.00 and the percentage bought times the purchase price is £8,400.00. These figures should be the same.")
expect(record.errors["cashdis"]).toinclude("The mortgage, deposit and cash discount added together is £15,200.00 and the percentage bought times the purchase price is £8,400.00. These figures should be the same.")
expect(record.errors["type"]).toinclude("The mortgage, deposit and cash discount added together is £15,200.00 and the percentage bought times the purchase price is £8,400.00. These figures should be the same.")
end
end
@ -964,6 +977,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["stairbought"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -980,6 +994,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["stairbought"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -994,6 +1009,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["stairbought"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -1009,6 +1025,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["stairbought"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
@ -1032,6 +1049,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["value"]).toinclude("The deposit is £5,000.00 and the percentage bought times the purchase price is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["deposit"]).toinclude("The deposit is £5,000.00 and the percentage bought times the purchase price is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["stairbought"]).toinclude("The deposit is £5,000.00 and the percentage bought times the purchase price is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["type"]).toinclude("The deposit is £5,000.00 and the percentage bought times the purchase price is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["cashdis"]).not_toinclude("The deposit is £5,000.00 and the percentage bought times the purchase price is £8,400.00. As no mortgage was used, these figures should be the same.")
end
@ -1048,6 +1066,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).toinclude("The deposit and cash discount added together is £5,200.00 and the percentage bought times the purchase price is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["stairbought"]).toinclude("The deposit and cash discount added together is £5,200.00 and the percentage bought times the purchase price is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["cashdis"]).toinclude("The deposit and cash discount added together is £5,200.00 and the percentage bought times the purchase price is £8,400.00. As no mortgage was used, these figures should be the same.")
expect(record.errors["type"]).toinclude("The deposit and cash discount added together is £5,200.00 and the percentage bought times the purchase price is £8,400.00. As no mortgage was used, these figures should be the same.")
end
end
@ -1063,6 +1082,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["stairbought"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -1079,6 +1099,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["stairbought"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -1093,6 +1114,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["deposit"]).tobe_empty
expect(record.errors["stairbought"]).tobe_empty
expect(record.errors["cashdis"]).tobe_empty
expect(record.errors["type"]).tobe_empty
end
end
end
@ -1108,6 +1130,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do