bug fix in send sms and change یاداشت to یادداشت in application

This commit is contained in:
Hesabix 2025-03-25 13:51:40 +00:00
parent 80e2785fe7
commit dd101c8ee2
18 changed files with 33 additions and 33 deletions

View file

@ -106,7 +106,7 @@ class NotesController extends AbstractController
$entityManager->flush(); $entityManager->flush();
$log->insert( $log->insert(
'حسابداری', 'حسابداری',
' افزودن یاداشت به فاکتور‌ شماره ' . $doc->getCode(), ' افزودن یادداشت به فاکتور‌ شماره ' . $doc->getCode(),
$this->getUser(), $this->getUser(),
$acc['bid']->getId(), $acc['bid']->getId(),
$doc $doc
@ -129,7 +129,7 @@ class NotesController extends AbstractController
$log->insert( $log->insert(
'حسابداری', 'حسابداری',
' حذف یاداشت از فاکتور‌ شماره ' . $item->getDoc()->getCode(), ' حذف یادداشت از فاکتور‌ شماره ' . $item->getDoc()->getCode(),
$this->getUser(), $this->getUser(),
$acc['bid']->getId(), $acc['bid']->getId(),
$item->getDoc() $item->getDoc()

View file

@ -287,7 +287,7 @@ class SellController extends AbstractController
return $this->json([ return $this->json([
'result' => 'result' =>
$SMS->sendByBalance( $SMS->sendByBalance(
[$person->getnikename(), 'sell/' . $acc['bid']->getId() . '/' . $doc->getId(), $acc['bid']->getName(), $acc['bid']->getTel()], [$person->getnikename(), 'sell/' . $acc['bid']->getId() . '/' . $doc->getShortlink(), $acc['bid']->getName(), $acc['bid']->getTel()],
$registryMGR->get('sms', 'plugAccproSharefaktor'), $registryMGR->get('sms', 'plugAccproSharefaktor'),
$person->getMobile(), $person->getMobile(),
$acc['bid'], $acc['bid'],
@ -299,7 +299,7 @@ class SellController extends AbstractController
return $this->json([ return $this->json([
'result' => 'result' =>
$SMS->sendByBalance( $SMS->sendByBalance(
[$acc['bid']->getName(), 'sell/' . $acc['bid']->getId() . '/' . $doc->getId()], [$acc['bid']->getName(), 'sell/' . $acc['bid']->getId() . '/' . $doc->getShortlink()],
$registryMGR->get('sms', 'sharefaktor'), $registryMGR->get('sms', 'sharefaktor'),
$person->getMobile(), $person->getMobile(),
$acc['bid'], $acc['bid'],

View file

@ -251,7 +251,7 @@
{% endif %} {% endif %}
{% if printOptions.note == true %} {% if printOptions.note == true %}
<h4 class=""> <h4 class="">
یاداشت: یادداشت:
</h4> </h4>
<ul class=""> <ul class="">
<li class=""> <li class="">

View file

@ -251,7 +251,7 @@
{% endif %} {% endif %}
{% if printOptions.note == true %} {% if printOptions.note == true %}
<h4 class=""> <h4 class="">
یاداشت: یادداشت:
</h4> </h4>
<ul class=""> <ul class="">
<li class=""> <li class="">

View file

@ -251,7 +251,7 @@
{% endif %} {% endif %}
{% if printOptions.note == true %} {% if printOptions.note == true %}
<h4 class=""> <h4 class="">
یاداشت: یادداشت:
</h4> </h4>
<ul class=""> <ul class="">
<li class=""> <li class="">

View file

@ -251,7 +251,7 @@
{% endif %} {% endif %}
{% if printOptions.note == true %} {% if printOptions.note == true %}
<h4 class=""> <h4 class="">
یاداشت: یادداشت:
</h4> </h4>
<ul class=""> <ul class="">
<li class=""> <li class="">

View file

@ -411,7 +411,7 @@ const fa_lang = {
bid_info: "تنظیمات کسب و کار", bid_info: "تنظیمات کسب و کار",
bid_info_label: "اطلاعات کسب‌و‌کار", bid_info_label: "اطلاعات کسب‌و‌کار",
invoice_pays: "پرداختی‌های فاکتور", invoice_pays: "پرداختی‌های فاکتور",
invoice_footer_note: "یاداشت پایین فاکتور", invoice_footer_note: "یادداشت پایین فاکتور",
tax_dexpo: "مالیات به تفکیک اقلام", tax_dexpo: "مالیات به تفکیک اقلام",
paper_size: "اندازه کاغذ", paper_size: "اندازه کاغذ",
discount_dexpo: "تخفیف به تفکیک اقلام", discount_dexpo: "تخفیف به تفکیک اقلام",

View file

@ -12,7 +12,7 @@
<button type="button" class="btn btn-sm btn-warning text-light me-2" data-bs-toggle="modal" data-bs-target="#notesModal"> <button type="button" class="btn btn-sm btn-warning text-light me-2" data-bs-toggle="modal" data-bs-target="#notesModal">
<span class="badge text-bg-dark me-2">{{ this.notes.count }}</span> <span class="badge text-bg-dark me-2">{{ this.notes.count }}</span>
<i class="fa-regular fa-note-sticky me-1"></i> <i class="fa-regular fa-note-sticky me-1"></i>
<span class="d-none d-sm-inline-block">یاداشتها</span> <span class="d-none d-sm-inline-block">یادداشتها</span>
</button> </button>
<notes :stat="notes" :code="this.$route.params.id" typeNote="accounting" /> <notes :stat="notes" :code="this.$route.params.id" typeNote="accounting" />
<button class="btn btn-sm btn-primary mx-2" onclick="Dashmix.helpers('dm-print');" type="button"> <button class="btn btn-sm btn-primary mx-2" onclick="Dashmix.helpers('dm-print');" type="button">

View file

@ -192,7 +192,7 @@
></v-select> ></v-select>
<v-switch inset v-model="printOptions.bidInfo" color="primary" label="اطلاعات کسب‌وکار" hide-details></v-switch> <v-switch inset v-model="printOptions.bidInfo" color="primary" label="اطلاعات کسب‌وکار" hide-details></v-switch>
<v-switch inset v-model="printOptions.pays" color="primary" label="نمایش پرداخت‌های فاکتور" hide-details></v-switch> <v-switch inset v-model="printOptions.pays" color="primary" label="نمایش پرداخت‌های فاکتور" hide-details></v-switch>
<v-switch inset v-model="printOptions.note" color="primary" label="یاداشت پایین فاکتور" hide-details></v-switch> <v-switch inset v-model="printOptions.note" color="primary" label="یادداشت پایین فاکتور" hide-details></v-switch>
<v-switch inset v-model="printOptions.taxInfo" color="primary" label="مالیات به تفکیک اقلام" hide-details></v-switch> <v-switch inset v-model="printOptions.taxInfo" color="primary" label="مالیات به تفکیک اقلام" hide-details></v-switch>
<v-switch inset v-model="printOptions.discountInfo" color="primary" label="تخفیف به تفکیک اقلام" hide-details></v-switch> <v-switch inset v-model="printOptions.discountInfo" color="primary" label="تخفیف به تفکیک اقلام" hide-details></v-switch>
</template> </template>

View file

@ -189,7 +189,7 @@ export default defineComponent({
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.note" type="checkbox"> <input class="form-check-input" v-model="printOptions.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox"> <input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox">
@ -227,7 +227,7 @@ export default defineComponent({
data-bs-target="#notesModal"> data-bs-target="#notesModal">
<span class="badge text-bg-dark me-2">{{ this.notes.count }}</span> <span class="badge text-bg-dark me-2">{{ this.notes.count }}</span>
<i class="fa-regular fa-note-sticky me-1"></i> <i class="fa-regular fa-note-sticky me-1"></i>
<span class="d-none d-sm-inline-block">یاداشتها</span> <span class="d-none d-sm-inline-block">یادداشتها</span>
</button> </button>
<notes :stat="notes" :code="this.$route.params.id" typeNote="buy" /> <notes :stat="notes" :code="this.$route.params.id" typeNote="buy" />
<!-- Button trigger modal --> <!-- Button trigger modal -->

View file

@ -91,7 +91,7 @@ export default defineComponent({
<div class="modal-header bg-warning text-white"> <div class="modal-header bg-warning text-white">
<h1 class="modal-title fs-5" id="notesModalLabel"> <h1 class="modal-title fs-5" id="notesModalLabel">
<i class="fa-regular fa-note-sticky me-1"></i> <i class="fa-regular fa-note-sticky me-1"></i>
یاداشتها یادداشتها
</h1> </h1>
<div class="block-options"> <div class="block-options">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
@ -99,7 +99,7 @@ export default defineComponent({
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="input-group mb-3"> <div class="input-group mb-3">
<input v-model="des" type="text" class="form-control" placeholder="شرح" aria-label="افزودن یاداشت" <input v-model="des" type="text" class="form-control" placeholder="شرح" aria-label="افزودن یادداشت"
aria-describedby="button-addon1"> aria-describedby="button-addon1">
<button :disabled="this.loading" @click="save()" class="btn btn-outline-success" type="button" <button :disabled="this.loading" @click="save()" class="btn btn-outline-success" type="button"
id="button-addon1">ثبت</button> id="button-addon1">ثبت</button>

View file

@ -237,7 +237,7 @@ export default defineComponent({
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.note" type="checkbox"> <input class="form-check-input" v-model="printOptions.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox"> <input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox">
@ -276,7 +276,7 @@ export default defineComponent({
data-bs-target="#notesModal"> data-bs-target="#notesModal">
<span class="badge text-bg-dark me-2">{{ this.notes.count }}</span> <span class="badge text-bg-dark me-2">{{ this.notes.count }}</span>
<i class="fa-regular fa-note-sticky me-1"></i> <i class="fa-regular fa-note-sticky me-1"></i>
<span class="d-none d-sm-inline-block">یاداشتها</span> <span class="d-none d-sm-inline-block">یادداشتها</span>
</button> </button>
<notes :stat="notes" :code="this.$route.params.id" typeNote="sell" /> <notes :stat="notes" :code="this.$route.params.id" typeNote="sell" />
<!-- Button trigger modal --> <!-- Button trigger modal -->

View file

@ -31,7 +31,7 @@
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.note" type="checkbox"> <input class="form-check-input" v-model="printOptions.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox"> <input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox">

View file

@ -235,7 +235,7 @@ export default defineComponent({
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.note" type="checkbox"> <input class="form-check-input" v-model="printOptions.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox"> <input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox">
@ -274,7 +274,7 @@ export default defineComponent({
data-bs-target="#notesModal"> data-bs-target="#notesModal">
<span class="badge text-bg-dark me-2">{{ this.notes.count }}</span> <span class="badge text-bg-dark me-2">{{ this.notes.count }}</span>
<i class="fa-regular fa-note-sticky me-1"></i> <i class="fa-regular fa-note-sticky me-1"></i>
<span class="d-none d-sm-inline-block">یاداشتها</span> <span class="d-none d-sm-inline-block">یادداشتها</span>
</button> </button>
<notes :stat="notes" :code="this.$route.params.id" typeNote="rfbuy" /> <notes :stat="notes" :code="this.$route.params.id" typeNote="rfbuy" />
<!-- Button trigger modal --> <!-- Button trigger modal -->

View file

@ -31,7 +31,7 @@
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.note" type="checkbox"> <input class="form-check-input" v-model="printOptions.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox"> <input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox">

View file

@ -189,7 +189,7 @@ export default defineComponent({
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.note" type="checkbox"> <input class="form-check-input" v-model="printOptions.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox"> <input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox">
@ -227,7 +227,7 @@ export default defineComponent({
data-bs-target="#notesModal"> data-bs-target="#notesModal">
<span class="badge text-bg-dark me-2">{{ this.notes.count }}</span> <span class="badge text-bg-dark me-2">{{ this.notes.count }}</span>
<i class="fa-regular fa-note-sticky me-1"></i> <i class="fa-regular fa-note-sticky me-1"></i>
<span class="d-none d-sm-inline-block">یاداشتها</span> <span class="d-none d-sm-inline-block">یادداشتها</span>
</button> </button>
<notes :stat="notes" :code="this.$route.params.id" typeNote="rfsell" /> <notes :stat="notes" :code="this.$route.params.id" typeNote="rfsell" />
<!-- Button trigger modal --> <!-- Button trigger modal -->

View file

@ -241,7 +241,7 @@ export default defineComponent({
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.note" type="checkbox"> <input class="form-check-input" v-model="printOptions.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox"> <input class="form-check-input" v-model="printOptions.taxInfo" type="checkbox">
@ -279,7 +279,7 @@ export default defineComponent({
data-bs-target="#notesModal"> data-bs-target="#notesModal">
<span class="badge text-bg-dark me-2">{{ notes.count }}</span> <span class="badge text-bg-dark me-2">{{ notes.count }}</span>
<i class="fa-regular fa-note-sticky me-1"></i> <i class="fa-regular fa-note-sticky me-1"></i>
<span class="d-none d-sm-inline-block">یاداشتها</span> <span class="d-none d-sm-inline-block">یادداشتها</span>
</button> </button>
<notes :stat="notes" :code="$route.params.id" typeNote="sell" /> <notes :stat="notes" :code="$route.params.id" typeNote="sell" />
<!-- Button trigger modal --> <!-- Button trigger modal -->

View file

@ -58,7 +58,7 @@
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="settings.sell.note" type="checkbox"> <input class="form-check-input" v-model="settings.sell.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
@ -79,7 +79,7 @@
<div class="form-floating"> <div class="form-floating">
<textarea v-model="settings.sell.noteString" class="form-control" <textarea v-model="settings.sell.noteString" class="form-control"
placeholder="این نوشته در پایین فاکتور‌ها چاپ خواهد شد" style="height: 100px"></textarea> placeholder="این نوشته در پایین فاکتور‌ها چاپ خواهد شد" style="height: 100px"></textarea>
<label for="floatingTextarea2">یاداشت پایین فاکتور</label> <label for="floatingTextarea2">یادداشت پایین فاکتور</label>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
@ -116,7 +116,7 @@
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="settings.buy.note" type="checkbox"> <input class="form-check-input" v-model="settings.buy.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
@ -137,7 +137,7 @@
<div class="form-floating"> <div class="form-floating">
<textarea v-model="settings.buy.noteString" class="form-control" <textarea v-model="settings.buy.noteString" class="form-control"
placeholder="این نوشته در پایین فاکتور‌ها چاپ خواهد شد" style="height: 100px"></textarea> placeholder="این نوشته در پایین فاکتور‌ها چاپ خواهد شد" style="height: 100px"></textarea>
<label for="floatingTextarea2">یاداشت پایین فاکتور</label> <label for="floatingTextarea2">یادداشت پایین فاکتور</label>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
@ -174,7 +174,7 @@
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="settings.rfbuy.note" type="checkbox"> <input class="form-check-input" v-model="settings.rfbuy.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
@ -195,7 +195,7 @@
<div class="form-floating"> <div class="form-floating">
<textarea v-model="settings.rfbuy.noteString" class="form-control" <textarea v-model="settings.rfbuy.noteString" class="form-control"
placeholder="این نوشته در پایین فاکتور‌ها چاپ خواهد شد" style="height: 100px"></textarea> placeholder="این نوشته در پایین فاکتور‌ها چاپ خواهد شد" style="height: 100px"></textarea>
<label for="floatingTextarea2">یاداشت پایین فاکتور</label> <label for="floatingTextarea2">یادداشت پایین فاکتور</label>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
@ -232,7 +232,7 @@
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" v-model="settings.rfsell.note" type="checkbox"> <input class="form-check-input" v-model="settings.rfsell.note" type="checkbox">
<label class="form-check-label">یاداشت پایین فاکتور</label> <label class="form-check-label">یادداشت پایین فاکتور</label>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">
@ -253,7 +253,7 @@
<div class="form-floating"> <div class="form-floating">
<textarea v-model="settings.rfsell.noteString" class="form-control" <textarea v-model="settings.rfsell.noteString" class="form-control"
placeholder="این نوشته در پایین فاکتور‌ها چاپ خواهد شد" style="height: 100px"></textarea> placeholder="این نوشته در پایین فاکتور‌ها چاپ خواهد شد" style="height: 100px"></textarea>
<label for="floatingTextarea2">یاداشت پایین فاکتور</label> <label for="floatingTextarea2">یادداشت پایین فاکتور</label>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-6 mb-2"> <div class="col-sm-12 col-md-6 mb-2">