now products have different options, like different parameters
This commit is contained in:
@@ -12,6 +12,7 @@ pub fn items(items: &[order_items::Model]) -> Vec<Value> {
|
||||
.map(|item| {
|
||||
json!({
|
||||
"product_name": item.product_name,
|
||||
"variant_label": item.variant_label,
|
||||
"quantity": item.quantity,
|
||||
"unit_price": format_price(item.unit_price_cents),
|
||||
"line_total": format_price(item.unit_price_cents * i64::from(item.quantity)),
|
||||
|
||||
Reference in New Issue
Block a user