Browse Source

[Backend] Export Evoliz : intégration code classification vente

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
25cf867ad6
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      backend/controllers/DocumentController.php

+ 5
- 2
backend/controllers/DocumentController.php View File



namespace backend\controllers; namespace backend\controllers;


use common\helpers\CSV;
use common\helpers\Price; use common\helpers\Price;
use common\models\DeliveryNote; use common\models\DeliveryNote;
use common\models\Invoice; use common\models\Invoice;
'TVA', 'TVA',
'Total TVA', 'Total TVA',
'Total HT', 'Total HT',
'Créateur',
'Classification vente',
'Code Classification vente',
]; ];


foreach($document->getProductsOrders() as $productOrderArray) { foreach($document->getProductsOrders() as $productOrderArray) {
$productOrder->taxRate->value * 100, // TVA $productOrder->taxRate->value * 100, // TVA
$tva, // Total TVA $tva, // Total TVA
$priceTotal, // Total HT $priceTotal, // Total HT
'', // Créateur
'', // Classification vente
'01', // Code Classification vente
]; ];
} }
} }

Loading…
Cancel
Save