Revert "[Invoices] Notify if any order cannot be invoiced on bulk invoice sending"

This commit is contained in:
Filipe
2024-06-13 08:47:05 -06:00
committed by zanetagebka
parent 0beda91541
commit 03c5a9b4cc
2 changed files with 19 additions and 47 deletions

View File

@@ -363,22 +363,9 @@ RSpec.describe '
} must have a valid ABN before invoices can be used."
end
end
context "ABN is null" do
it_behaves_like "should not print the invoice"
context "with legal invoices feature", feature: :invoices do
it_behaves_like "should not print the invoice"
context "with legal invoices feature", feature: :invoices do
it_behaves_like "should not print the invoice"
end
end
context "ABN is empty string" do
before do
order4.distributor.update(abn: "123456789")
order5.distributor.update(abn: "")
end
it_behaves_like "should not print the invoice"
context "with legal invoices feature", feature: :invoices do
it_behaves_like "should not print the invoice"
end
end
end
end