public function Sale_bill($id){
$data['Sales'] = $this->Sales_model->get_sales_by_id($id);
$data['Sold_items'] = $this->Sales_model->sold_items_by_sale_id($id);
$GST_Percentages = array(0, 2.5, 6, 9, 14);
foreach($GST_Percentages as $GST_Percentage){
$data['GST_data'][] = array($GST_Percentage => '');
$data['GST_data'][$i][$GST_Percentage] = array_filter($data['Sold_items'], sold_item_by_gst_percentage($data['Sold_items'], $GST_Percentage));
}
}
private function sold_item_by_gst_percentage($GST, $GST_Percentage){
return ($GST['CGST_Percentage'] == $GST_Percentage);
}
当我致电sold_item_by_gst_percentage时,它说Call to undefined function sold_item_by_gst_percentage()
如何解决此问题请帮助我。
答案 0 :(得分:0)
您是否尝试过以下操作:
{{1}}