Skip to content

Commit

Permalink
fixed printing logo
Browse files Browse the repository at this point in the history
  • Loading branch information
TJTorola committed May 26, 2016
1 parent 148ef4d commit b5e420a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion public/js/main.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -17140,7 +17140,7 @@ module.exports = {
}
}
};
;(typeof module.exports === "function"? module.exports.options: module.exports).template = "\n<span _v-28c3804a=\"\">\n\t<button class=\"btn btn-sm btn-block btn-primary\" @click=\"print\" _v-28c3804a=\"\">\n\t\t<i class=\"fa fa-print\" _v-28c3804a=\"\"></i> Print\n\t</button>\n\n\t<div class=\"print-area\" _v-28c3804a=\"\">\n\t\t<div class=\"row\" _v-28c3804a=\"\">\n\t\t\t<div class=\"col-xs-6\" _v-28c3804a=\"\">\n\t\t\t\t<img src=\"/img/webLogoOutlined.svg\" class=\"img-responsive\" _v-28c3804a=\"\">\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-6\" _v-28c3804a=\"\">\n\t\t\t\t<table class=\"print-table\" style=\"float:right;\" _v-28c3804a=\"\">\n\t\t\t\t\t<tbody _v-28c3804a=\"\"><tr _v-28c3804a=\"\">\n\t\t\t\t\t\t<td style=\"width:2in;\" _v-28c3804a=\"\">Invoice No.</td>\n\t\t\t\t\t\t<td style=\"width:2in;\" _v-28c3804a=\"\">INV{{ invoice.id }}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr _v-28c3804a=\"\">\n\t\t\t\t\t\t<td _v-28c3804a=\"\">Date</td>\n\t\t\t\t\t\t<td _v-28c3804a=\"\">{{ invoice.created_at }}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody></table>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<br _v-28c3804a=\"\">\n\n\t\t<div class=\"row\" _v-28c3804a=\"\">\n\t\t\t<div class=\"col-xs-6\" v-if=\"invoice.seperate_billing\" _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Ship To:</b><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.first_name }} {{ invoice.last_name }} <span v-if=\"invoice.company\" _v-28c3804a=\"\">of {{ invoice.company }}</span><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.street_address_first }}<br _v-28c3804a=\"\">\n\t\t\t\t<div v-if=\"invoice.street_address_second\" _v-28c3804a=\"\">{{ invoice.street_address_second }}</div>\n\t\t\t\t<div v-if=\"invoice.apt\" _v-28c3804a=\"\">(Apt/Suite/Bld)#{{ invoice.apt }}</div>\n\t\t\t\t{{ invoice.city }}, {{ invoice.state }}, {{ invoice.country }}<br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.zip }}<br _v-28c3804a=\"\"><br _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Bill To:</b><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.billing_first_name }} {{ invoice.billing_last_name }} <span v-if=\"invoice.billing_company\" _v-28c3804a=\"\">of {{ invoice.billing_company }}</span><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.billing_street_address_first }}<br _v-28c3804a=\"\">\n\t\t\t\t<div v-if=\"invoice.billing_street_address_second\" _v-28c3804a=\"\">{{ invoice.billing_street_address_second }}</div>\n\t\t\t\t<div v-if=\"invoice.billing_apt\" _v-28c3804a=\"\">(Apt/Suite/Bld)#{{ invoice.billing_apt }}</div>\n\t\t\t\t{{ invoice.billing_city }}, {{ invoice.billing_state }}, {{ invoice.billing_country }}<br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.billing_zip }}\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-6\" v-else=\"\" _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Bill/Ship To:</b><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.first_name }} {{ invoice.last_name }} <span v-if=\"invoice.company\" _v-28c3804a=\"\">of {{ invoice.company }}</span><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.street_address_first }}<br _v-28c3804a=\"\">\n\t\t\t\t<div v-if=\"invoice.street_address_second\" _v-28c3804a=\"\">{{ invoice.street_address_second }}</div>\n\t\t\t\t<div v-if=\"invoice.apt\" _v-28c3804a=\"\">(Apt/Suite/Bld)#{{ invoice.apt }}</div>\n\t\t\t\t{{ invoice.city }}, {{ invoice.state }}, {{ invoice.country }}<br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.zip }}\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-6 text-right\" _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Pangolin 4x4</b><br _v-28c3804a=\"\">\n\t\t\t\t1360 Tamarack Street<br _v-28c3804a=\"\">\n\t\t\t\tSpringfield, Oregon<br _v-28c3804a=\"\">\n\t\t\t\t97477<br _v-28c3804a=\"\">\n\t\t\t\t541.606.0095\n\t\t\t</div>\n\t\t</div>\n\n\t\t<br _v-28c3804a=\"\">\n\n\t\t<div class=\"row\" _v-28c3804a=\"\">\n\t\t\t<div class=\"col-xs-12\" _v-28c3804a=\"\">\n\t\t\t\t<table class=\"print-table\" style=\"width:100%;\" _v-28c3804a=\"\">\n\t\t\t\t\t<thead _v-28c3804a=\"\">\n\t\t\t\t\t\t<tr _v-28c3804a=\"\">\n\t\t\t\t\t\t\t<th style=\"text-align:left;\" _v-28c3804a=\"\">Description</th>\n\t\t\t\t\t\t\t<th style=\"width:1in;text-align:center;\" _v-28c3804a=\"\">Quantity</th>\n\t\t\t\t\t\t\t<th style=\"width:1in;text-align:center;\" _v-28c3804a=\"\">Unit Cost</th>\n\t\t\t\t\t\t\t<th style=\"width:1in;text-align:right;\" _v-28c3804a=\"\">Amount</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody _v-28c3804a=\"\">\n\t\t\t\t\t\t<tr v-for=\"item in invoice.cart.items\" _v-28c3804a=\"\">\n\t\t\t\t\t\t<td _v-28c3804a=\"\">{{{ item.name | nl2br }}}</td>\n\t\t\t\t\t\t\t<td _v-28c3804a=\"\">{{ item.count }}</td>\n\t\t\t\t\t\t\t<td _v-28c3804a=\"\">{{ item.price | currency }}</td>\n\t\t\t\t\t\t\t<td _v-28c3804a=\"\">{{ parseFloat(item.count) * parseFloat(item.price) | currency }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t\t<br _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Status:</b>\n\t\t\t\t<span v-if=\"invoice.shipped\" _v-28c3804a=\"\">Shipped</span>\n\t\t\t\t<span v-if=\"invoice.paid &amp;&amp; !invoice.shipped\" _v-28c3804a=\"\">Paid</span>\n\t\t\t\t<span v-if=\"invoice.billed &amp;&amp; !invoice.paid &amp;&amp; !invoice.shipped\" _v-28c3804a=\"\">Billed</span>\n\t\t\t\t<span v-if=\"!invoice.billed &amp;&amp; !invoice.paid &amp;&amp; !invoice.shipped\" _v-28c3804a=\"\">Unbilled</span>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<hr _v-28c3804a=\"\">\n\n\t\t<div class=\"row\" _v-28c3804a=\"\">\n\t\t\t<div class=\"col-xs-12\" _v-28c3804a=\"\">\n\t\t\t\t<p style=\"float:right;width:1.2in;text-align:right;\" _v-28c3804a=\"\">\n\t\t\t\t\t{{ invoice.subtotal | currency }}<br _v-28c3804a=\"\">\n\t\t\t\t\t{{ invoice.shipping_cost | currency }}<br _v-28c3804a=\"\">\n\t\t\t\t\t<br _v-28c3804a=\"\">\n\t\t\t\t\t{{ parseFloat(invoice.subtotal) + parseFloat(invoice.shipping_cost) | currency }}\n\t\t\t\t</p>\n\t\t\t\t<p style=\"float:right;text-align:right;\" _v-28c3804a=\"\">\n\t\t\t\t\t<b _v-28c3804a=\"\">Subtotal:</b><br _v-28c3804a=\"\">\n\t\t\t\t\t<b _v-28c3804a=\"\">Shipping:</b><br _v-28c3804a=\"\">\n\t\t\t\t\t<br _v-28c3804a=\"\">\n\t\t\t\t\t<b _v-28c3804a=\"\">Total:</b>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</span>\n"
;(typeof module.exports === "function"? module.exports.options: module.exports).template = "\n<span _v-28c3804a=\"\">\n\t<button class=\"btn btn-sm btn-block btn-primary\" @click=\"print\" _v-28c3804a=\"\">\n\t\t<i class=\"fa fa-print\" _v-28c3804a=\"\"></i> Print\n\t</button>\n\n\t<div class=\"print-area\" _v-28c3804a=\"\">\n\t\t<div class=\"row\" _v-28c3804a=\"\">\n\t\t\t<div class=\"col-xs-6\" _v-28c3804a=\"\">\n\t\t\t\t<img src=\"/img/store/webLogoOutlined.svg\" class=\"img-responsive\" _v-28c3804a=\"\">\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-6\" _v-28c3804a=\"\">\n\t\t\t\t<table class=\"print-table\" style=\"float:right;\" _v-28c3804a=\"\">\n\t\t\t\t\t<tbody _v-28c3804a=\"\"><tr _v-28c3804a=\"\">\n\t\t\t\t\t\t<td style=\"width:2in;\" _v-28c3804a=\"\">Invoice No.</td>\n\t\t\t\t\t\t<td style=\"width:2in;\" _v-28c3804a=\"\">INV{{ invoice.id }}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr _v-28c3804a=\"\">\n\t\t\t\t\t\t<td _v-28c3804a=\"\">Date</td>\n\t\t\t\t\t\t<td _v-28c3804a=\"\">{{ invoice.created_at }}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody></table>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<br _v-28c3804a=\"\">\n\n\t\t<div class=\"row\" _v-28c3804a=\"\">\n\t\t\t<div class=\"col-xs-6\" v-if=\"invoice.seperate_billing\" _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Ship To:</b><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.first_name }} {{ invoice.last_name }} <span v-if=\"invoice.company\" _v-28c3804a=\"\">of {{ invoice.company }}</span><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.street_address_first }}<br _v-28c3804a=\"\">\n\t\t\t\t<div v-if=\"invoice.street_address_second\" _v-28c3804a=\"\">{{ invoice.street_address_second }}</div>\n\t\t\t\t<div v-if=\"invoice.apt\" _v-28c3804a=\"\">(Apt/Suite/Bld)#{{ invoice.apt }}</div>\n\t\t\t\t{{ invoice.city }}, {{ invoice.state }}, {{ invoice.country }}<br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.zip }}<br _v-28c3804a=\"\"><br _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Bill To:</b><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.billing_first_name }} {{ invoice.billing_last_name }} <span v-if=\"invoice.billing_company\" _v-28c3804a=\"\">of {{ invoice.billing_company }}</span><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.billing_street_address_first }}<br _v-28c3804a=\"\">\n\t\t\t\t<div v-if=\"invoice.billing_street_address_second\" _v-28c3804a=\"\">{{ invoice.billing_street_address_second }}</div>\n\t\t\t\t<div v-if=\"invoice.billing_apt\" _v-28c3804a=\"\">(Apt/Suite/Bld)#{{ invoice.billing_apt }}</div>\n\t\t\t\t{{ invoice.billing_city }}, {{ invoice.billing_state }}, {{ invoice.billing_country }}<br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.billing_zip }}\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-6\" v-else=\"\" _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Bill/Ship To:</b><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.first_name }} {{ invoice.last_name }} <span v-if=\"invoice.company\" _v-28c3804a=\"\">of {{ invoice.company }}</span><br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.street_address_first }}<br _v-28c3804a=\"\">\n\t\t\t\t<div v-if=\"invoice.street_address_second\" _v-28c3804a=\"\">{{ invoice.street_address_second }}</div>\n\t\t\t\t<div v-if=\"invoice.apt\" _v-28c3804a=\"\">(Apt/Suite/Bld)#{{ invoice.apt }}</div>\n\t\t\t\t{{ invoice.city }}, {{ invoice.state }}, {{ invoice.country }}<br _v-28c3804a=\"\">\n\t\t\t\t{{ invoice.zip }}\n\t\t\t</div>\n\t\t\t<div class=\"col-xs-6 text-right\" _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Pangolin 4x4</b><br _v-28c3804a=\"\">\n\t\t\t\t1360 Tamarack Street<br _v-28c3804a=\"\">\n\t\t\t\tSpringfield, Oregon<br _v-28c3804a=\"\">\n\t\t\t\t97477<br _v-28c3804a=\"\">\n\t\t\t\t541.606.0095\n\t\t\t</div>\n\t\t</div>\n\n\t\t<br _v-28c3804a=\"\">\n\n\t\t<div class=\"row\" _v-28c3804a=\"\">\n\t\t\t<div class=\"col-xs-12\" _v-28c3804a=\"\">\n\t\t\t\t<table class=\"print-table\" style=\"width:100%;\" _v-28c3804a=\"\">\n\t\t\t\t\t<thead _v-28c3804a=\"\">\n\t\t\t\t\t\t<tr _v-28c3804a=\"\">\n\t\t\t\t\t\t\t<th style=\"text-align:left;\" _v-28c3804a=\"\">Description</th>\n\t\t\t\t\t\t\t<th style=\"width:1in;text-align:center;\" _v-28c3804a=\"\">Quantity</th>\n\t\t\t\t\t\t\t<th style=\"width:1in;text-align:center;\" _v-28c3804a=\"\">Unit Cost</th>\n\t\t\t\t\t\t\t<th style=\"width:1in;text-align:right;\" _v-28c3804a=\"\">Amount</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody _v-28c3804a=\"\">\n\t\t\t\t\t\t<tr v-for=\"item in invoice.cart.items\" _v-28c3804a=\"\">\n\t\t\t\t\t\t<td _v-28c3804a=\"\">{{{ item.name | nl2br }}}</td>\n\t\t\t\t\t\t\t<td _v-28c3804a=\"\">{{ item.count }}</td>\n\t\t\t\t\t\t\t<td _v-28c3804a=\"\">{{ item.price | currency }}</td>\n\t\t\t\t\t\t\t<td _v-28c3804a=\"\">{{ parseFloat(item.count) * parseFloat(item.price) | currency }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t\t<br _v-28c3804a=\"\">\n\t\t\t\t<b _v-28c3804a=\"\">Status:</b>\n\t\t\t\t<span v-if=\"invoice.shipped\" _v-28c3804a=\"\">Shipped</span>\n\t\t\t\t<span v-if=\"invoice.paid &amp;&amp; !invoice.shipped\" _v-28c3804a=\"\">Paid</span>\n\t\t\t\t<span v-if=\"invoice.billed &amp;&amp; !invoice.paid &amp;&amp; !invoice.shipped\" _v-28c3804a=\"\">Billed</span>\n\t\t\t\t<span v-if=\"!invoice.billed &amp;&amp; !invoice.paid &amp;&amp; !invoice.shipped\" _v-28c3804a=\"\">Unbilled</span>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<hr _v-28c3804a=\"\">\n\n\t\t<div class=\"row\" _v-28c3804a=\"\">\n\t\t\t<div class=\"col-xs-12\" _v-28c3804a=\"\">\n\t\t\t\t<p style=\"float:right;width:1.2in;text-align:right;\" _v-28c3804a=\"\">\n\t\t\t\t\t{{ invoice.subtotal | currency }}<br _v-28c3804a=\"\">\n\t\t\t\t\t{{ invoice.shipping_cost | currency }}<br _v-28c3804a=\"\">\n\t\t\t\t\t<br _v-28c3804a=\"\">\n\t\t\t\t\t{{ parseFloat(invoice.subtotal) + parseFloat(invoice.shipping_cost) | currency }}\n\t\t\t\t</p>\n\t\t\t\t<p style=\"float:right;text-align:right;\" _v-28c3804a=\"\">\n\t\t\t\t\t<b _v-28c3804a=\"\">Subtotal:</b><br _v-28c3804a=\"\">\n\t\t\t\t\t<b _v-28c3804a=\"\">Shipping:</b><br _v-28c3804a=\"\">\n\t\t\t\t\t<br _v-28c3804a=\"\">\n\t\t\t\t\t<b _v-28c3804a=\"\">Total:</b>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</span>\n"
if (module.hot) {(function () { module.hot.accept()
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), true)
Expand Down Expand Up @@ -18756,6 +18756,7 @@ module.exports = {
this.char = String.fromCharCode(this.kcode);
this.is_numeric = !isNaN(parseInt(this.char));
this.is_backspace = this.kcode == 8;
console.log(this);

// place the caret position in the value array
this.value.splice(this.start, 0, 'caret');
Expand Down
2 changes: 1 addition & 1 deletion public/js/main.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/assets/js/components/invoice/printButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="print-area">
<div class="row">
<div class="col-xs-6">
<img src="/img/webLogoOutlined.svg" class="img-responsive">
<img src="/img/store/webLogoOutlined.svg" class="img-responsive">
</div>
<div class="col-xs-6">
<table class="print-table" style='float:right;'>
Expand Down
1 change: 1 addition & 0 deletions resources/assets/js/directives/mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ module.exports = {
this.char = String.fromCharCode(this.kcode)
this.is_numeric = !isNaN(parseInt(this.char))
this.is_backspace = (this.kcode == 8)
console.log(this)

// place the caret position in the value array
this.value.splice(this.start, 0, 'caret')
Expand Down

0 comments on commit b5e420a

Please sign in to comment.