Merge branch 'v5-issues-fix' into 'master'

fix pdf issue & payment update issue

See merge request mohit.panjvani/crater-web!1335
This commit is contained in:
Mohit Panjwani
2021-12-10 12:00:29 +00:00
8 changed files with 8 additions and 1 deletions

View File

@ -195,7 +195,7 @@ class Payment extends Model implements HasMedia
$invoice->addInvoicePayment($this->amount);
}
if ($this->invoice_id === $request->invoice_id && $request->amount !== $this->amount) {
if ($this->invoice_id && $this->invoice_id === $request->invoice_id && $request->amount !== $this->amount) {
$invoice = Invoice::find($this->invoice_id);
$invoice->addInvoicePayment($this->amount);
$invoice->subtractInvoicePayment($request->amount);

View File

@ -321,6 +321,7 @@
letter-spacing: 0.05em;
color: #040405;
width: 108px;
white-space: nowrap;
height: 19.87px;
padding-bottom: 10px;
}

View File

@ -331,6 +331,7 @@
letter-spacing: 0.05em;
color: #040405;
width: 108px;
white-space: nowrap;
height: 19.87px;
padding-bottom: 10px;
}

View File

@ -281,6 +281,7 @@
letter-spacing: 0.05em;
color: #040405;
width: 108px;
white-space: nowrap;
height: 19.87px;
padding-bottom: 10px;
}

View File

@ -271,6 +271,7 @@
letter-spacing: 0.05em;
color: #040405;
width: 108px;
white-space: nowrap;
height: 19.87px;
padding-bottom: 10px;
}

View File

@ -313,6 +313,7 @@
letter-spacing: 0.05em;
color: #040405;
width: 108px;
white-space: nowrap;
height: 19.87px;
padding-bottom: 10px;
}

View File

@ -242,6 +242,7 @@
letter-spacing: 0.05em;
color: #040405;
width: 108px;
white-space: nowrap;
height: 19.87px;
padding-bottom: 10px;
}

View File

@ -218,6 +218,7 @@
letter-spacing: 0.05em;
color: #040405;
width: 108px;
white-space: nowrap;
height: 19.87px;
padding-bottom: 10px;
}