Browse Source

[backend] Tiller : adaptation au système de TVA

dev
Guillaume Bourgeois 4 years ago
parent
commit
bca8a151fe
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      backend/controllers/DistributionController.php

+ 2
- 2
backend/controllers/DistributionController.php View File

foreach ($order->productOrder as $productOrder) { foreach ($order->productOrder as $productOrder) {
$lines[] = [ $lines[] = [
'name' => $productOrder->product->name, 'name' => $productOrder->product->name,
'price' => $productOrder->price * 100 * $productOrder->quantity,
'tax' => 5.5,
'price' => $productOrder->getPriceWithTax() * 100 * $productOrder->quantity,
'tax' => $productOrder->taxRate->value * 100,
'date' => $strDate, 'date' => $strDate,
'quantity' => $productOrder->quantity 'quantity' => $productOrder->quantity
]; ];

Loading…
Cancel
Save