some progress
This commit is contained in:
parent
dc066b0f5f
commit
0ff1611b2b
|
@ -368,14 +368,14 @@ class BuyController extends AbstractController
|
|||
$pid = $provider->createPrint(
|
||||
$acc['bid'],
|
||||
$this->getUser(),
|
||||
$this->renderView('pdf/posPrinters/justSell.html.twig', [
|
||||
$this->renderView('pdf/posPrinters/justBuy.html.twig', [
|
||||
'bid' => $acc['bid'],
|
||||
'doc' => $doc,
|
||||
'rows' => $doc->getHesabdariRows(),
|
||||
]),
|
||||
true
|
||||
);
|
||||
$printers->addFile($pid, $acc, "fastSellInvoice");
|
||||
$printers->addFile($pid, $acc, "fastBuyInvoice");
|
||||
}
|
||||
if ($params['posPrintRecp'] == true) {
|
||||
$pid = $provider->createPrint(
|
||||
|
@ -388,7 +388,7 @@ class BuyController extends AbstractController
|
|||
]),
|
||||
true
|
||||
);
|
||||
$printers->addFile($pid, $acc, "fastSellCashdesk");
|
||||
$printers->addFile($pid, $acc, "fastBuyCashdesk");
|
||||
}
|
||||
|
||||
return $this->json(['id' => $pdfPid]);
|
||||
|
@ -450,7 +450,7 @@ class BuyController extends AbstractController
|
|||
}
|
||||
$note = '';
|
||||
$printSettings = $entityManager->getRepository(PrintOptions::class)->findOneBy(['bid'=>$acc['bid']]);
|
||||
if($printSettings){$note = $printSettings->getSellNoteString();}
|
||||
if($printSettings){$note = $printSettings->getBuyNoteString();}
|
||||
$pdfPid = $provider->createPrint(
|
||||
$acc['bid'],
|
||||
$this->getUser(),
|
||||
|
@ -472,14 +472,14 @@ class BuyController extends AbstractController
|
|||
$pid = $provider->createPrint(
|
||||
$acc['bid'],
|
||||
$this->getUser(),
|
||||
$this->renderView('pdf/posPrinters/justSell.html.twig', [
|
||||
$this->renderView('pdf/posPrinters/justBuy.html.twig', [
|
||||
'bid' => $acc['bid'],
|
||||
'doc' => $doc,
|
||||
'rows' => $doc->getHesabdariRows(),
|
||||
]),
|
||||
false
|
||||
);
|
||||
$printers->addFile($pid, $acc, "fastSellInvoice");
|
||||
$printers->addFile($pid, $acc, "fastBuyInvoice");
|
||||
}
|
||||
return $this->json(['id' => $pdfPid]);
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ class RfbuyController extends AbstractController
|
|||
if (!$doc)
|
||||
throw $this->createNotFoundException();
|
||||
|
||||
return $this->json(Explore::ExploreSellDoc($doc));
|
||||
return $this->json(Explore::ExploreRfbuyDoc($doc));
|
||||
}
|
||||
|
||||
#[Route('/api/rfbuy/mod', name: 'app_rfbuy_mod')]
|
||||
|
@ -353,14 +353,14 @@ class RfbuyController extends AbstractController
|
|||
$pid = $provider->createPrint(
|
||||
$acc['bid'],
|
||||
$this->getUser(),
|
||||
$this->renderView('pdf/posPrinters/justSell.html.twig', [
|
||||
$this->renderView('pdf/posPrinters/justRfbuy.html.twig', [
|
||||
'bid' => $acc['bid'],
|
||||
'doc' => $doc,
|
||||
'rows' => $doc->getHesabdariRows(),
|
||||
]),
|
||||
true
|
||||
);
|
||||
$printers->addFile($pid, $acc, "fastSellInvoice");
|
||||
$printers->addFile($pid, $acc, "fastRfbuyInvoice");
|
||||
}
|
||||
if ($params['posPrintRecp'] == true) {
|
||||
$pid = $provider->createPrint(
|
||||
|
@ -373,7 +373,7 @@ class RfbuyController extends AbstractController
|
|||
]),
|
||||
true
|
||||
);
|
||||
$printers->addFile($pid, $acc, "fastSellCashdesk");
|
||||
$printers->addFile($pid, $acc, "fastRfbuyCashdesk");
|
||||
}
|
||||
|
||||
return $this->json(['id' => $pdfPid]);
|
||||
|
@ -435,7 +435,7 @@ class RfbuyController extends AbstractController
|
|||
}
|
||||
$note = '';
|
||||
$printSettings = $entityManager->getRepository(PrintOptions::class)->findOneBy(['bid'=>$acc['bid']]);
|
||||
if($printSettings){$note = $printSettings->getSellNoteString();}
|
||||
if($printSettings){$note = $printSettings->getRfbuyNoteString();}
|
||||
$pdfPid = $provider->createPrint(
|
||||
$acc['bid'],
|
||||
$this->getUser(),
|
||||
|
@ -457,14 +457,14 @@ class RfbuyController extends AbstractController
|
|||
$pid = $provider->createPrint(
|
||||
$acc['bid'],
|
||||
$this->getUser(),
|
||||
$this->renderView('pdf/posPrinters/justSell.html.twig', [
|
||||
$this->renderView('pdf/posPrinters/justRfbuy.html.twig', [
|
||||
'bid' => $acc['bid'],
|
||||
'doc' => $doc,
|
||||
'rows' => $doc->getHesabdariRows(),
|
||||
]),
|
||||
false
|
||||
);
|
||||
$printers->addFile($pid, $acc, "fastSellInvoice");
|
||||
$printers->addFile($pid, $acc, "fastRfbuyInvoice");
|
||||
}
|
||||
return $this->json(['id' => $pdfPid]);
|
||||
}
|
||||
|
|
|
@ -450,7 +450,7 @@ class RfsellController extends AbstractController
|
|||
}
|
||||
$note = '';
|
||||
$printSettings = $entityManager->getRepository(PrintOptions::class)->findOneBy(['bid'=>$acc['bid']]);
|
||||
if($printSettings){$note = $printSettings->getSellNoteString();}
|
||||
if($printSettings){$note = $printSettings->getRfsellNoteString();}
|
||||
$pdfPid = $provider->createPrint(
|
||||
$acc['bid'],
|
||||
$this->getUser(),
|
||||
|
|
|
@ -90,6 +90,18 @@ class PrintOptions
|
|||
#[ORM\Column(nullable: true)]
|
||||
private ?bool $RfsellPays = null;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $sellPaper = null;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $buyPaper = null;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $rfbuyPaper = null;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $rfsellPaper = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
|
@ -394,4 +406,52 @@ class PrintOptions
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSellPaper(): ?string
|
||||
{
|
||||
return $this->sellPaper;
|
||||
}
|
||||
|
||||
public function setSellPaper(?string $sellPaper): static
|
||||
{
|
||||
$this->sellPaper = $sellPaper;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBuyPaper(): ?string
|
||||
{
|
||||
return $this->buyPaper;
|
||||
}
|
||||
|
||||
public function setBuyPaper(?string $buyPaper): static
|
||||
{
|
||||
$this->buyPaper = $buyPaper;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRfbuyPaper(): ?string
|
||||
{
|
||||
return $this->rfbuyPaper;
|
||||
}
|
||||
|
||||
public function setRfbuyPaper(?string $rfbuyPaper): static
|
||||
{
|
||||
$this->rfbuyPaper = $rfbuyPaper;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRfsellPaper(): ?string
|
||||
{
|
||||
return $this->rfsellPaper;
|
||||
}
|
||||
|
||||
public function setRfsellPaper(?string $rfsellPaper): static
|
||||
{
|
||||
$this->rfsellPaper = $rfsellPaper;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
234
hesabixCore/templates/pdf/posPrinters/buy.html.twig
Normal file
234
hesabixCore/templates/pdf/posPrinters/buy.html.twig
Normal file
|
@ -0,0 +1,234 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fa" direction="rtl"></html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
margin: 5px;
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
tr {
|
||||
width: 100%;
|
||||
}
|
||||
th,td {
|
||||
border: 1px solid black !important;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#logo {
|
||||
width: 60%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
padding: 5px;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
header {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.center-align {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bill-details td {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.receipt {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
.items .heading {
|
||||
font-size: 12.5px;
|
||||
text-transform: uppercase;
|
||||
border-top: 1px solid black;
|
||||
margin-bottom: 4px;
|
||||
border-bottom: 1px solid black;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead tr th:first-child,
|
||||
.items tbody tr td:first-child {
|
||||
word-break: break-all;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.items td {
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.price::after {
|
||||
content: "";
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sum-up {
|
||||
text-align: right !important;
|
||||
}
|
||||
.total {
|
||||
font-size: 13px;
|
||||
border-top: 1px dashed black !important;
|
||||
border-bottom: 1px dashed black !important;
|
||||
}
|
||||
.total.text,
|
||||
.total.price {
|
||||
text-align: right;
|
||||
}
|
||||
.total.price::after {
|
||||
content: " ریال ";
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 1px;
|
||||
margin: 0;
|
||||
}
|
||||
section,
|
||||
footer {
|
||||
font-size: 12px;
|
||||
}
|
||||
tbody,
|
||||
thead,
|
||||
th,
|
||||
td,
|
||||
tr {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="direction:rtl; text-align:right; width:100%">
|
||||
{% if printInvoice%}
|
||||
<header>
|
||||
<p style="text-align:center;">{{ bid.name }}</p>
|
||||
</header>
|
||||
<table class="bill-details">
|
||||
<tbody style="text-align:right">
|
||||
<tr>
|
||||
<td style="text-align:right">تاریخ :
|
||||
<span>{{doc.date}}</span>
|
||||
</td>
|
||||
<td style="text-align:right">شماره :
|
||||
<span>#
|
||||
{{doc.code | number_format}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center-align" colspan="2">
|
||||
<span class="receipt">صورتحساب</span>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="items">
|
||||
<thead style="background:gray;text-color:white;">
|
||||
<tr>
|
||||
<th class="heading name">کالا</th>
|
||||
<th class="heading qty">تعداد</th>
|
||||
<th class="heading rate">فی</th>
|
||||
<th class="heading amount">جمع</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
{% if row.commodity != null %}
|
||||
<tr>
|
||||
<td>{{row.commodity.name}}</td>
|
||||
<td>{{row.commdityCount}}</td>
|
||||
<td class="price">{{(row.bs / row.commdityCount) | number_format}}</td>
|
||||
<td class="price">{{row.bs | number_format}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<tr>
|
||||
<th colspan="3" class="total text">جمع فاکتور</th>
|
||||
<th class="total price">{{doc.amount | number_format}}</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<section style="margin-bottom:10px;margin-top:10px;text-align:center;">
|
||||
<b style="text-align:center">
|
||||
از خرید شما متشکریم
|
||||
</b>
|
||||
</section>
|
||||
<footer style="text-align:center">
|
||||
<p>{{ bid.address }}</p>
|
||||
<p>{{ bid.tel }}</p>
|
||||
<p>hesabix.ir</p>
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
{% if printcashdeskRecp%}
|
||||
{% if printInvoice %}
|
||||
<pagebreak>
|
||||
|
||||
{% endif %}
|
||||
<table class="bill-details">
|
||||
<tbody style="text-align:right">
|
||||
<tr>
|
||||
<td style="text-align:right">تاریخ :
|
||||
<span>{{doc.date}}</span>
|
||||
</td>
|
||||
<td style="text-align:right">شماره :
|
||||
<span>#
|
||||
{{doc.code | number_format}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center-align" colspan="2">
|
||||
<span class="receipt">قبض صندوق</span>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="items">
|
||||
<thead style="background:gray;text-color:white;">
|
||||
<tr>
|
||||
<th class="heading name">کالا</th>
|
||||
<th class="heading qty">تعداد</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
{% if row.commodity != null %}
|
||||
<tr>
|
||||
<td>{{row.commodity.name}}</td>
|
||||
<td>{{row.commdityCount}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<footer style="text-align:center">
|
||||
<p>{{ bid.name }}</p>
|
||||
</footer>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -171,11 +171,6 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<section style="margin-bottom:10px;margin-top:10px;text-align:center;">
|
||||
<b style="text-align:center">
|
||||
از خرید شما متشکریم
|
||||
</b>
|
||||
</section>
|
||||
<footer style="text-align:center">
|
||||
<p>{{ bid.address }}</p>
|
||||
<p>{{ bid.tel }}</p>
|
||||
|
|
181
hesabixCore/templates/pdf/posPrinters/justRfbuy.html.twig
Normal file
181
hesabixCore/templates/pdf/posPrinters/justRfbuy.html.twig
Normal file
|
@ -0,0 +1,181 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fa" direction="rtl">
|
||||
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
margin: 5px;
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
tr {
|
||||
width: 100%;
|
||||
}
|
||||
th,
|
||||
td {
|
||||
border: 1px solid black !important;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#logo {
|
||||
width: 60%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
padding: 5px;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
header {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.center-align {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bill-details td {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.receipt {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
.items .heading {
|
||||
font-size: 12.5px;
|
||||
text-transform: uppercase;
|
||||
border-top: 1px solid black;
|
||||
margin-bottom: 4px;
|
||||
border-bottom: 1px solid black;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead tr th:first-child,
|
||||
.items tbody tr td:first-child {
|
||||
word-break: break-all;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.items td {
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.price::after {
|
||||
content: "";
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sum-up {
|
||||
text-align: right !important;
|
||||
}
|
||||
.total {
|
||||
font-size: 13px;
|
||||
border-top: 1px dashed black !important;
|
||||
border-bottom: 1px dashed black !important;
|
||||
}
|
||||
.total.text,
|
||||
.total.price {
|
||||
text-align: right;
|
||||
}
|
||||
.total.price::after {
|
||||
content: " ریال ";
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 1px;
|
||||
margin: 0;
|
||||
}
|
||||
section,
|
||||
footer {
|
||||
font-size: 12px;
|
||||
}
|
||||
tbody,
|
||||
thead,
|
||||
th,
|
||||
td,
|
||||
tr {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="direction:rtl; text-align:right; width:100%">
|
||||
<header>
|
||||
<p style="text-align:center;">{{ bid.name }}</p>
|
||||
</header>
|
||||
<table class="bill-details">
|
||||
<tbody style="text-align:right">
|
||||
<tr>
|
||||
<td style="text-align:right">تاریخ :
|
||||
<span>{{doc.date}}</span>
|
||||
</td>
|
||||
<td style="text-align:right">شماره :
|
||||
<span>#
|
||||
{{doc.code | number_format}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center-align" colspan="2">
|
||||
<span class="receipt">صورتحساب</span>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="items">
|
||||
<thead style="background:gray;text-color:white;">
|
||||
<tr>
|
||||
<th class="heading name">کالا</th>
|
||||
<th class="heading qty">تعداد</th>
|
||||
<th class="heading rate">فی</th>
|
||||
<th class="heading amount">جمع</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
{% if row.commodity != null %}
|
||||
<tr>
|
||||
<td>{{row.commodity.name}}</td>
|
||||
<td>{{row.commdityCount}}</td>
|
||||
<td class="price">{{(row.bs / row.commdityCount) | number_format}}</td>
|
||||
<td class="price">{{row.bs | number_format}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<tr>
|
||||
<th colspan="3" class="total text">جمع فاکتور</th>
|
||||
<th class="total price">{{doc.amount | number_format}}</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<footer style="text-align:center">
|
||||
<p>{{ bid.address }}</p>
|
||||
<p>{{ bid.tel }}</p>
|
||||
<p>hesabix.ir</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
181
hesabixCore/templates/pdf/posPrinters/justRfsellhtml.twig
Normal file
181
hesabixCore/templates/pdf/posPrinters/justRfsellhtml.twig
Normal file
|
@ -0,0 +1,181 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fa" direction="rtl">
|
||||
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
margin: 5px;
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
tr {
|
||||
width: 100%;
|
||||
}
|
||||
th,
|
||||
td {
|
||||
border: 1px solid black !important;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#logo {
|
||||
width: 60%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
padding: 5px;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
header {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.center-align {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bill-details td {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.receipt {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
.items .heading {
|
||||
font-size: 12.5px;
|
||||
text-transform: uppercase;
|
||||
border-top: 1px solid black;
|
||||
margin-bottom: 4px;
|
||||
border-bottom: 1px solid black;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead tr th:first-child,
|
||||
.items tbody tr td:first-child {
|
||||
word-break: break-all;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.items td {
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.price::after {
|
||||
content: "";
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sum-up {
|
||||
text-align: right !important;
|
||||
}
|
||||
.total {
|
||||
font-size: 13px;
|
||||
border-top: 1px dashed black !important;
|
||||
border-bottom: 1px dashed black !important;
|
||||
}
|
||||
.total.text,
|
||||
.total.price {
|
||||
text-align: right;
|
||||
}
|
||||
.total.price::after {
|
||||
content: " ریال ";
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 1px;
|
||||
margin: 0;
|
||||
}
|
||||
section,
|
||||
footer {
|
||||
font-size: 12px;
|
||||
}
|
||||
tbody,
|
||||
thead,
|
||||
th,
|
||||
td,
|
||||
tr {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="direction:rtl; text-align:right; width:100%">
|
||||
<header>
|
||||
<p style="text-align:center;">{{ bid.name }}</p>
|
||||
</header>
|
||||
<table class="bill-details">
|
||||
<tbody style="text-align:right">
|
||||
<tr>
|
||||
<td style="text-align:right">تاریخ :
|
||||
<span>{{doc.date}}</span>
|
||||
</td>
|
||||
<td style="text-align:right">شماره :
|
||||
<span>#
|
||||
{{doc.code | number_format}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center-align" colspan="2">
|
||||
<span class="receipt">صورتحساب</span>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="items">
|
||||
<thead style="background:gray;text-color:white;">
|
||||
<tr>
|
||||
<th class="heading name">کالا</th>
|
||||
<th class="heading qty">تعداد</th>
|
||||
<th class="heading rate">فی</th>
|
||||
<th class="heading amount">جمع</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
{% if row.commodity != null %}
|
||||
<tr>
|
||||
<td>{{row.commodity.name}}</td>
|
||||
<td>{{row.commdityCount}}</td>
|
||||
<td class="price">{{(row.bs / row.commdityCount) | number_format}}</td>
|
||||
<td class="price">{{row.bs | number_format}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<tr>
|
||||
<th colspan="3" class="total text">جمع فاکتور</th>
|
||||
<th class="total price">{{doc.amount | number_format}}</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<footer style="text-align:center">
|
||||
<p>{{ bid.address }}</p>
|
||||
<p>{{ bid.tel }}</p>
|
||||
<p>hesabix.ir</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
234
hesabixCore/templates/pdf/posPrinters/rfbuy.html.twig
Normal file
234
hesabixCore/templates/pdf/posPrinters/rfbuy.html.twig
Normal file
|
@ -0,0 +1,234 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fa" direction="rtl"></html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
margin: 5px;
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
tr {
|
||||
width: 100%;
|
||||
}
|
||||
th,td {
|
||||
border: 1px solid black !important;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#logo {
|
||||
width: 60%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
padding: 5px;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
header {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.center-align {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bill-details td {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.receipt {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
.items .heading {
|
||||
font-size: 12.5px;
|
||||
text-transform: uppercase;
|
||||
border-top: 1px solid black;
|
||||
margin-bottom: 4px;
|
||||
border-bottom: 1px solid black;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead tr th:first-child,
|
||||
.items tbody tr td:first-child {
|
||||
word-break: break-all;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.items td {
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.price::after {
|
||||
content: "";
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sum-up {
|
||||
text-align: right !important;
|
||||
}
|
||||
.total {
|
||||
font-size: 13px;
|
||||
border-top: 1px dashed black !important;
|
||||
border-bottom: 1px dashed black !important;
|
||||
}
|
||||
.total.text,
|
||||
.total.price {
|
||||
text-align: right;
|
||||
}
|
||||
.total.price::after {
|
||||
content: " ریال ";
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 1px;
|
||||
margin: 0;
|
||||
}
|
||||
section,
|
||||
footer {
|
||||
font-size: 12px;
|
||||
}
|
||||
tbody,
|
||||
thead,
|
||||
th,
|
||||
td,
|
||||
tr {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="direction:rtl; text-align:right; width:100%">
|
||||
{% if printInvoice%}
|
||||
<header>
|
||||
<p style="text-align:center;">{{ bid.name }}</p>
|
||||
</header>
|
||||
<table class="bill-details">
|
||||
<tbody style="text-align:right">
|
||||
<tr>
|
||||
<td style="text-align:right">تاریخ :
|
||||
<span>{{doc.date}}</span>
|
||||
</td>
|
||||
<td style="text-align:right">شماره :
|
||||
<span>#
|
||||
{{doc.code | number_format}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center-align" colspan="2">
|
||||
<span class="receipt">صورتحساب</span>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="items">
|
||||
<thead style="background:gray;text-color:white;">
|
||||
<tr>
|
||||
<th class="heading name">کالا</th>
|
||||
<th class="heading qty">تعداد</th>
|
||||
<th class="heading rate">فی</th>
|
||||
<th class="heading amount">جمع</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
{% if row.commodity != null %}
|
||||
<tr>
|
||||
<td>{{row.commodity.name}}</td>
|
||||
<td>{{row.commdityCount}}</td>
|
||||
<td class="price">{{(row.bs / row.commdityCount) | number_format}}</td>
|
||||
<td class="price">{{row.bs | number_format}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<tr>
|
||||
<th colspan="3" class="total text">جمع فاکتور</th>
|
||||
<th class="total price">{{doc.amount | number_format}}</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<section style="margin-bottom:10px;margin-top:10px;text-align:center;">
|
||||
<b style="text-align:center">
|
||||
از خرید شما متشکریم
|
||||
</b>
|
||||
</section>
|
||||
<footer style="text-align:center">
|
||||
<p>{{ bid.address }}</p>
|
||||
<p>{{ bid.tel }}</p>
|
||||
<p>hesabix.ir</p>
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
{% if printcashdeskRecp%}
|
||||
{% if printInvoice %}
|
||||
<pagebreak>
|
||||
|
||||
{% endif %}
|
||||
<table class="bill-details">
|
||||
<tbody style="text-align:right">
|
||||
<tr>
|
||||
<td style="text-align:right">تاریخ :
|
||||
<span>{{doc.date}}</span>
|
||||
</td>
|
||||
<td style="text-align:right">شماره :
|
||||
<span>#
|
||||
{{doc.code | number_format}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center-align" colspan="2">
|
||||
<span class="receipt">قبض صندوق</span>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="items">
|
||||
<thead style="background:gray;text-color:white;">
|
||||
<tr>
|
||||
<th class="heading name">کالا</th>
|
||||
<th class="heading qty">تعداد</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
{% if row.commodity != null %}
|
||||
<tr>
|
||||
<td>{{row.commodity.name}}</td>
|
||||
<td>{{row.commdityCount}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<footer style="text-align:center">
|
||||
<p>{{ bid.name }}</p>
|
||||
</footer>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
|
234
hesabixCore/templates/pdf/posPrinters/rfsell.html.twig
Normal file
234
hesabixCore/templates/pdf/posPrinters/rfsell.html.twig
Normal file
|
@ -0,0 +1,234 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fa" direction="rtl"></html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
margin: 5px;
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
tr {
|
||||
width: 100%;
|
||||
}
|
||||
th,td {
|
||||
border: 1px solid black !important;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#logo {
|
||||
width: 60%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
padding: 5px;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
header {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
-webkit-align-content: center;
|
||||
align-content: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.center-align {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bill-details td {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.receipt {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
.items .heading {
|
||||
font-size: 12.5px;
|
||||
text-transform: uppercase;
|
||||
border-top: 1px solid black;
|
||||
margin-bottom: 4px;
|
||||
border-bottom: 1px solid black;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.items thead tr th:first-child,
|
||||
.items tbody tr td:first-child {
|
||||
word-break: break-all;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.items td {
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.price::after {
|
||||
content: "";
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sum-up {
|
||||
text-align: right !important;
|
||||
}
|
||||
.total {
|
||||
font-size: 13px;
|
||||
border-top: 1px dashed black !important;
|
||||
border-bottom: 1px dashed black !important;
|
||||
}
|
||||
.total.text,
|
||||
.total.price {
|
||||
text-align: right;
|
||||
}
|
||||
.total.price::after {
|
||||
content: " ریال ";
|
||||
}
|
||||
.line {
|
||||
border-top: 1px solid black !important;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 1px;
|
||||
margin: 0;
|
||||
}
|
||||
section,
|
||||
footer {
|
||||
font-size: 12px;
|
||||
}
|
||||
tbody,
|
||||
thead,
|
||||
th,
|
||||
td,
|
||||
tr {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="direction:rtl; text-align:right; width:100%">
|
||||
{% if printInvoice%}
|
||||
<header>
|
||||
<p style="text-align:center;">{{ bid.name }}</p>
|
||||
</header>
|
||||
<table class="bill-details">
|
||||
<tbody style="text-align:right">
|
||||
<tr>
|
||||
<td style="text-align:right">تاریخ :
|
||||
<span>{{doc.date}}</span>
|
||||
</td>
|
||||
<td style="text-align:right">شماره :
|
||||
<span>#
|
||||
{{doc.code | number_format}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center-align" colspan="2">
|
||||
<span class="receipt">صورتحساب</span>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="items">
|
||||
<thead style="background:gray;text-color:white;">
|
||||
<tr>
|
||||
<th class="heading name">کالا</th>
|
||||
<th class="heading qty">تعداد</th>
|
||||
<th class="heading rate">فی</th>
|
||||
<th class="heading amount">جمع</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
{% if row.commodity != null %}
|
||||
<tr>
|
||||
<td>{{row.commodity.name}}</td>
|
||||
<td>{{row.commdityCount}}</td>
|
||||
<td class="price">{{(row.bs / row.commdityCount) | number_format}}</td>
|
||||
<td class="price">{{row.bs | number_format}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<tr>
|
||||
<th colspan="3" class="total text">جمع فاکتور</th>
|
||||
<th class="total price">{{doc.amount | number_format}}</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<section style="margin-bottom:10px;margin-top:10px;text-align:center;">
|
||||
<b style="text-align:center">
|
||||
از خرید شما متشکریم
|
||||
</b>
|
||||
</section>
|
||||
<footer style="text-align:center">
|
||||
<p>{{ bid.address }}</p>
|
||||
<p>{{ bid.tel }}</p>
|
||||
<p>hesabix.ir</p>
|
||||
</footer>
|
||||
{% endif %}
|
||||
|
||||
{% if printcashdeskRecp%}
|
||||
{% if printInvoice %}
|
||||
<pagebreak>
|
||||
|
||||
{% endif %}
|
||||
<table class="bill-details">
|
||||
<tbody style="text-align:right">
|
||||
<tr>
|
||||
<td style="text-align:right">تاریخ :
|
||||
<span>{{doc.date}}</span>
|
||||
</td>
|
||||
<td style="text-align:right">شماره :
|
||||
<span>#
|
||||
{{doc.code | number_format}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="center-align" colspan="2">
|
||||
<span class="receipt">قبض صندوق</span>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="items">
|
||||
<thead style="background:gray;text-color:white;">
|
||||
<tr>
|
||||
<th class="heading name">کالا</th>
|
||||
<th class="heading qty">تعداد</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
{% if row.commodity != null %}
|
||||
<tr>
|
||||
<td>{{row.commodity.name}}</td>
|
||||
<td>{{row.commdityCount}}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<footer style="text-align:center">
|
||||
<p>{{ bid.name }}</p>
|
||||
</footer>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in a new issue