Andrew Wallo il y a 4 mois
Parent
révision
6f0ee175a1

+ 4
- 4
app/Models/Accounting/Estimate.php Voir le fichier

@@ -472,10 +472,10 @@ class Estimate extends Document
472 472
             'discount_method' => $this->discount_method,
473 473
             'discount_computation' => $this->discount_computation,
474 474
             'discount_rate' => $this->getRawOriginal('discount_rate'),
475
-            'subtotal' => $this->getRawOriginal('subtotal'),
476
-            'tax_total' => $this->getRawOriginal('tax_total'),
477
-            'discount_total' => $this->getRawOriginal('discount_total'),
478
-            'total' => $this->getRawOriginal('total'),
475
+            'subtotal' => $this->subtotal,
476
+            'tax_total' => $this->tax_total,
477
+            'discount_total' => $this->discount_total,
478
+            'total' => $this->total,
479 479
             'terms' => $this->terms,
480 480
             'footer' => $this->footer,
481 481
             'created_by' => auth()->id(),

+ 4
- 4
app/Models/Accounting/RecurringInvoice.php Voir le fichier

@@ -644,10 +644,10 @@ class RecurringInvoice extends Document
644 644
             'discount_method' => $this->discount_method,
645 645
             'discount_computation' => $this->discount_computation,
646 646
             'discount_rate' => $this->getRawOriginal('discount_rate'),
647
-            'subtotal' => $this->getRawOriginal('subtotal'),
648
-            'tax_total' => $this->getRawOriginal('tax_total'),
649
-            'discount_total' => $this->getRawOriginal('discount_total'),
650
-            'total' => $this->getRawOriginal('total'),
647
+            'subtotal' => $this->subtotal,
648
+            'tax_total' => $this->tax_total,
649
+            'discount_total' => $this->discount_total,
650
+            'total' => $this->total,
651 651
             'terms' => $this->terms,
652 652
             'footer' => $this->footer,
653 653
             'created_by' => auth()->id(),

+ 0
- 1
database/factories/Accounting/BillFactory.php Voir le fichier

@@ -254,7 +254,6 @@ class BillFactory extends Factory
254 254
         }
255 255
 
256 256
         $grandTotalCents = $subtotalCents + $taxTotalCents - $discountTotalCents;
257
-        $currencyCode = $bill->currency_code;
258 257
 
259 258
         $bill->update([
260 259
             'subtotal' => $subtotalCents,

+ 0
- 1
database/factories/Accounting/EstimateFactory.php Voir le fichier

@@ -235,7 +235,6 @@ class EstimateFactory extends Factory
235 235
         }
236 236
 
237 237
         $grandTotalCents = $subtotalCents + $taxTotalCents - $discountTotalCents;
238
-        $currencyCode = $estimate->currency_code;
239 238
 
240 239
         $estimate->update([
241 240
             'subtotal' => $subtotalCents,

+ 0
- 1
database/factories/Accounting/InvoiceFactory.php Voir le fichier

@@ -279,7 +279,6 @@ class InvoiceFactory extends Factory
279 279
         }
280 280
 
281 281
         $grandTotalCents = $subtotalCents + $taxTotalCents - $discountTotalCents;
282
-        $currencyCode = $invoice->currency_code;
283 282
 
284 283
         $invoice->update([
285 284
             'subtotal' => $subtotalCents,

+ 0
- 1
database/factories/Accounting/RecurringInvoiceFactory.php Voir le fichier

@@ -329,7 +329,6 @@ class RecurringInvoiceFactory extends Factory
329 329
         }
330 330
 
331 331
         $grandTotalCents = $subtotalCents + $taxTotalCents - $discountTotalCents;
332
-        $currencyCode = $recurringInvoice->currency_code;
333 332
 
334 333
         $recurringInvoice->update([
335 334
             'subtotal' => $subtotalCents,

Chargement…
Annuler
Enregistrer