-
-
Notifications
You must be signed in to change notification settings - Fork 731
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12980 from pacodelaluna/add-external-billing-id-o…
…n-enterprises Add external billing id on enterprises
- Loading branch information
Showing
11 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
db/migrate/20241113185651_add_external_billing_id_on_enterprises.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddExternalBillingIdOnEnterprises < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :enterprises, :external_billing_id, :string, limit: 128 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,9 +37,9 @@ | |
tax_rate_name: "Tax 1" | ||
) | ||
end | ||
let(:distributor1) { create(:enterprise, name: "Hub 1", owner:) } | ||
let(:distributor1) { create(:enterprise, name: "Hub 1", owner:, external_billing_id: 'INV1234') } | ||
let(:distributor2) { create(:enterprise, name: "Hub 2", owner:) } | ||
let(:distributor3) { create(:enterprise, name: "Hub 3", owner:) } | ||
let(:distributor3) { create(:enterprise, name: "Hub 3", owner:, external_billing_id: 'INV4321') } | ||
let(:owner) { create(:user, email: '[email protected]') } | ||
let(:order_cycle) { create(:simple_order_cycle) } | ||
let(:product) { create(:product) } | ||
|
@@ -64,6 +64,7 @@ | |
"Hub", | ||
"Hub ID", | ||
"Hub Business Number", | ||
"Hub External Billing Id", | ||
"Hub Legal Name", | ||
"Hub Contact Name", | ||
"Hub Public Email", | ||
|
@@ -86,6 +87,7 @@ | |
"Hub 1", | ||
order.distributor.id, | ||
"none", | ||
"INV1234", | ||
"none", | ||
"none", | ||
"none", | ||
|
@@ -110,6 +112,7 @@ | |
"none", | ||
"none", | ||
"none", | ||
"none", | ||
"[email protected]", | ||
"none", | ||
"10 Lovely Street", | ||
|
@@ -128,6 +131,7 @@ | |
"Hub 3", | ||
order_with_voucher_tax_excluded.distributor.id, | ||
"none", | ||
"INV4321", | ||
"none", | ||
"none", | ||
"none", | ||
|