getProducerModule();
$userModule = $this->getUserModule();
$documentModule = $this->getDocumentModule();
$orderModule = $this->getOrderModule();
$deliveryNoteModule = $this->getDeliveryNoteModule();
$isDocumentDeliveryNote = $documentModule->getSolver()->isDocumentDeliveryNote($document);
$displayPrices = !$isDocumentDeliveryNote || ($isDocumentDeliveryNote && $producerModule->getConfig('document_display_prices_delivery_note'));
$displayProductDescription = $producerModule->getConfig('document_display_product_description');
$documentPriceDecimals = (int) $producerModule->getConfig('option_document_price_decimals');
?>
logo)) : ?>
getSolver()->getConfig('option_document_width_logo'); ?>
= $producerModule->getFullAddressAsHtml($producer); ?>
document_infos_top)): ?>
= nl2br(Html::encode($producer->document_infos_top)) ?>
address && strlen($document->address) > 0): ?>
= nl2br($document->address) ?>
= $userModule->getFullAddress($document->user, true); ?>
getSolver()->isStatusDraft($document)): ?>
= $documentModule->getType($document); ?> non
validé= ($documentModule->getType($document) == 'Facture') ? 'e' : '' ?>
= $documentModule->getType($document); ?>
Date :
= strftime('%d %B %Y', strtotime($document->date)) ?>
reference)) : ?>
Référence :
= $document->reference; ?>
Libellé :
= $document->name; ?>
getSolver()->isDocumentInvoice($document)): ?>
getRepository()->findDeliveryNotesByInvoice($document); ?>
Bons de livraison :
$deliveryNote): ?>
= $deliveryNote->reference ?>,
comment)): ?>
orders) > 0) : ?>
Produit |
taxRate->value == 0): ?>
Prix unitaire |
Prix unitaire HT |
Quantité |
taxRate->value == 0): ?>
Prix |
TVA |
Prix HT |
isDocumentDisplayOrders($document)): ?>
orders as $order): ?>
= $orderModule->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, true) 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($documentModule->getAmount($document, $typeAmount)); ?>
|
getTaxRateModule()->getRepository()->findTaxRatesAsArray();
foreach ($documentModule->getTotalVatArray($document, $typeAmount) as $idTaxRate => $totalVat): ?>
TVA = $taxRateArray[$idTaxRate]->value * 100 ?> % |
= Price::format($totalVat); ?>
|
Total TTC
|
= Price::format($documentModule->getAmountWithTax($document, $typeAmount)) ?>
|
Total
TVA non applicable
|
= Price::format($documentModule->getAmount($document, $typeAmount)) ?>
|
Aucun produit
getClass($document))); ?>
$fieldProducerDocumentInfo)): ?>
Informations générales
= nl2br(Html::encode($producer->$fieldProducerDocumentInfo)) ?>
Commentaire
= Html::encode($document->comment) ?>