This commit is contained in:
@@ -522,11 +522,9 @@ export async function POST(request: Request) {
|
|||||||
tenantRequest.id
|
tenantRequest.id
|
||||||
);
|
);
|
||||||
|
|
||||||
// Build the billing snapshot from the org's address. The wizard
|
// Build the billing snapshot from the org's address (already
|
||||||
// collected the address into billingAddress on first-ever orders;
|
// fetched above for the wizard's billing-address resolution).
|
||||||
// for subsequent ones we read the org_billing row. Either way we
|
// The snapshot is what the invoice + Stripe customer use.
|
||||||
// need a complete snapshot for the invoice + Stripe customer.
|
|
||||||
const orgBilling = await getOrgBilling(user.orgId);
|
|
||||||
const billingSnapshot: InvoiceBillingSnapshot = orgBilling
|
const billingSnapshot: InvoiceBillingSnapshot = orgBilling
|
||||||
? {
|
? {
|
||||||
companyName: orgBilling.companyName,
|
companyName: orgBilling.companyName,
|
||||||
|
|||||||
Reference in New Issue
Block a user