mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
fix date display and other small issues
This commit is contained in:
@ -553,6 +553,8 @@ export default {
|
|||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.selectCustomer(response.data.estimate.user_id)
|
this.selectCustomer(response.data.estimate.user_id)
|
||||||
this.newEstimate = response.data.estimate
|
this.newEstimate = response.data.estimate
|
||||||
|
this.newEstimate.estimate_date = moment(response.data.estimate.estimate_date, 'YYYY-MM-DD').toString()
|
||||||
|
this.newEstimate.expiry_date = moment(response.data.estimate.expiry_date, 'YYYY-MM-DD').toString()
|
||||||
this.discountPerItem = response.data.discount_per_item
|
this.discountPerItem = response.data.discount_per_item
|
||||||
this.taxPerItem = response.data.tax_per_item
|
this.taxPerItem = response.data.tax_per_item
|
||||||
this.selectedCurrency = this.defaultCurrency
|
this.selectedCurrency = this.defaultCurrency
|
||||||
|
|||||||
@ -554,6 +554,8 @@ export default {
|
|||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.selectCustomer(response.data.invoice.user_id)
|
this.selectCustomer(response.data.invoice.user_id)
|
||||||
this.newInvoice = response.data.invoice
|
this.newInvoice = response.data.invoice
|
||||||
|
this.newInvoice.invoice_date = moment(response.data.invoice.invoice_date, 'YYYY-MM-DD').toString()
|
||||||
|
this.newInvoice.due_date = moment(response.data.invoice.due_date, 'YYYY-MM-DD').toString()
|
||||||
this.discountPerItem = response.data.discount_per_item
|
this.discountPerItem = response.data.discount_per_item
|
||||||
this.taxPerItem = response.data.tax_per_item
|
this.taxPerItem = response.data.tax_per_item
|
||||||
this.selectedCurrency = this.defaultCurrency
|
this.selectedCurrency = this.defaultCurrency
|
||||||
|
|||||||
@ -58,6 +58,7 @@
|
|||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex:1;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
@ -445,6 +446,9 @@
|
|||||||
.estimate-amount {
|
.estimate-amount {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #55547A;
|
color: #55547A;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.total {
|
.total {
|
||||||
|
|||||||
@ -58,6 +58,7 @@
|
|||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
@ -445,6 +446,9 @@
|
|||||||
.invoice-amount {
|
.invoice-amount {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #55547A;
|
color: #55547A;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.total {
|
.total {
|
||||||
|
|||||||
Reference in New Issue
Block a user