Skip to content

Commit

Permalink
Merge pull request #4 from graze/adding_coalesce
Browse files Browse the repository at this point in the history
Adding coalesce
  • Loading branch information
AaronHagan4 authored Aug 8, 2023
2 parents 51af4b0 + 2693704 commit 162b221
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions models/shopify__order_lines.sql
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ joined as (
product_variants.option_2 as variant_option_2,
product_variants.option_3 as variant_option_3,
product_variants.tax_code as variant_tax_code,

tax_lines_aggregated.order_line_tax,
discount_allocation.discount_amount AS order_line_discount_allocation
coalesce(tax_lines_aggregated.order_line_tax, 0) as order_line_tax,
coalesce(discount_allocation.discount_amount, 0) as order_line_discount_allocation

from order_lines
left join refunds_aggregated
Expand Down

0 comments on commit 162b221

Please sign in to comment.