Jump to content

Errore per Rimborso Parziale (PS 1.0.6.11)


Vincent P.

Recommended Posts

Salve a tutti

 

stavo eseguando le prove finali del sito prima di andare on-line, nella simulazione di un RIMBORSO PARZIALE ho riscontrato questo errore (vedi allegato)

 

Qualcuno con conoscenze tecniche mi saprebbe dire a cosa è dovuto?

 

 

 

[PrestaShopException]

Property OrderSlip->total_products_tax_excl is empty
at line 866 in file classes/ObjectModel.php

861. 862. 			$message = $this->validateField($field, $this->$field);863. 			if ($message !== true)864. 			{865. 				if ($die)866. 					throw new PrestaShopException($message);867. 				return $error_return ? $message : false;868. 			}869. 		}870. 871. 		return true;
  • ObjectModelCore->validateFields - [line 272 - classes/ObjectModel.php]
    267. 	 *268. 	 * @return array All object fields269. 	 */270. 	public function getFields()271. 	{272. 		$this->validateFields();273. 		$fields = $this->formatFields(self::FORMAT_COMMON);274. 275. 		// For retro compatibility276. 		if (Shop::isTableAssociated($this->def['table']))277. 			$fields = array_merge($fields, $this->getFieldsShop());
  • ObjectModelCore->getFields - [line 480 - classes/ObjectModel.php]
    475. 		}476. 477. 		// Database insertion478. 		if (Shop::checkIdShopDefault($this->def['table']))479. 			$this->id_shop_default = min($id_shop_list);480. 		if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))481. 			return false;482. 483. 		// Get object id in database484. 		$this->id = ObjectModel::$db->Insert_ID();485. 
  • ObjectModelCore->add - [line 398 - classes/order/OrderSlip.php]
    393. 		$orderSlip->amount = (float)$amount;394. 		$orderSlip->shipping_cost = false;395. 		$orderSlip->shipping_cost_amount = (float)$shipping_cost_amount;396. 		$orderSlip->conversion_rate = $currency->conversion_rate;397. 		$orderSlip->partial = 1;398. 		if (!$orderSlip->add())399. 			return false;400. 401. 		$orderSlip->addPartialSlipDetail($order_detail_list);402. 		return true;403. 	}
  • OrderSlipCore::createPartialOrderSlip - [line 274 - override/controllers/admin/AdminOrdersController.php] - [4 Arguments]
    269. 							$order->weight = sprintf('%.3f '.Configuration::get('PS_WEIGHT_UNIT'), $order_carrier->weight);270. 					}271. 272. 					if ($amount > 0)273. 					{274. 						if (!OrderSlip::createPartialOrderSlip($order, $amount, $shipping_cost_amount, $order_detail_list))275. 							$this->errors[] = Tools::displayError('You cannot generate a partial credit slip.');276. 277. 						// Generate voucher278. 						if (Tools::isSubmit('generateDiscountRefund') && !count($this->errors))279. 						{
  • AdminOrdersController->postProcess - [line 171 - classes/controller/Controller.php]
    166. 			// setMedia MUST be called before postProcess167. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))168. 				$this->setMedia();169. 170. 			// postProcess handles ajaxProcess171. 			$this->postProcess();172. 173. 			if (!empty($this->redirect_after))174. 				$this->redirect();175. 176. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
  • ControllerCore->run - [line 374 - classes/Dispatcher.php]
    369. 			// Execute hook dispatcher370. 			if (isset($params_hook_action_dispatcher))371. 				Hook::exec('actionDispatcher', $params_hook_action_dispatcher);372. 373. 			// Running controller374. 			$controller->run();375. 		}376. 		catch (PrestaShopException $e)377. 		{378. 			$e->displayMessage();379. 		}
  • DispatcherCore->dispatch - [line 54 - admin/index.php]
    49. 	$_POST['controller'] = strtolower($_POST['tab']);50. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))51. 	$_REQUEST['controller'] = strtolower($_REQUEST['tab']);52. 53. // Prepare and trigger admin dispatcher54. Dispatcher::getInstance()->dispatch();

post-913359-0-30028700-1426946237_thumb.jpg

Edited by Vincent P. (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...