|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |