本文整理汇总了PHP中Products::get_products_tax方法的典型用法代码示例。如果您正苦于以下问题:PHP Products::get_products_tax方法的具体用法?PHP Products::get_products_tax怎么用?PHP Products::get_products_tax使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Products
的用法示例。
在下文中一共展示了Products::get_products_tax方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Block
$do_block = new Block();
$do_block->get_block_by_module($module_id);
$do_global_settings = new CRMGlobalSettings();
$inv_terms_cond = $do_global_settings->get_inventory_terms_condition();
$tems_condition = $inv_terms_cond["salesorder_terms_condition"];
$module_obj = new SalesOrder();
$module_obj->getId($sqcrm_record_id);
$do_lineitems = new Lineitems();
$do_lineitems->get_line_items($module_id, $sqcrm_record_id);
$do_products = new Products();
$lineitems = array();
if ($do_lineitems->getNumRows() > 0) {
while ($do_lineitems->next()) {
$product_available_tax = '';
if ($do_lineitems->item_type == 'product') {
$product_available_tax = $do_products->get_products_tax($do_lineitems->item_value);
}
$lineitems[] = array("idlineitems" => $do_lineitems->idlineitems, "item_type" => $do_lineitems->item_type, "item_name" => $do_lineitems->item_name, "item_value" => $do_lineitems->item_value, "item_description" => $do_lineitems->item_description, "item_quantity" => $do_lineitems->item_quantity, "item_price" => $do_lineitems->item_price, "discount_type" => $do_lineitems->discount_type, "discount_value" => $do_lineitems->discount_value, "discounted_amount" => $do_lineitems->discounted_amount, "tax_values" => $do_lineitems->tax_values, "product_available_tax" => $product_available_tax, "taxed_amount" => $do_lineitems->taxed_amount, "total_after_discount" => $do_lineitems->total_after_discount, "total_after_tax" => $do_lineitems->total_after_tax, "net_total" => $do_lineitems->net_total);
}
}
//print_r($lineitems);
if (isset($_GET["return_page"]) && $_GET["return_page"] != '') {
$return = $_GET["return_page"];
$cancel_return = NavigationControl::getNavigationLink($module, $return, $sqcrm_record_id);
} else {
$cancel_return = NavigationControl::getNavigationLink($module, "list");
}
//Assigned to iduser or group ?
if ($module_obj->iduser > 0) {
$assigned_to = 'user_' . $module_obj->iduser;
} elseif ($module_obj->idgroup > 0) {
示例2: CRMFields
* @author Abhik Chakraborty
*/
$do_crmfields = new CRMFields();
$do_block = new Block();
$do_block->get_block_by_module(16);
//-- get block information for purchase order
$do_global_settings = new CRMGlobalSettings();
$inv_terms_cond = $do_global_settings->get_inventory_terms_condition();
$tems_condition = $inv_terms_cond["purchaseorder_terms_condition"];
$module_obj = new Products();
$module_obj->getId($sqcrm_record_id);
//update the properties
$module_obj->terms_condition = $tems_condition;
//-- create a new object for Products so that the previously created object is not overwritten
$do_products = new Products();
$product_available_tax = $do_products->get_products_tax($sqcrm_record_id);
$lineitems[] = array("idlineitems" => 1, "item_type" => "product", "item_name" => $module_obj->product_name, "item_value" => $sqcrm_record_id, "item_description" => $module_obj->description, "item_quantity" => '', "item_price" => $module_obj->product_price, "discount_type" => '', "discount_value" => '', "discounted_amount" => '', "tax_values" => '', "product_available_tax" => $product_available_tax, "taxed_amount" => '', "total_after_discount" => '', "total_after_tax" => '', "net_total" => '');
$target_module = 'PurchaseOrder';
if (isset($_GET["return_page"]) && $_GET["return_page"] != '') {
$return = $_GET["return_page"];
$cancel_return = NavigationControl::getNavigationLink('Products', $return, $sqcrm_record_id);
} else {
$cancel_return = NavigationControl::getNavigationLink($module, "list");
}
//Assigned to iduser or group ?
if ($module_obj->iduser > 0) {
$assigned_to = 'user_' . $module_obj->iduser;
} elseif ($module_obj->idgroup > 0) {
$assigned_to = 'group_' . $module_obj->idgroup;
}
//--overwrite module id to 14 for edit_view_form_fields