diff --git a/hesabixCore/src/Controller/SellController.php b/hesabixCore/src/Controller/SellController.php index 29e9934..a7ebd38 100644 --- a/hesabixCore/src/Controller/SellController.php +++ b/hesabixCore/src/Controller/SellController.php @@ -338,9 +338,11 @@ class SellController extends AbstractController $this->renderView('pdf/posPrinters/sell.html.twig', [ 'bid' => $acc['bid'], 'doc'=>$doc, - 'rows'=>$doc->getHesabdariRows() + 'rows'=>$doc->getHesabdariRows(), + 'printInvoice'=>$params['posPrint'], + 'printcashdeskRecp'=>$params['posPrintRecp'], ]), - $posPrint + true ); return $this->json(['id' => $pid]); } diff --git a/hesabixCore/src/Service/pdfMGR.php b/hesabixCore/src/Service/pdfMGR.php index 152c489..69ef005 100644 --- a/hesabixCore/src/Service/pdfMGR.php +++ b/hesabixCore/src/Service/pdfMGR.php @@ -50,7 +50,7 @@ class pdfMGR { $mpdf = new \Mpdf\Mpdf([ - 'mode' => 'utf-8', 'format' => [80, 600], + 'mode' => 'utf-8', 'format' => [80, 300], 'fontdata' => [ 'vazirmatn' => [ 'R' => 'Vazir-Regular-FD.ttf', diff --git a/hesabixCore/templates/pdf/posPrinters/sell.html.twig b/hesabixCore/templates/pdf/posPrinters/sell.html.twig index 749ad89..95ce1bb 100644 --- a/hesabixCore/templates/pdf/posPrinters/sell.html.twig +++ b/hesabixCore/templates/pdf/posPrinters/sell.html.twig @@ -1,10 +1,10 @@ - +
- +{% if printInvoice%}{{ bid.name }}
+
تاریخ : + {{doc.date}} + | +شماره : + # + {{doc.code | number_format}} + | +
+ قبض صندوق + | +
---|
کالا | +تعداد | +
---|---|
{{row.commodity.name}} | +{{row.commdityCount}} | +