Parcourir la source

[Admin] Export étiquettes avancées : ajustements

feature/souke
Guillaume Bourgeois il y a 11 mois
Parent
révision
843d8b07b9
1 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. +5
    -4
      common/logic/Distribution/Distribution/Export/DistributionShoppingCartLabelsPdfGenerator.php

+ 5
- 4
common/logic/Distribution/Distribution/Export/DistributionShoppingCartLabelsPdfGenerator.php Voir le fichier

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

Chargement…
Annuler
Enregistrer