From 74346122ea9bb2c4d08fbc2809301e99d02ab28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= Date: Tue, 31 Dec 2024 20:12:54 +0300 Subject: [PATCH] added export document discount --- app/Exports/Purchases/Bills/Sheets/Bills.php | 2 ++ app/Exports/Purchases/RecurringBills/Sheets/RecurringBills.php | 2 ++ app/Exports/Sales/Invoices/Sheets/Invoices.php | 2 ++ .../Sales/RecurringInvoices/Sheets/RecurringInvoices.php | 2 ++ 4 files changed, 8 insertions(+) diff --git a/app/Exports/Purchases/Bills/Sheets/Bills.php b/app/Exports/Purchases/Bills/Sheets/Bills.php index b20db5577..c8183db9b 100644 --- a/app/Exports/Purchases/Bills/Sheets/Bills.php +++ b/app/Exports/Purchases/Bills/Sheets/Bills.php @@ -40,6 +40,8 @@ class Bills extends Export implements WithColumnFormatting 'billed_at', 'due_at', 'amount', + 'discount_type', + 'discount_rate', 'currency_code', 'currency_rate', 'category_name', diff --git a/app/Exports/Purchases/RecurringBills/Sheets/RecurringBills.php b/app/Exports/Purchases/RecurringBills/Sheets/RecurringBills.php index fa23ff017..024e3a744 100644 --- a/app/Exports/Purchases/RecurringBills/Sheets/RecurringBills.php +++ b/app/Exports/Purchases/RecurringBills/Sheets/RecurringBills.php @@ -40,6 +40,8 @@ class RecurringBills extends Export implements WithColumnFormatting, WithParentS 'billed_at', 'due_at', 'amount', + 'discount_type', + 'discount_rate', 'currency_code', 'currency_rate', 'category_name', diff --git a/app/Exports/Sales/Invoices/Sheets/Invoices.php b/app/Exports/Sales/Invoices/Sheets/Invoices.php index 1f69dfe53..d82068c93 100644 --- a/app/Exports/Sales/Invoices/Sheets/Invoices.php +++ b/app/Exports/Sales/Invoices/Sheets/Invoices.php @@ -40,6 +40,8 @@ class Invoices extends Export implements WithColumnFormatting 'invoiced_at', 'due_at', 'amount', + 'discount_type', + 'discount_rate', 'currency_code', 'currency_rate', 'category_name', diff --git a/app/Exports/Sales/RecurringInvoices/Sheets/RecurringInvoices.php b/app/Exports/Sales/RecurringInvoices/Sheets/RecurringInvoices.php index 84b6aedc7..aac6fe75f 100644 --- a/app/Exports/Sales/RecurringInvoices/Sheets/RecurringInvoices.php +++ b/app/Exports/Sales/RecurringInvoices/Sheets/RecurringInvoices.php @@ -41,6 +41,8 @@ class RecurringInvoices extends Export implements WithColumnFormatting, WithPare 'invoiced_at', 'due_at', 'amount', + 'discount_type', + 'discount_rate', 'currency_code', 'currency_rate', 'category_name',