Skip to content

WooCommerce connector: add tax, discount and shipping mapping fixture #134

Open

Description

@sridharkalaibala

Parent: #34

Problem

Imported ecommerce orders must preserve totals, tax, discounts, shipping, and rounding clearly.

Boundary

Use fake order data only. Do not claim tax compliance for any country.

Acceptance criteria

  • Add fixtures covering line discounts, order discounts, shipping, tax-inclusive prices, and rounding.
  • Define expected Posnic sale totals.
  • Include a rejected fixture where totals do not reconcile.
  • Document assumptions and unsupported cases.

Activity

  1. added
    enhancement
    help wanted
    area: integrations
    needs evidence
    size: medium
    community edition
    area: ecommerce
    on Sep 1, 2026
  2. reparateur24 commented on Nov 21, 2026

    @reparateur24

    Hi! I'd like to work on this issue if it's still available.

    I can create the fake WooCommerce order fixtures covering line/order discounts, shipping, tax-inclusive pricing, and rounding, along with the expected Posnic sale totals, a rejected fixture for non-reconciling totals, and clear documentation of the assumptions and unsupported cases.

    Please let me know if I can take this on!

  3. sridharkalaibala commented on Nov 22, 2026

    @sridharkalaibala
    ContributorAuthor

    Thanks for volunteering! There is no current assignee, and your proposed scope matches the acceptance criteria. Please keep this to synthetic fixtures, expected totals, focused offline tests and documentation: no live WooCommerce calls or production import changes. Cover each listed amount case plus a rejected non-reconciling total, use exact decimal/minor-unit arithmetic, and clearly label assumptions without tax-compliance claims. Please open one focused PR against develop referencing #134 and include the test commands/results.

  4. reparateur24 commented on Nov 22, 2026

    @reparateur24

    Thanks for confirming! I'm starting on the order calculation fixtures targeting the develop branch.
    Here is the scope I'll cover in the synthetic dataset:
    Standard orders with fixed and percentage discounts
    Shipping fees and tax calculations with tricky rounding edge cases (using exact integer/cent arithmetic to avoid floating-point drift)
    At least one invalid/rejected order scenario
    I'll open a draft PR shortly for feedback on the structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ecommercearea: integrationscommunity editionenhancementhelp wantedneeds evidencesize: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions