Repository navigation
refactor: simplify create pending lines - #2836
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes reorganize and enhance the billing API's handling of pending invoice lines. The creation of pending invoice lines is now explicitly scoped to a customer and currency, with new request and response models introduced. Endpoints and schemas are updated to reflect this structure, and corresponding service, handler, and test code are refactored to use the new types and logic. Validation and transaction logic are improved, and all affected tests are updated for compatibility. Changes
Possibly related PRs
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (1.64.8)Error: you are using a configuration file for golangci-lint v2 with golangci-lint v1: please use golangci-lint v2 Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
22cfa70 to
e8ba10c
Compare
e8ba10c to
0c0105e
Compare
There was a problem hiding this comment.
Actionable comments posted: 10
🔭 Outside diff range comments (1)
openmeter/billing/service/invoiceline.go (1)
240-248: 🛠️ Refactor suggestionRestoring the wrong invoice when both deleted & active gathering invoices exist
pendingInvoiceListis ordered bycreatedAt ASC; pickingItems[0]may revive an older, deleted invoice even when a newer active gathering invoice already exists for the same customer/currency.Consider:
- Filter out deleted invoices first; or
- Sort
DESCand choose the newest; or- Prefer the first non-deleted invoice.
This prevents accidental resurrection of sunset invoices.
🧹 Nitpick comments (12)
openmeter/billing/worker/subscription/sync.go (1)
533-539: Improved API call with explicit customer contextThe code now properly uses
CreatePendingInvoiceLinesInputwith explicitCustomerandCurrencyfields, and includes a clean filter for nil lines. This makes the customer and currency context explicit and centralizes it at the request level.Consider adding a brief comment explaining why some lines might be nil and need filtering, as this would help future maintainers understand the business logic.
Lines: lo.Filter(newLines, func(l *billing.Line, _ int) bool { + // Filter out nil lines - these occur when the line has zero amount or when line generation has failed return l != nil }),openmeter/billing/service/invoiceline.go (1)
23-28: Redundant mutation of line namespace / status / currencyEach input line is mutated twice – once before validation and again inside the
lo.Mapcall.
The second assignment is sufficient because nothing touches the lines between these two points.Removing the first loop avoids an extra pass and keeps mutation in one place:
- for i := range input.Lines { - input.Lines[i].Namespace = input.Customer.Namespace - input.Lines[i].Status = billing.InvoiceLineStatusValid - input.Lines[i].Currency = input.Currency - }Also applies to: 65-70
openmeter/billing/httpdriver/invoiceline.go (2)
30-33: Use strong type forCustomerIDparameter
CreatePendingLineParams.CustomerIDis a rawstring; downstream you immediately wrap it incustomer.CustomerID{ … }.
Accepting it asulid.ULID(or at least validating format) at the handler boundary prevents malformed IDs from reaching the service layer.- CustomerID string + CustomerID ulid.ULID
41-44:WithOperationNameis now misleadingThe handler registers
"CreateInvoiceLineByCustomer"even though the route & spec were renamed to pending-lines.
Renaming keeps tracing / metrics consistent.- httptransport.WithOperationName("CreateInvoiceLineByCustomer"), + httptransport.WithOperationName("CreatePendingInvoiceLine"),api/openapi.cloud.yaml (3)
1531-1536: HTTP 201 usage for creation is appropriate
The switch to201 Createdand the new response schema reference is correct and follows REST conventions. Consider adding aLocationheader to point to the created resource.
1586-1604: Customer-scope simulation endpoint is well-defined
ThePOST /api/v1/billing/customers/{customerId}/invoices/simulateendpoint correctly scopes simulation to a customer and returns theInvoiceschema. To reduce repetition, you could extract thecustomerIdparameter intocomponents/parametersand reference it here.
1752-1756: Add description for 201 response
The201response schema is defined but lacks adescriptionfield. Please include a brief description, for example:'201': description: An array of created invoices. content: application/json: schema: type: array items: $ref: '#/components/schemas/Invoice'api/openapi.yaml (5)
1530-1536: Include a Location header in 201 responseFor resource creation, it is best practice to return a
Locationheader pointing to the newly created resource. Please add:'201': description: The request has succeeded and a new resource has been created as a result. + headers: + Location: + description: URL of the newly created invoice + schema: + type: string + example: '/api/v1/billing/customers/{customerId}/invoices/{invoiceId}' content: application/json: schema: $ref: '#/components/schemas/InvoicePendingLineCreateResponse'
1662-1687: Align listInvoices description with capabilitiesThe
GET /api/v1/billing/invoicesendpoint summary is “List invoices” but the description suggests it only lists invoices for a specific customer, even though acustomersquery parameter exists. To avoid confusion, update the description to reflect that invoices can be filtered by customer and other criteria:-summary: List invoices -description: List invoices for a specific customer +summary: List invoices +description: List invoices with optional filters (e.g., by customer, status, date range)
1728-1745: RefineinvoicePendingLinesActionpath and cleanup parametersThe path
/invoices/invoiceis ambiguous and the emptyparameters: []block can be removed. Consider renaming this endpoint to be more RESTful (e.g.,/invoices/actions/pending-lines) and drop the empty array:-/api/v1/billing/invoices/invoice: - post: - parameters: [] + /api/v1/billing/invoices/actions/pending-lines: + post:
16491-16506: Add a minimum item constraint forlinesarrayIn the
InvoicePendingLineCreateInputschema, thelinesarray is required but can be empty. To guard against empty payloads, consider addingminItems: 1:lines: type: array + minItems: 1 items: $ref: '#/components/schemas/InvoicePendingLineCreate' description: The lines to be created.
16507-16530: Provide example values for the create responseAdding an
exampleblock toInvoicePendingLineCreateResponsewill help clients understand the payload structure. For instance:InvoicePendingLineCreateResponse: example: lines: - id: "01G65Z755AFWAKHE12NY0CQ9FH" description: "One-time setup fee" amount: 100 invoice: id: "01G65Z755AFWAKHE12NY0CQ9FH" total: 100 status: "pending" isInvoiceNew: true
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (19)
api/openapi.cloud.yaml(8 hunks)api/openapi.yaml(8 hunks)api/spec/src/billing/invoices.tsp(4 hunks)api/spec/src/billing/invoices/invoice.tsp(2 hunks)api/spec/src/cloud/main.tsp(1 hunks)openmeter/billing/httpdriver/invoiceline.go(6 hunks)openmeter/billing/invoiceline.go(2 hunks)openmeter/billing/service.go(1 hunks)openmeter/billing/service/invoiceline.go(4 hunks)openmeter/billing/worker/subscription/sync.go(1 hunks)openmeter/server/router/billing.go(1 hunks)openmeter/server/server_test.go(1 hunks)openmeter/subscription/subscription.go(2 hunks)test/app/custominvoicing/invocing_test.go(2 hunks)test/app/stripe/invoice_test.go(2 hunks)test/billing/discount_test.go(2 hunks)test/billing/invoice_test.go(11 hunks)test/billing/suite.go(1 hunks)test/billing/tax_test.go(2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (4)
openmeter/billing/service.go (1)
openmeter/billing/invoiceline.go (2)
CreatePendingInvoiceLinesInput(770-775)CreatePendingInvoiceLinesResult(812-816)
openmeter/server/router/billing.go (2)
openmeter/server/router/router.go (1)
Router(208-232)openmeter/billing/httpdriver/invoiceline.go (1)
CreatePendingLineParams(30-32)
openmeter/server/server_test.go (1)
openmeter/billing/invoiceline.go (2)
CreatePendingInvoiceLinesInput(770-775)CreatePendingInvoiceLinesResult(812-816)
openmeter/billing/service/invoiceline.go (11)
openmeter/billing/service/lineservice/service.go (3)
Service(22-24)Lines(174-174)Line(157-172)openmeter/billing/service/service.go (1)
Service(23-38)openmeter/billing/invoiceline.go (5)
CreatePendingInvoiceLinesInput(770-775)CreatePendingInvoiceLinesResult(812-816)InvoiceLineStatusValid(47-47)Line(280-294)UpsertInvoiceLinesAdapterInput(818-821)api/api.gen.go (5)
Customer(2129-2176)InvoiceLineStatusValid(406-406)Currency(1866-1878)ValidationError(6969-6978)Invoice(3300-3411)openmeter/customer/customer.go (1)
Customer(15-23)openmeter/billing/errors.go (1)
ValidationError(119-119)openmeter/billing/customeroverride.go (3)
GetCustomerOverrideInput(165-168)CustomerOverrideExpand(259-265)CustomerOverrideWithDetails(216-223)openmeter/billing/invoice.go (6)
Invoice(330-341)InvoiceID(207-207)GetInvoiceByIdInput(535-538)InvoiceExpandAll(225-230)DeleteInvoicesAdapterInput(570-570)ListInvoicesInput(634-672)pkg/slicesx/map.go (1)
Map(6-19)openmeter/billing/service/collectionat.go (1)
UpdateInvoiceCollectionAt(15-40)openmeter/billing/events.go (1)
NewInvoiceCreatedEvent(97-104)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: Test
- GitHub Check: E2E
- GitHub Check: CI
- GitHub Check: Analyze (go)
🔇 Additional comments (38)
openmeter/subscription/subscription.go (1)
75-80: Clean implementation of customer ID getterThe addition of the
GetCustomerID()method provides a convenient way to construct a typedcustomer.CustomerIDstruct from the subscription data. This supports the broader refactoring effort to simplify the pending line creation process by using consistent customer ID representation across the system.openmeter/server/router/billing.go (1)
128-134: API route updated to align with customer-scoped endpoint patternThe endpoint for creating pending invoice lines has been updated to follow the customer-scoped pattern, which aligns with the PR objective of simplifying pending line creation and supporting future enhancements.
The route change from
/api/v1/billing/invoices/linesto/api/v1/billing/customers/{customerId}/pending-linesmakes the API more RESTful by explicitly scoping operations to a customer.openmeter/billing/service.go (1)
43-43: Method signature updated to support simplified pending line creationThe
CreatePendingInvoiceLinesmethod signature has been updated to accept aCreatePendingInvoiceLinesInputstruct (which contains explicit Customer and Currency fields) and return a more informativeCreatePendingInvoiceLinesResultstructure.This change supports the simplified approach to pending line creation by making the customer and currency context explicit at the input level, rather than embedded within individual line items.
api/spec/src/billing/invoices/invoice.tsp (2)
486-486: Updated property omission to support customer-scoped endpointThe
currencyproperty has been added to the list of omitted properties for theInvoiceUsageBasedPendingLineCreatemodel, which aligns with the refactoring to move currency specification to the parent request structure rather than individual line items.This change supports the simplified approach where currency is specified once at the request level for all pending lines.
498-499: Updated property omission to support customer-scoped endpointSimilar to the usage-based model, the
currencyproperty has been added to the list of omitted properties for theInvoiceFlatFeePendingLineCreatemodel. This ensures consistency in how currency is specified across different types of pending lines.This change maintains consistency with the refactoring pattern applied throughout the codebase.
openmeter/server/server_test.go (1)
1401-1402: Method signature updated to match the new billing service interfaceThe
CreatePendingInvoiceLinesmethod has been correctly updated to reflect the new input and output types. The method now accepts a structuredCreatePendingInvoiceLinesInputwith explicit customer and currency fields, and returns a structuredCreatePendingInvoiceLinesResultthat encapsulates created lines and invoice information.api/spec/src/cloud/main.tsp (1)
213-216: Interface renamed to reflect expanded functionalityThe interface has been appropriately renamed from
InvoiceSimulationEndpointstoCustomerInvoiceEndpointsto reflect its broader purpose. The route path has also been updated from.../invoices/simulateto.../invoices, indicating this endpoint now handles more general invoice operations. This aligns with the PR objective of simplifying and reorganizing the billing API.test/billing/tax_test.go (5)
214-219: Input structure updated to use explicit customer and currency fieldsThe test has been correctly updated to use the new
CreatePendingInvoiceLinesInputstructure with explicitCustomerandCurrencyfields at the top level, aligning with the simplified API design that scopes pending line creation to a single customer and currency.
220-246: Line structure flattened and simplifiedThe line structure has been properly refactored to use direct field initialization instead of nested wrappers. This simplification improves code readability while maintaining all the necessary information like tax configuration and metadata.
252-253: Updated result access patternThe assertion now correctly accesses the lines via the
res.Linesfield of the structured result, reflecting the new return type.
284-312: Helper method updated to use the new API structureThe
generateDraftInvoicehelper method has been properly updated to use the new input structure with explicit customer and currency fields, maintaining consistency throughout the test file.
316-317: Result assertion pattern updated consistentlyThe assertion pattern has been updated consistently to access lines via the structured result's
Linesfield.test/billing/discount_test.go (4)
94-126: Input structure updated for discount testsThe discount tests have been correctly updated to use the new
CreatePendingInvoiceLinesInputstructure with explicit customer and currency fields, maintaining consistency with the simplified API design.
128-133: Result access pattern updated for correlation ID testsThe code now correctly accesses the discount information through the structured result's
Linesfield, demonstrating proper adaptation to the API changes while preserving the test's behavior.
287-320: Usage discount test updated with new API structureThe usage discount test case has been properly updated to use the new input structure, maintaining the same test logic while adapting to the API changes.
324-326: Correlation ID check updated for new result structureThe correlation ID check logic has been correctly updated to access fields through the structured result's
Linesfield, preserving the test behavior while adapting to the API changes.test/billing/suite.go (2)
326-375: Properly refactored test helper to use the new API structureThe refactoring correctly implements the new customer-scoped approach by:
- Using
CreatePendingInvoiceLinesInputwith explicitCustomerandCurrencyfields- Replacing the previous
LineWithCustomerwrapper with direct*billing.Lineinstances- Maintaining all required line details while simplifying the structure
This refactoring aligns with the new API design where customer and currency context is centralized at the request level rather than duplicated in each line.
378-380: Updated result access to match new return typeThe code now correctly accesses pending lines via
res.Linesproperty instead of directly on the result, matching the newCreatePendingInvoiceLinesResultreturn type.test/app/stripe/invoice_test.go (2)
298-301: Properly updated test to use the new customer-scoped API structureThe test now correctly uses
CreatePendingInvoiceLinesInputwith explicitCustomerandCurrencyfields at the top level, aligning with the refactored billing API.
447-447: Correctly adjusted assertion to use new result structureThe assertion now correctly checks
pendingLines.Linesinstead of the previous direct slice, matching the newCreatePendingInvoiceLinesResultreturn type.test/app/custominvoicing/invocing_test.go (1)
181-184: Customer-scoped API structure correctly implementedThe test now properly uses
CreatePendingInvoiceLinesInputwith explicitCustomerandCurrencyfields at the top level, aligning with the refactored billing API.openmeter/billing/worker/subscription/sync.go (1)
520-532: Simplified line creation in subscription sync logicThe subscription synchronization logic now correctly maps to
*billing.Linepointers directly, removing the previousLineWithCustomerwrapper structure. This aligns with the new API design while maintaining the same business logic.openmeter/billing/invoiceline.go (3)
770-775: Well-structured refactoring with explicit scoping.The refactoring from the previous
CreateInvoiceLinesInputtoCreatePendingInvoiceLinesInputimproves clarity by making customer and currency parameters explicit. This aligns with the PR objective to simplify the pending line creation process by moving away from multi-customer, multi-currency scenarios.
777-809: Thorough validation logic for the new input structure.The validation logic has been updated to properly validate the customer ID and currency while ensuring that pending lines don't have an invoice ID, children, or a parent line ID. This enforces the constraints needed for the simplified pending line creation flow.
812-816: Good addition of a structured result type.The new
CreatePendingInvoiceLinesResultstruct provides more context to the caller about what happened during the operation, including whether a new invoice was created. This enhancement will make it easier for consumers of this API to handle different scenarios.test/billing/invoice_test.go (9)
135-171: Tests properly updated to use the new API structure.The test code has been correctly refactored to use the new
CreatePendingInvoiceLinesInputstructure with explicit Customer and Currency fields, rather than the previous approach withLineWithCustomer. The assertions properly check the returnedLinesfield from the result.
172-232: Good coverage of multiple currency scenarios.The test creates pending lines with different currencies (USD and HUF) to verify that separate gathering invoices are created for each currency. This ensures the refactored API maintains proper currency isolation while simplifying the API.
473-527: Comprehensive test for invoice creation flow.This test case thoroughly validates that invoice creation works correctly with the refactored API, covering both the happy path and edge cases like line identification and invoice ID management.
661-695: Proper testing of gathering invoice reuse.This test verifies that when staging more lines, the old gathering invoice gets reused appropriately, ensuring that the refactored API maintains backward compatibility in terms of behavioral expectations.
1491-1605: Thorough testing of progressive billing scenarios.The test code extensively covers complex scenarios like progressive billing with different price types, ensuring the refactored API continues to support all the required billing use cases.
2394-2440: Good test coverage for tiered pricing with graduated flat fees.This test case verifies that the refactored API correctly handles complex pricing scenarios like tiered pricing with both per-unit and flat components, ensuring billing accuracy is maintained.
2727-2838: Comprehensive test for non-progressive invoicing scenarios.The test validates that the refactored API properly handles non-progressive invoicing with various pricing models, ensuring that all billing scenarios continue to work correctly.
3435-3583: Edge case testing for zero-price invoicing.The test verifies that the refactored API correctly handles the edge case of empty invoices with zero pricing, ensuring that validation logic doesn't reject valid zero-amount billing scenarios.
3560-3583: Verify consistent handling of empty periods and zero amounts.The test cases for zero-amount and zero-price invoicing ensure that the refactored API maintains consistent behavior even in edge cases, which is important for billing systems to handle all possible customer scenarios.
api/spec/src/billing/invoices.tsp (2)
220-234: Potential duplicateoperationId– confirm uniqueness across the spec
@operationId("createPendingInvoiceLine")was already used by the (now-removed) un-scoped “POST /billing/invoices/lines” endpoint.
If that old path is still present in downstream OpenAPI docs or client code-gen, the clash will break generation.Please grep the whole spec and confirm this is the only remaining occurrence, or rename it (e.g.
createCustomerPendingInvoiceLine).
658-671: Check for field duplication between request-level and per-line currency
InvoicePendingLineCreateInputcarries a top-level mandatorycurrency, but the referencedInvoice.InvoicePendingLineCreatemodel historically also contained its owncurrency.
If the nested model has not been cleaned up, client requests will be forced to send the same value twice and the service could receive conflicting data.Please verify the nested model and, if the field is still present, deprecate / remove it or document precedence clearly.
api/openapi.yaml (2)
1751-1755: Responses correctly return an array of invoicesThe response schema for the
invoicePendingLinesActionoperation correctly defines atype: arrayofInvoiceobjects. LGTM.
1801-1804:⚠️ Potential issueReorder
requestBodybeforeresponsesOpenAPI requires
requestBodyto come beforeresponses. TheInvoicePendingLinesActionInputschema is currently placed after theresponsessection. Please move it above:- responses: - '201': - description: ... - content: - application/json: - schema: - $ref: '#/components/schemas/InvoicePendingLinesActionInput' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/InvoicePendingLinesActionInput' + responses: + '201': + description: ...Likely an incorrect or invalid review comment.
There was a problem hiding this comment.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
api/client/javascript/src/client/schemas.ts (1)
12923-12931: 🛠️ Refactor suggestionSame issue in the operation object –
customerIdmissing againThe
createPendingInvoiceLineoperation repeats the omission of the mandatorycustomerIdpath param (path?: never). The fix mirrors the previous snippet:- path?: never + path: { + customerId: string + }Without this, client code can neither type-safely nor ergonomically call the endpoint.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
api/client/javascript/src/client/billing.ts(2 hunks)api/client/javascript/src/client/schemas.ts(10 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
api/client/javascript/src/client/schemas.ts (2)
api/api.gen.go (2)
InvoicePendingLineCreateInput(3982-3988)InvoicePendingLineCreateResponse(3991-4000)api/client/go/client.gen.go (2)
InvoicePendingLineCreateInput(3577-3583)InvoicePendingLineCreateResponse(3586-3595)
⏰ Context from checks skipped due to timeout of 90000ms (13)
- GitHub Check: Artifacts / Benthos Collector Container image
- GitHub Check: Artifacts / Container image
- GitHub Check: CI
- GitHub Check: Quickstart
- GitHub Check: Lint
- GitHub Check: E2E
- GitHub Check: Developer environment
- GitHub Check: Commit hooks
- GitHub Check: Test
- GitHub Check: Migration Checks
- GitHub Check: Build
- GitHub Check: Analyze (javascript)
- GitHub Check: Analyze (go)
🔇 Additional comments (7)
api/client/javascript/src/client/billing.ts (4)
7-7: Import type correctly updated to match the new API model.The import has been updated from
InvoicePendingLineCreatetoInvoicePendingLineCreateInputto reflect the new type used in the refactored API, which aligns with the simplification goal of the PR.
364-372: JSDoc documentation clearly explains the new customer-scoped behavior.The enhanced JSDoc properly documents the new customer-scoped approach and provides clear explanations about when new gathering invoices will be created. This documentation is crucial for developers to understand the simplified behavior.
377-380: Method signature properly updated for customer-scoped API.The method signature has been correctly updated to:
- Accept a
customerIdparameter (required for the new customer-scoped endpoint)- Change the body parameter from an array to a single
InvoicePendingLineCreateInputobjectThis change aligns with the PR objective of simplifying the creation of pending lines by removing multi-customer support.
382-389:Details
❓ Verification inconclusive
API endpoint correctly updated to use the new customer-scoped path.
The implementation has been properly updated to use the new customer-scoped endpoint
/api/v1/billing/customers/{customerId}/invoices/pending-linesand correctly passes thecustomerIdin the path parameters.Let's verify that any existing client code that uses this method has been updated to accommodate the new signature:
🏁 Script executed:
#!/bin/bash # Search for direct calls to createLineItems to ensure they've been updated rg -A 2 -B 2 "createLineItems\(" --type js --type tsLength of output: 482
Verify consumer call sites for updated createLineItems signature
I ran a search across the repo and did not find any internal calls to
createLineItems(outside its definition inbilling.ts. Please ensure that all code (applications or documentation) invoking this client method has been updated to pass the newcustomerIdpath parameter along with the request body.• No occurrences of
createLineItems(found beyond its declaration in:
api/client/javascript/src/client/billing.tsapi/client/javascript/src/client/schemas.ts (3)
5773-5791: Schema additions look consistent
InvoicePendingLineCreateInput/Responsemirror the Go structs and align with the new endpoint design. No issues spotted.
10582-10585: Exports correctly expose new typesThe additional re-exports ensure consumers can reference the new models; looks good.
13102-13138: List-invoices filter expansion LGTMThe enriched query parameters preserve backwards compatibility while adding clarity. No concerns.
Overview
Remove support for multi customer, multi currency pending line creation as:
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Documentation
Tests