You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,11 @@ Try out [the interactive demo](https://elegantly.dev/laravel-invoices) to explor
27
27
-[Rendering the Invoice as a view](#rendering-the-invoice-as-a-view)
28
28
-[Rendering the Invoice within a View](#rendering-the-invoice-within-a-view)
29
29
-[Adding Taxes](#adding-taxes)
30
-
-[Tax by Percentage](#tax-by-percentage)
31
-
-[Tax as a Fixed Amount](#tax-as-a-fixed-amount)
30
+
-[Tax by Percentage](#tax-by-percentage)
31
+
-[Tax as a Fixed Amount](#tax-as-a-fixed-amount)
32
32
-[Adding Discounts](#adding-discounts)
33
-
-[Discount by Percentage](#discount-by-percentage)
34
-
-[Discount as a Fixed Amount](#discount-as-a-fixed-amount)
33
+
-[Discount by Percentage](#discount-by-percentage)
34
+
-[Discount as a Fixed Amount](#discount-as-a-fixed-amount)
35
35
-[Customization](#customization)
36
36
-[Customizing Fonts](#customizing-fonts)
37
37
-[Customizing the Invoice Template](#customizing-the-invoice-template)
@@ -450,7 +450,7 @@ This approach allows for seamless integration of the invoice into a dynamic and
450
450
451
451
Taxes are applied to individual `PdfInvoiceItem` item. You can define them either as a percentage or a fixed amount.
452
452
453
-
### Tax by Percentage
453
+
####Tax by Percentage
454
454
455
455
To add a tax as a percentage, set the `tax_percentage` property on the `PdfInvoiceItem`. This value should be a float between 0 and 100.
456
456
@@ -464,7 +464,7 @@ new PdfInvoiceItem(
464
464
),
465
465
```
466
466
467
-
### Tax as a Fixed Amount
467
+
####Tax as a Fixed Amount
468
468
469
469
To apply a tax as a specific monetary amount, set the `unit_tax` property on the `PdfInvoiceItem`.
470
470
@@ -485,7 +485,7 @@ Discounts are represented by the `InvoiceDiscount` class and are applied to the
485
485
- You can add multiple discounts to a single invoice.
486
486
- Discounts can be specified as a fixed amount (`amount_off`) or a percentage (`percent_off`). If both are provided for the same discount, the `amount_off` value takes precedence.
487
487
488
-
### Discount by Percentage
488
+
####Discount by Percentage
489
489
490
490
To apply a discount as a percentage, set the `percent_off` property.
491
491
@@ -506,7 +506,7 @@ $pdfInvoice = new PdfInvoice(
506
506
);
507
507
```
508
508
509
-
### Discount as a Fixed Amount
509
+
####Discount as a Fixed Amount
510
510
511
511
To apply a discount as a fixed amount, set the `amount_off` property.
0 commit comments