getProducerManager();
$userManager = $this->getUserManager();
$documentManager = $this->getDocumentManager();
$orderManager = $this->getOrderManager();
$displayPrices = Yii::$app->controller->getClass() != 'DeliveryNote' || (Yii::$app->controller->getClass() == 'DeliveryNote' && $producerManager->getConfig('document_display_prices_delivery_note'));
$displayProductDescription = $producerManager->getConfig('document_display_product_description');
$documentPriceDecimals = (int) $producerManager->getConfig('option_document_price_decimals');
?>
logo)) : ?>
= $producerManager->getFullAddress($producer, true); ?>
address && strlen($document->address) > 0): ?>
= nl2br($document->address) ?>
= $userManager->getFullAddress($document->user, true); ?>
Le = strftime('%d %B %Y', strtotime($document->date)) ?>
reference)) : ?>
= $documentManager->getType($document); ?> N°= $document->reference; ?>
= $documentManager->getType($document); ?> non
validé= ($documentManager->getType($document) == 'Facture') ? 'e' : '' ?>
Libellé : = $document->name; ?>
comment)): ?>
Commentaire
= Html::encode($document->comment) ?>
orders) > 0) : ?>
Produit |
taxRate->value == 0): ?>
Prix unitaire |
Prix unitaire HT |
Quantité |
Unité |
taxRate->value == 0): ?>
Prix |
TVA |
Prix HT |
isDocumentDisplayOrders($document)): ?>
orders as $order): ?>
= $orderManager->getOrderUsername($order); ?>
distribution): ?>
le = date('d/m/Y', strtotime($order->distribution->date)) ?>
|
|
|
|
taxRate->value != 0): ?>
|
|
productOrder as $productOrder): ?>
= $this->render('_download_product_line', [
'producer' => $producer,
'document' => $document,
'productOrder' => $productOrder,
'displayOrders' => true,
'displayPrices' => $displayPrices,
'displayProductDescription' => $displayProductDescription,
'documentPriceDecimals' => $documentPriceDecimals
]) ?>
getProductsOrders($document) as $product): ?>
= $this->render('_download_product_line', [
'producer' => $producer,
'document' => $document,
'productOrder' => $productOrder,
'displayPrices' => $displayPrices,
'displayProductDescription' => $displayProductDescription,
'documentPriceDecimals' => $documentPriceDecimals
]) ?>
isInvoicePrice($document) ? Order::INVOICE_AMOUNT_TOTAL : Order::AMOUNT_TOTAL; ?>
taxRate->value != 0): ?>
Total HT |
= Price::format($documentManager->getAmount($document, $typeAmount)); ?>
|
getTaxRateManager()->findTaxRatesAsArray();
foreach ($documentManager->getTotalVatArray($document, $typeAmount) as $idTaxRate => $totalVat): ?>
TVA = $taxRateArray[$idTaxRate]->value * 100 ?> % |
= Price::format($totalVat); ?>
|
Total TTC |
= Price::format($documentManager->getAmountWithTax($document, $typeAmount)) ?> |
Total
TVA non applicable
|
= Price::format($documentManager->getAmount($document, $typeAmount)) ?> |
Aucun produit
getClass($document))); ?>
$fieldProducerDocumentInfo)): ?>
Informations
= nl2br(Html::encode($producer->$fieldProducerDocumentInfo)) ?>