|
|
|
|
@ -187,7 +187,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' NO TRADE IN NO DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' NO TRADE IN NO DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -222,7 +222,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' QUANTITY NO TRADE IN NO DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' QUANTITY NO TRADE IN NO DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -257,7 +257,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' NO TRADE IN NO DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' NO TRADE IN NO DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -291,7 +291,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' QUANTITY NO TRADE IN NO DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' QUANTITY NO TRADE IN NO DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -329,7 +329,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' PREMIUM TRADE IN SAME BATTERY NO DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' PREMIUM TRADE IN SAME BATTERY NO DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -367,7 +367,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' MOTOLITE TRADE IN SAME BATTERY NO DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' MOTOLITE TRADE IN SAME BATTERY NO DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -405,7 +405,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' OTHER TRADE IN SAME BATTERY NO DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' OTHER TRADE IN SAME BATTERY NO DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -446,7 +446,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' PREMIUM TRADE IN DIFFERENT BATTERY NO DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' PREMIUM TRADE IN DIFFERENT BATTERY NO DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -487,7 +487,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' MOTOLITE TRADE IN DIFFERENT BATTERY NO DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' MOTOLITE TRADE IN DIFFERENT BATTERY NO DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -528,7 +528,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' OTHER TRADE IN DIFFERENT BATTERY NO DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' OTHER TRADE IN DIFFERENT BATTERY NO DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -569,7 +569,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' QUANTITY TRADE IN NO DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' QUANTITY TRADE IN NO DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -606,7 +606,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' PREMIUM TRADE IN SAME BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' PREMIUM TRADE IN SAME BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -642,7 +642,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' MOTOLITE TRADE IN SAME BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' MOTOLITE TRADE IN SAME BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -678,7 +678,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' OTHER TRADE IN SAME BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' OTHER TRADE IN SAME BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -717,7 +717,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' PREMIUM TRADE IN DIFFERENT BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' PREMIUM TRADE IN DIFFERENT BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -756,7 +756,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' MOTOLITE TRADE IN DIFFERENT BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' MOTOLITE TRADE IN DIFFERENT BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -795,7 +795,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' OTHER TRADE IN DIFFERENT BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' OTHER TRADE IN DIFFERENT BATTERY NO DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -834,7 +834,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' QUANTITY TRADE IN NO DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' QUANTITY TRADE IN NO DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -877,7 +877,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' NO TRADE IN WITH DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' NO TRADE IN WITH DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('PROMO ' . $promo->getName());
|
|
|
|
|
@ -920,7 +920,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' NO TRADE IN WITH DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' NO TRADE IN WITH DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('PROMO ' . $promo->getName());
|
|
|
|
|
@ -968,7 +968,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' TRADE IN SAME BATTERY WITH DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' TRADE IN SAME BATTERY WITH DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('PROMO ' . $promo->getName());
|
|
|
|
|
@ -1016,7 +1016,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' TRADE IN DIFFERENT BATTERY WITH DISCOUNT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' TRADE IN DIFFERENT BATTERY WITH DISCOUNT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1060,7 +1060,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' TRADE IN SAME BATTERY WITH DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' TRADE IN SAME BATTERY WITH DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('PROMO ' . $promo->getName());
|
|
|
|
|
@ -1106,7 +1106,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' TRADE IN DIFFERENT BATTERY WITH DISCOUNT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_NEW) . ' TRADE IN DIFFERENT BATTERY WITH DISCOUNT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1141,7 +1141,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_WARRANTY) . ' WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_WARRANTY) . ' WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1174,7 +1174,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_WARRANTY) . ' WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::BATTERY_REPLACEMENT_WARRANTY) . ' WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1210,7 +1210,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' GAS WITH SERVICE FEE WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' GAS WITH SERVICE FEE WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1245,7 +1245,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' DIESEL WITH SERVICE FEE WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' DIESEL WITH SERVICE FEE WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1280,7 +1280,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' GAS WITH NO SERVICE FEE WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' GAS WITH NO SERVICE FEE WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1315,7 +1315,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' DIESEL WITH NO SERVICE FEE WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' DIESEL WITH NO SERVICE FEE WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1349,7 +1349,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' GAS WITH SERVICE FEE WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' GAS WITH SERVICE FEE WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1382,7 +1382,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' DIESEL WITH SERVICE FEE WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' DIESEL WITH SERVICE FEE WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1415,7 +1415,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' GAS WITH NO SERVICE FEE WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' GAS WITH NO SERVICE FEE WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1448,7 +1448,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' DIESEL WITH NO SERVICE FEE WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::EMERGENCY_REFUEL) . ' DIESEL WITH NO SERVICE FEE WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1478,7 +1478,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::JUMPSTART_TROUBLESHOOT) . ' WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::JUMPSTART_TROUBLESHOOT) . ' WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1506,7 +1506,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::JUMPSTART_TROUBLESHOOT) . ' WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::JUMPSTART_TROUBLESHOOT) . ' WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1536,7 +1536,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::JUMPSTART_WARRANTY) . ' WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::JUMPSTART_WARRANTY) . ' WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1564,7 +1564,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::JUMPSTART_WARRANTY) . ' WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::JUMPSTART_WARRANTY) . ' WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1600,7 +1600,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::OVERHEAT_ASSISTANCE) . ' WITH COOLANT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::OVERHEAT_ASSISTANCE) . ' WITH COOLANT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1634,7 +1634,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::OVERHEAT_ASSISTANCE) . ' WITHOUT COOLANT WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::OVERHEAT_ASSISTANCE) . ' WITHOUT COOLANT WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1669,7 +1669,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::OVERHEAT_ASSISTANCE) . ' WITH COOLANT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::OVERHEAT_ASSISTANCE) . ' WITH COOLANT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1702,7 +1702,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::OVERHEAT_ASSISTANCE) . ' WITHOUT COOLANT WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::OVERHEAT_ASSISTANCE) . ' WITHOUT COOLANT WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1732,7 +1732,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::POST_RECHARGED) . ' WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::POST_RECHARGED) . ' WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1760,7 +1760,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::POST_RECHARGED) . ' WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::POST_RECHARGED) . ' WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1790,7 +1790,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::POST_REPLACEMENT) . ' WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::POST_REPLACEMENT) . ' WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1820,7 +1820,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::POST_REPLACEMENT) . ' WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::POST_REPLACEMENT) . ' WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1856,7 +1856,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::TIRE_REPAIR) . ' WITH SERVICE FEE WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::TIRE_REPAIR) . ' WITH SERVICE FEE WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1891,7 +1891,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::TIRE_REPAIR) . ' WITHOUT SERVICE FEE WITH TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::TIRE_REPAIR) . ' WITHOUT SERVICE FEE WITH TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1925,7 +1925,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::TIRE_REPAIR) . ' WITH SERVICE FEE WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::TIRE_REPAIR) . ' WITH SERVICE FEE WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1958,7 +1958,7 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::TIRE_REPAIR) . ' WITHOUT SERVICE FEE WITHOUT TAX ' . $invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
error_log('TEST: ' . strtoupper(ServiceType::TIRE_REPAIR) . ' WITHOUT SERVICE FEE WITHOUT TAX ' . $invoice_item['title'] . ' ' . $invoice_item['quantity'] . ' ' . $invoice_item['price']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_log('TOTAL ' . print_r(json_encode($total), true));
|
|
|
|
|
@ -1997,27 +1997,9 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
// promo id
|
|
|
|
|
$promo_id = 10;
|
|
|
|
|
|
|
|
|
|
$invoice = $this->inv_manager->generateInvoiceCriteria($jo, $promo_id, $invoice_items, $error_array);
|
|
|
|
|
$this->inv_manager->generateInvoiceCriteria($jo, $promo_id, $invoice_items, $error_array);
|
|
|
|
|
|
|
|
|
|
if (empty($error_array))
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST GENERATEINVOICECRITERIA:');
|
|
|
|
|
error_log('INVOICE');
|
|
|
|
|
error_log('TOTAL PRICE: ' . $invoice->getTotalPrice());
|
|
|
|
|
error_log('VAT EXCLUSIVE PRICE: ' . $invoice->getVATExclusivePrice());
|
|
|
|
|
error_log('VAT: ' . $invoice->getVAT());
|
|
|
|
|
error_log('DISCOUNT: ' . $invoice->getDiscount());
|
|
|
|
|
error_log('TRADE-IN: ' . $invoice->getTradeIn());
|
|
|
|
|
error_log('STATUS: ' . $invoice->getStatus());
|
|
|
|
|
|
|
|
|
|
$invoice_items = $invoice->getItems();
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log($invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if (!empty($error_array))
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST GENERATE INVOICE CRITERIA: Errors found when generating invoice ' . print_r(json_encode($error_array), true));
|
|
|
|
|
}
|
|
|
|
|
@ -2054,27 +2036,9 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
// promo id
|
|
|
|
|
$promo_id = 99;
|
|
|
|
|
|
|
|
|
|
$invoice = $this->inv_manager->generateInvoiceCriteria($jo, $promo_id, $invoice_items, $error_array);
|
|
|
|
|
$this->inv_manager->generateInvoiceCriteria($jo, $promo_id, $invoice_items, $error_array);
|
|
|
|
|
|
|
|
|
|
if (empty($error_array))
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST GENERATEINVOICECRITERIA:');
|
|
|
|
|
error_log('INVOICE');
|
|
|
|
|
error_log('TOTAL PRICE: ' . $invoice->getTotalPrice());
|
|
|
|
|
error_log('VAT EXCLUSIVE PRICE: ' . $invoice->getVATExclusivePrice());
|
|
|
|
|
error_log('VAT: ' . $invoice->getVAT());
|
|
|
|
|
error_log('DISCOUNT: ' . $invoice->getDiscount());
|
|
|
|
|
error_log('TRADE-IN: ' . $invoice->getTradeIn());
|
|
|
|
|
error_log('STATUS: ' . $invoice->getStatus());
|
|
|
|
|
|
|
|
|
|
$invoice_items = $invoice->getItems();
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log($invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if (!empty($error_array))
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST GENERATE INVOICE CRITERIA INVALID PROMO: Errors found when generating invoice ' . print_r(json_encode($error_array), true));
|
|
|
|
|
}
|
|
|
|
|
@ -2111,28 +2075,10 @@ class TestInvoiceManagerCommand extends Command
|
|
|
|
|
// promo id
|
|
|
|
|
$promo_id = 1;
|
|
|
|
|
|
|
|
|
|
$invoice = $this->inv_manager->generateInvoiceCriteria($jo, $promo_id, $invoice_items, $error_array);
|
|
|
|
|
$this->inv_manager->generateInvoiceCriteria($jo, $promo_id, $invoice_items, $error_array);
|
|
|
|
|
|
|
|
|
|
if (empty($error_array))
|
|
|
|
|
if (!empty($error_array))
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST GENERATEINVOICECRITERIA:');
|
|
|
|
|
error_log('INVOICE');
|
|
|
|
|
error_log('TOTAL PRICE: ' . $invoice->getTotalPrice());
|
|
|
|
|
error_log('VAT EXCLUSIVE PRICE: ' . $invoice->getVATExclusivePrice());
|
|
|
|
|
error_log('VAT: ' . $invoice->getVAT());
|
|
|
|
|
error_log('DISCOUNT: ' . $invoice->getDiscount());
|
|
|
|
|
error_log('TRADE-IN: ' . $invoice->getTradeIn());
|
|
|
|
|
error_log('STATUS: ' . $invoice->getStatus());
|
|
|
|
|
|
|
|
|
|
$invoice_items = $invoice->getItems();
|
|
|
|
|
|
|
|
|
|
foreach ($invoice_items as $invoice_item)
|
|
|
|
|
{
|
|
|
|
|
error_log($invoice_item->getTitle() . ' ' . $invoice_item->getQuantity() . ' ' . $invoice_item->getPrice());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
error_log('TEST GENERATE INVOICE CRITERIA INVALID BATTERY: Errors found when generating invoice ' . print_r(json_encode($error_array), true));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|