Attach Costco discounts to purchase rows
This commit is contained in:
@@ -33,6 +33,8 @@ OUTPUT_FIELDS = [
|
||||
"reward_savings",
|
||||
"coupon_savings",
|
||||
"coupon_price",
|
||||
"matched_discount_amount",
|
||||
"net_line_total",
|
||||
"image_url",
|
||||
"raw_order_path",
|
||||
"item_name_norm",
|
||||
@@ -371,6 +373,8 @@ def parse_item(order_id, order_date, raw_path, line_no, item):
|
||||
"reward_savings": stringify(item.get("rewardSavings")),
|
||||
"coupon_savings": stringify(item.get("couponSavings")),
|
||||
"coupon_price": stringify(item.get("couponPrice")),
|
||||
"matched_discount_amount": "",
|
||||
"net_line_total": stringify(item.get("totalPrice")),
|
||||
"image_url": extract_image_url(item),
|
||||
"raw_order_path": raw_path.as_posix(),
|
||||
"item_name_norm": normalized_name,
|
||||
|
||||
Reference in New Issue
Block a user