Преглед на файлове

[Admin] Export étiquettes avancées : ajustements

feature/souke
Guillaume Bourgeois преди 11 месеца
родител
ревизия
843d8b07b9
променени са 1 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. +5
    -4
      common/logic/Distribution/Distribution/Export/DistributionShoppingCartLabelsPdfGenerator.php

+ 5
- 4
common/logic/Distribution/Distribution/Export/DistributionShoppingCartLabelsPdfGenerator.php Целия файл

@@ -115,7 +115,7 @@ class DistributionShoppingCartLabelsPdfGenerator extends AbstractGenerator imple
return $order->pointSale && $order->pointSale->exclude_export_shopping_cart_labels;
}

public function getCss(bool $isSpecificFormat = false, float $specificFormatWith = 0, float $specificFormatHeight = 0): string
public function getCss(bool $isSpecificFormat = false, float $specificFormatWidth = 0, float $specificFormatHeight = 0): string
{
$css = '
@page {
@@ -130,7 +130,7 @@ class DistributionShoppingCartLabelsPdfGenerator extends AbstractGenerator imple
.shopping-cart-label .username {
font-weight: bold;
font-size: 13px;
font-size: 16px;
}
.shopping-cart-label .point-sale {
@@ -147,17 +147,18 @@ class DistributionShoppingCartLabelsPdfGenerator extends AbstractGenerator imple
if($isSpecificFormat) {

$paddingShoppingCartLabel = 3;
$specificFormatWith = $specificFormatWith - 2 * $paddingShoppingCartLabel;
$specificFormatWidth = $specificFormatWidth - 2 * $paddingShoppingCartLabel;
$specificFormatHeight = $specificFormatHeight - 2 * $paddingShoppingCartLabel;

$css .= '
.shopping-cart-label {
box-sizing: border-box;
padding: '.$paddingShoppingCartLabel.'mm;
width: '.$specificFormatWith.'mm;
width: '.$specificFormatWidth.'mm;
height: '.$specificFormatHeight.'mm;
display: block;
float: left;
/*border: solid 1px red;*/
}';
}
else {

Loading…
Отказ
Запис