mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
|
|
/* crmv@208173 */
|
|
|
|
global $mod_strings;
|
|
global $app_strings;
|
|
global $theme;
|
|
$theme_path="themes/".$theme."/";
|
|
$image_path=$theme_path."images/";
|
|
|
|
if(isset($_REQUEST['return_module']) && $_REQUEST['return_module']=="PriceBooks")
|
|
{
|
|
$pricebook_id = vtlib_purify($_REQUEST['pricebook_id']);
|
|
$product_id = vtlib_purify($_REQUEST['record']);
|
|
$listprice = vtlib_purify($_REQUEST['listprice']);
|
|
$return_action = "CallRelatedList";
|
|
$return_id = vtlib_purify($_REQUEST['pricebook_id']);
|
|
}
|
|
else
|
|
{
|
|
$product_id = vtlib_purify($_REQUEST['record']);
|
|
$pricebook_id = vtlib_purify($_REQUEST['pricebook_id']);
|
|
$listprice = getListPrice($product_id,$pricebook_id);
|
|
$return_action = "CallRelatedList";
|
|
$return_id = vtlib_purify($_REQUEST['pricebook_id']);
|
|
}
|
|
|
|
$smarty = new VteSmarty();
|
|
$smarty->assign('APP', $app_strings);
|
|
$smarty->assign('MOD', $mod_strings);
|
|
$smarty->assign("RETURN_ID", $return_id);
|
|
$smarty->assign("PRICEBOOK_ID", $pricebook_id);
|
|
$smarty->assign("PRODUCT_ID", $product_id);
|
|
$smarty->assign("LIST_PRICE", $listprice);
|
|
|
|
$smarty->display('modules/Assets/EditListPrice.tpl');
|