caboose-cms 0.8.37 → 0.8.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/caboose/my_account_edit_invoice.js +27 -23
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f74cebbce6c78f175007af58a31fc7ca382b619
|
4
|
+
data.tar.gz: a10f38da20b59896b341aed745f641f329a73633
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6f84435f2749865dac686fa7c14862bfe1abf9bb7777f0fbaafdd9e081bff8d08d04443bb8155740f81145df52b8080de769b36db532619e644f045ab863460
|
7
|
+
data.tar.gz: 1b272c8e6da0cf640fda7d847fb922711585df512707ca37cb09ee31a11a2a3a64e301710bda29933a177b5f6aea10e0da846151a9b6b47a86676b2fc7027e64
|
@@ -303,30 +303,34 @@ MyAccountInvoiceController.prototype = {
|
|
303
303
|
// Show all the packages and the line items in each package
|
304
304
|
unpackaged_line_items_table: function(table)
|
305
305
|
{
|
306
|
-
var that = this;
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
table.append($('<tr/>')
|
313
|
-
.append($('<th/>').html('Item'))
|
314
|
-
.append($('<th/>').html('Status'))
|
315
|
-
.append($('<th/>').html('Unit Price'))
|
316
|
-
.append($('<th/>').html('Quantity'))
|
317
|
-
.append($('<th/>').html('Subtotal'))
|
318
|
-
);
|
319
|
-
$.each(line_items, function(j, li) {
|
320
|
-
var tr = $('<tr/>');
|
321
|
-
tr.append($('<td/>').addClass('line_item_details' ).append(that.line_item_details(li)));
|
322
|
-
tr.append($('<td/>').addClass('line_item_status' ).attr('align', 'center').html(li.status));
|
323
|
-
tr.append($('<td/>').addClass('line_item_unit_price').attr('align', 'right' ).html(curr(li.unit_price)));
|
324
|
-
tr.append($('<td/>').addClass('line_item_quantity' ).attr('align', 'right' ).html(li.quantity));
|
325
|
-
tr.append($('<td/>').addClass('line_item_subtotal' ).attr('align', 'right' ).html(curr(li.subtotal)));
|
326
|
-
table.append(tr);
|
327
|
-
});
|
328
|
-
}
|
306
|
+
var that = this;
|
307
|
+
|
308
|
+
var count = 0;
|
309
|
+
var line_items = [];
|
310
|
+
$.each(that.invoice.line_items, function(i, li) {
|
311
|
+
line_items.push(li);
|
329
312
|
});
|
313
|
+
|
314
|
+
if (line_items.length > 0)
|
315
|
+
{
|
316
|
+
table.append($('<tr/>').append($('<th/>').attr('colspan', '5').addClass('package_header').html("Unpackaged Items")));
|
317
|
+
table.append($('<tr/>')
|
318
|
+
.append($('<th/>').html('Item'))
|
319
|
+
.append($('<th/>').html('Status'))
|
320
|
+
.append($('<th/>').html('Unit Price'))
|
321
|
+
.append($('<th/>').html('Quantity'))
|
322
|
+
.append($('<th/>').html('Subtotal'))
|
323
|
+
);
|
324
|
+
$.each(line_items, function(j, li) {
|
325
|
+
var tr = $('<tr/>');
|
326
|
+
tr.append($('<td/>').addClass('line_item_details' ).append(that.line_item_details(li)));
|
327
|
+
tr.append($('<td/>').addClass('line_item_status' ).attr('align', 'center').html(li.status));
|
328
|
+
tr.append($('<td/>').addClass('line_item_unit_price').attr('align', 'right' ).html(curr(li.unit_price)));
|
329
|
+
tr.append($('<td/>').addClass('line_item_quantity' ).attr('align', 'right' ).html(li.quantity));
|
330
|
+
tr.append($('<td/>').addClass('line_item_subtotal' ).attr('align', 'right' ).html(curr(li.subtotal)));
|
331
|
+
table.append(tr);
|
332
|
+
});
|
333
|
+
}
|
330
334
|
},
|
331
335
|
|
332
336
|
downloadable_line_items_table: function(table)
|
data/lib/caboose/version.rb
CHANGED