|
|
@@ -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 { |