add app info to footer of invoice pos print

This commit is contained in:
Hesabix 2025-10-22 19:22:50 +03:30
parent fb037a8299
commit 7a87159482
4 changed files with 13 additions and 2 deletions

View file

@ -1025,7 +1025,8 @@ class SellController extends AbstractController
}, $doc->getHesabdariRows()->toArray()), }, $doc->getHesabdariRows()->toArray()),
'discount' => $discount, 'discount' => $discount,
'showPercentDiscount' => $doc->getDiscountType() === 'percent', 'showPercentDiscount' => $doc->getDiscountType() === 'percent',
'discountPercent' => $doc->getDiscountPercent() 'discountPercent' => $doc->getDiscountPercent(),
'pluginService' => $pluginService,
]), ]),
true true
); );
@ -1040,6 +1041,7 @@ class SellController extends AbstractController
'bid' => $acc['bid'], 'bid' => $acc['bid'],
'doc' => $doc, 'doc' => $doc,
'rows' => $doc->getHesabdariRows(), 'rows' => $doc->getHesabdariRows(),
'pluginService' => $pluginService,
]), ]),
true true
); );

View file

@ -163,6 +163,11 @@
<footer style="text-align:center"> <footer style="text-align:center">
<p>{{ bid.name }}</p> <p>{{ bid.name }}</p>
</footer> </footer>
<hr>
<footer style="text-align:center; font-size: 11px;">
<p>{{ twigFunctions.getFooterText('right', pluginService, bid) }}</p>
<p>{{ twigFunctions.getFooterText('left', pluginService, bid) }}</p>
</footer>
</body> </body>
</html> </html>

View file

@ -216,7 +216,11 @@
<footer style="text-align:center"> <footer style="text-align:center">
<p>{{ bid.address }}</p> <p>{{ bid.address }}</p>
<p>{{ bid.tel }}</p> <p>{{ bid.tel }}</p>
</footer>
<hr>
<footer style="text-align:center; font-size: 11px;">
<p>{{ twigFunctions.getFooterText('right', pluginService, bid) }}</p>
<p>{{ twigFunctions.getFooterText('left', pluginService, bid) }}</p>
</footer> </footer>
</body> </body>
</html> </html>