diff --git a/hesabixCore/templates/pdf/plugins/ghesta/report.html.twig b/hesabixCore/templates/pdf/plugins/ghesta/report.html.twig index 6a00c24..fe85179 100644 --- a/hesabixCore/templates/pdf/plugins/ghesta/report.html.twig +++ b/hesabixCore/templates/pdf/plugins/ghesta/report.html.twig @@ -199,7 +199,7 @@

توضیحات:

- {{ note|nl2br }} + {{ note|raw }} diff --git a/webUI/src/views/acc/sell/mod.vue b/webUI/src/views/acc/sell/mod.vue index a6753e9..0f6fca9 100644 --- a/webUI/src/views/acc/sell/mod.vue +++ b/webUI/src/views/acc/sell/mod.vue @@ -791,7 +791,22 @@ export default { try { // اول تنظیمات را لود می‌کنیم this.loadSettings(); - + + // دریافت آی‌دی کسب‌وکار فعال از localStorage + const activeBid = localStorage.getItem('activeBid'); + if (activeBid) { + try { + const businessRes = await axios.get(`/api/business/get/info/${activeBid}`); + if (businessRes.data && businessRes.data.maliyatafzode) { + // فقط اگر فاکتور جدید است مقدار پیش‌فرض مالیات را ست کن + if (!this.$route.params.id) { + this.taxPercent = Number(businessRes.data.maliyatafzode); + } + } + } catch (err) { + console.error('خطا در دریافت اطلاعات کسب‌وکار:', err); + } + } // بررسی وضعیت پیش‌نویس this.isNewInvoice = !this.$route.params.id;