feat(): added percentage calculations for all cases (#6300)

what:

- adds missing percentage calculations for items and shipping methods
This commit is contained in:
Riqwan Thamir
2024-02-02 11:39:34 +00:00
committed by GitHub
parent 9fda6a6824
commit abc30517cb
7 changed files with 3711 additions and 1735 deletions
@@ -51,13 +51,13 @@ export interface ComputeActionAdjustmentLine extends Record<string, unknown> {
export interface ComputeActionItemLine extends Record<string, unknown> {
id: string
quantity: number
unit_price: number
subtotal: number
adjustments?: ComputeActionAdjustmentLine[]
}
export interface ComputeActionShippingLine extends Record<string, unknown> {
id: string
unit_price: number
subtotal: number
adjustments?: ComputeActionAdjustmentLine[]
}