From e8b185256ec6fd4c16756e5dc59812503e727e30 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Fri, 13 Dec 2024 00:55:27 +0500 Subject: [PATCH] 13013: add specs --- .../lib/reports/suppliers/pay_your_suppliers_report_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/lib/reports/suppliers/pay_your_suppliers_report_spec.rb b/spec/lib/reports/suppliers/pay_your_suppliers_report_spec.rb index 9494342ee0..945c47f541 100644 --- a/spec/lib/reports/suppliers/pay_your_suppliers_report_spec.rb +++ b/spec/lib/reports/suppliers/pay_your_suppliers_report_spec.rb @@ -24,6 +24,7 @@ RSpec.describe "Pay Your Suppliers Report" do expect(table_row.producer).to eq(supplier.name) expect(table_row.producer_address).to eq(supplier.address.full_address) expect(table_row.producer_abn_acn).to eq("none") + expect(table_row.producer_charges_gst).to eq("No") expect(table_row.email).to eq("none") expect(table_row.hub).to eq(hub.name) expect(table_row.hub_address).to eq(hub.address.full_address) @@ -42,6 +43,7 @@ RSpec.describe "Pay Your Suppliers Report" do expect(table_row.total_excl_vat.to_f).to eq(10.0) expect(table_row.total_fees_excl_tax.to_f).to eq(0.0) expect(table_row.total_tax_on_fees.to_f).to eq(0.0) + expect(table_row.total_tax_on_product.to_f).to eq(0.0) expect(table_row.total_tax.to_f).to eq(0.0) expect(table_row.total.to_f).to eq(10.0) end @@ -94,11 +96,13 @@ RSpec.describe "Pay Your Suppliers Report" do expect(report_table_rows.length).to eq(1) table_row = report_table_rows.first + expect(table_row.producer_charges_gst).to eq('Yes') expect(table_row.total_excl_fees_and_tax.to_f).to eq(10.0) expect(table_row.total_excl_vat.to_f).to eq(10.1) expect(table_row.total_fees_excl_tax.to_f).to eq(0.1) expect(table_row.total_tax_on_fees.to_f).to eq(0.01) - expect(table_row.total_tax.to_f).to eq(1.0) + expect(table_row.total_tax_on_product.to_f).to eq(1.0) + expect(table_row.total_tax.to_f).to eq(1.01) expect(table_row.total.to_f).to eq(11.11) end end