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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5553dcb87bfffa33afeb38413e06139408b2fca5
4
- data.tar.gz: be19b6c314a15b6d21383fa97501c3db1b3af38a
3
+ metadata.gz: 1f74cebbce6c78f175007af58a31fc7ca382b619
4
+ data.tar.gz: a10f38da20b59896b341aed745f641f329a73633
5
5
  SHA512:
6
- metadata.gz: 18ab34a8272e6fbfb4d801679e592efaf454798527ff54e1b2f4358713b525660198a9c82a1f97d1fb8afbfc86206661e85e520b6c05731dd9b372dbd84fcc2c
7
- data.tar.gz: c7c05847ef25b9249d6ecf1bddcd5c040d37013084051a5304dce776aba83daa8abc9df47d8f73a0cd809414fc52e321b82313fcf726bd193eb8585c568a146d
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
- $.each(that.invoice.invoice_packages, function(i, op) {
308
- var line_items = that.line_items_for_invoice_package(op.id);
309
- if (line_items && line_items.length > 0)
310
- {
311
- table.append($('<tr/>').append($('<th/>').attr('colspan', '5').addClass('package_header').html("Unpackaged Items")));
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)
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.8.37'
2
+ VERSION = '0.8.38'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.37
4
+ version: 0.8.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry