nagasurendra commited on
Commit
bdeca48
·
verified ·
1 Parent(s): 13d0646

Update templates/order.html

Browse files
Files changed (1) hide show
  1. templates/order.html +2 -35
templates/order.html CHANGED
@@ -172,45 +172,12 @@
172
  </div>
173
  {% endfor %}
174
 
175
- <!-- Previous Pending Bill Items -->
176
- {% if pending_order %}
177
- <h5 class="mt-5">Previous Pending Order Details:</h5>
178
- {% for line in pending_order.Order_Details__c.split('\n') %}
179
- {% set item_parts = line.split('|') %}
180
- <div class="cart-item">
181
- <!-- Item Image -->
182
- <img src="{{ item_parts[4].strip().replace('Image:', '') }}"
183
- alt="{{ item_parts[0].strip() }}"
184
- onerror="this.src='/static/placeholder.jpg';">
185
-
186
- <!-- Item Details -->
187
- <div class="cart-item-details">
188
- <div class="cart-item-title">{{ item_parts[0].strip() }}</div> <!-- Item Name & Quantity -->
189
-
190
-
191
- <div class="cart-item-addons">
192
- <small class="text-muted">Add-ons: {{ item_parts[1].strip().replace('Add-Ons:', '') }}</small>
193
- </div>
194
-
195
- <div class="cart-item-instructions">
196
- <small class="text-muted">Instructions: {{ item_parts[2].strip().replace('Instructions:', '') }}</small>
197
- </div>
198
- </div>
199
-
200
- <!-- Price -->
201
- <div class="cart-item-actions m">
202
- <span style="font-size: 16px; margin-right: 13px">{{ item_parts[3].strip().replace('Price:', '') }}</span>
203
- </div>
204
- </div>
205
- {% endfor %}
206
- {% endif %}
207
-
208
- <!-- Total Section -->
209
  <div class="container mt-5 cart-item">
210
  <div class="container">
211
  <div class="d-flex justify-content-between mb-3">
212
  <p><strong>Sub-Total:</strong></p>
213
- <p class="cart-item-actions" style="font-size: 16px;">${{ order.Total_Amount__c }}</p>
214
  </div>
215
  <div class="d-flex justify-content-between mb-3">
216
  <p><strong>Discount:</strong></p>
 
172
  </div>
173
  {% endfor %}
174
 
175
+ <!-- Total Section (Updated for Combined Amounts) -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  <div class="container mt-5 cart-item">
177
  <div class="container">
178
  <div class="d-flex justify-content-between mb-3">
179
  <p><strong>Sub-Total:</strong></p>
180
+ <p class="cart-item-actions" style="font-size: 16px;">${{ "%.2f"|format(order.Total_Amount__c) }}</p>
181
  </div>
182
  <div class="d-flex justify-content-between mb-3">
183
  <p><strong>Discount:</strong></p>