diff --git a/tailbone/templates/custorders/create.mako b/tailbone/templates/custorders/create.mako index cfbc4894..98dafda4 100644 --- a/tailbone/templates/custorders/create.mako +++ b/tailbone/templates/custorders/create.mako @@ -552,6 +552,10 @@ {{ productSize }} + + {{ productCaseQuantity }} + + 2021-01-01 --> - - {{ productCaseQuantity }} + + + {{ productSalePriceDisplay }} + + + + + + {{ productSaleEndsDisplay }} + @@ -622,6 +636,20 @@ + + + {{ productSalePriceDisplay }} + + + + + + {{ productSaleEndsDisplay }} + + + {{ productCaseQuantity }} @@ -629,7 +657,9 @@ {{ productCasePriceDisplay }} @@ -702,11 +732,6 @@ field="description" sortable> {{ props.row.description }} - - - {{ props.row.size }} @@ -716,6 +741,22 @@ {{ props.row.unit_price_display }} + + + {{ props.row.sale_price_display }} + + + + + + {{ props.row.sale_ends_display }} + + + @@ -933,6 +974,8 @@ productCaseQuantity: null, productUnitPriceDisplay: null, productCasePriceDisplay: null, + productSalePriceDisplay: null, + productSaleEndsDisplay: null, productURL: null, productImageURL: null, productQuantity: null, @@ -1486,6 +1529,8 @@ this.productCaseQuantity = null this.productUnitPriceDisplay = null this.productCasePriceDisplay = null + this.productSalePriceDisplay = null + this.productSaleEndsDisplay = null this.productImageURL = '${request.static_url('tailbone:static/img/product.png')}' this.productQuantity = 1 this.productUnitChoices = this.defaultUnitChoices @@ -1533,6 +1578,8 @@ this.productCaseQuantity = selected.case_quantity this.productUnitPriceDisplay = selected.unit_price_display this.productCasePriceDisplay = selected.case_price_display + this.productSalePriceDisplay = selected.sale_price_display + this.productSaleEndsDisplay = selected.sale_ends_display this.productImageURL = selected.image_url this.productURL = selected.url this.productQuantity = 1 @@ -1561,6 +1608,8 @@ this.productURL = row.product_url this.productUnitPriceDisplay = row.unit_price_display this.productCasePriceDisplay = row.case_price_display + this.productSalePriceDisplay = row.sale_price_display + this.productSaleEndsDisplay = row.sale_ends_display this.productImageURL = row.product_image_url this.productQuantity = row.order_quantity this.productUnitChoices = row.order_uom_choices @@ -1606,6 +1655,8 @@ this.productCaseQuantity = null this.productUnitPriceDisplay = null this.productCasePriceDisplay = null + this.productSalePriceDisplay = null + this.productSaleEndsDisplay = null this.productURL = null this.productImageURL = null this.productUnitChoices = this.defaultUnitChoices @@ -1651,6 +1702,8 @@ this.productCaseQuantity = response.data.case_quantity this.productUnitPriceDisplay = response.data.unit_price_display this.productCasePriceDisplay = response.data.case_price_display + this.productSalePriceDisplay = response.data.sale_price_display + this.productSaleEndsDisplay = response.data.sale_ends_display this.productURL = response.data.url this.productImageURL = response.data.image_url this.setProductUnitChoices(response.data.uom_choices)