fix pdf issue & payment update issue

This commit is contained in:
harshjagad20
2021-12-09 18:06:25 +05:30
parent 8b07632fd7
commit 725afa9f65
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); $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 = Invoice::find($this->invoice_id);
$invoice->addInvoicePayment($this->amount); $invoice->addInvoicePayment($this->amount);
$invoice->subtractInvoicePayment($request->amount); $invoice->subtractInvoicePayment($request->amount);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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