mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-09 09:29:54 -04:00
requisition receipt fixed
database.sql script merged with current ospos one remaining problems in reporting (sale_type to add in sales_temp query?) data model should be refactored to allow more genericity for custom item locations (2+) inventory tracking should be adapted to use multiple locations (instead of duplicating items for different locations)
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -7,3 +7,6 @@ git-svn-diff.py
|
||||
.buildpath
|
||||
.project
|
||||
.settings/*
|
||||
*.swp
|
||||
*.rej
|
||||
*.orig
|
||||
|
||||
@@ -66,6 +66,7 @@ $autoload['libraries'] = array('database','form_validation','session','user_agen
|
||||
|
||||
$autoload['helper'] = array('form','url','table','text','currency', 'html', 'download', 'directory');
|
||||
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Config files
|
||||
@@ -108,7 +109,7 @@ $autoload['language'] = array();
|
||||
|
|
||||
*/
|
||||
|
||||
$autoload['model'] = array('Appconfig','Person','Customer','Employee','Module','Item', 'Item_taxes', 'Sale', 'Sale_suspended', 'Supplier','Inventory','Receiving','Giftcard', 'Item_kit', 'Item_kit_items');
|
||||
$autoload['model'] = array('Appconfig','Person','Customer','Employee','Module','Item', 'Item_taxes', 'Sale', 'Sale_suspended', 'Supplier','Inventory','Receiving','Giftcard', 'Item_kit', 'Item_kit_items','Item_unit');
|
||||
|
||||
|
||||
/* End of file autoload.php */
|
||||
|
||||
@@ -50,7 +50,9 @@ $route['reports/inventory_:any'] = "reports/excel_export";
|
||||
$route['reports/(detailed_sales)/(:any)/(:any)'] = "reports/$1/$2/$3";
|
||||
$route['reports/detailed_sales'] = "reports/date_input";
|
||||
$route['reports/(detailed_receivings)/(:any)/(:any)'] = "reports/$1/$2/$3";
|
||||
$route['reports/detailed_receivings'] = "reports/date_input";
|
||||
$route['reports/detailed_receivings'] = "reports/date_input_recv";
|
||||
$route['reports/(detailed_requisition)/(:any)/(:any)'] = "reports/$1/$2/$3";
|
||||
$route['reports/detailed_requisition'] = "reports/date_input_reqs";
|
||||
$route['reports/(specific_:any)/(:any)/(:any)/(:any)'] = "reports/$1/$2/$3/$4";
|
||||
$route['reports/specific_customer'] = "reports/specific_customer_input";
|
||||
$route['reports/specific_employee'] = "reports/specific_employee_input";
|
||||
|
||||
@@ -27,18 +27,20 @@ class Items extends Secure_area implements iData_controller
|
||||
$low_inventory=$this->input->post('low_inventory');
|
||||
$is_serialized=$this->input->post('is_serialized');
|
||||
$no_description=$this->input->post('no_description');
|
||||
$search_custom=$this->input->post('search_custom');//GARRISON ADDED 4/13/2013
|
||||
$is_deleted=$this->input->post('is_deleted'); // Parq 131215
|
||||
|
||||
$search_custom=$this->input->post('search_custom');//GARRISON ADDED 4/13/2013
|
||||
$is_deleted=$this->input->post('is_deleted'); // Parq 131215
|
||||
$stock_type=$this->input->post('stock_type');
|
||||
|
||||
$data['search_section_state']=$this->input->post('search_section_state');
|
||||
$data['low_inventory']=$this->input->post('low_inventory');
|
||||
$data['is_serialized']=$this->input->post('is_serialized');
|
||||
$data['no_description']=$this->input->post('no_description');
|
||||
$data['search_custom']=$this->input->post('search_custom');//GARRISON ADDED 4/13/2013
|
||||
$data['is_deleted']=$this->input->post('is_deleted'); // Parq 131215
|
||||
$data['stock_type']=$this->input->post('stock_type');
|
||||
$data['controller_name']=strtolower(get_class());
|
||||
$data['form_width']=$this->get_form_width();
|
||||
$data['manage_table']=get_items_manage_table($this->Item->get_all_filtered($low_inventory,$is_serialized,$no_description,$search_custom,$is_deleted),$this);//GARRISON MODIFIED 4/13/2013, Parq 131215
|
||||
$data['manage_table']=get_items_manage_table($this->Item->get_all_filtered($low_inventory,$is_serialized,$no_description,$search_custom,$is_deleted,$stock_type),$this);//GARRISON MODIFIED 4/13/2013, Parq 131215
|
||||
$this->load->view('items/manage',$data);
|
||||
}
|
||||
|
||||
@@ -66,7 +68,7 @@ class Items extends Secure_area implements iData_controller
|
||||
|
||||
function item_search()
|
||||
{
|
||||
$suggestions = $this->Item->get_item_search_suggestions($this->input->post('q'),$this->input->post('limit'));
|
||||
$suggestions = $this->Item->get_item_search_suggestions($this->input->post('q'),$this->input->post('limit'),'warehouse');
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
@@ -80,104 +82,104 @@ class Items extends Secure_area implements iData_controller
|
||||
}
|
||||
|
||||
/**GARRISON ADDED 5/18/2013**/
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_location()
|
||||
{
|
||||
$suggestions = $this->Item->get_location_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_location()
|
||||
{
|
||||
$suggestions = $this->Item->get_location_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom1()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom1_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom1()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom1_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom2()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom2_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom2()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom2_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom3()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom3_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom3()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom3_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom4()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom4_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom4()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom4_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom5()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom5_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom5()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom5_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom6()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom6_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom6()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom6_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom7()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom7_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom7()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom7_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom8()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom8_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom8()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom8_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom9()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom9_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom9()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom9_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom10()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom10_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
/*
|
||||
Gives search suggestions based on what is being searched for
|
||||
*/
|
||||
function suggest_custom10()
|
||||
{
|
||||
$suggestions = $this->Item->get_custom10_suggestions($this->input->post('q'));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
|
||||
/**END GARRISON ADDED**/
|
||||
|
||||
@@ -202,6 +204,9 @@ class Items extends Secure_area implements iData_controller
|
||||
$data['selected_supplier'] = $this->Item->get_info($item_id)->supplier_id;
|
||||
$data['default_tax_1_rate']=($item_id==-1) ? $this->Appconfig->get('default_tax_1_rate') : '';
|
||||
$data['default_tax_2_rate']=($item_id==-1) ? $this->Appconfig->get('default_tax_2_rate') : '';
|
||||
$data['stock_type'] = $data['item_info']->stock_type;
|
||||
|
||||
$data['item_unit_info']=$this->Item_unit->get_info($item_id);
|
||||
$this->load->view("items/form",$data);
|
||||
}
|
||||
|
||||
@@ -271,7 +276,7 @@ class Items extends Secure_area implements iData_controller
|
||||
'allow_alt_description'=>$this->input->post('allow_alt_description'),
|
||||
'is_serialized'=>$this->input->post('is_serialized'),
|
||||
'deleted'=>$this->input->post('is_deleted'), /** Parq 131215 **/
|
||||
|
||||
'stock_type'=>$this->input->post('stock_type'),
|
||||
'custom1'=>$this->input->post('custom1'), /**GARRISON ADDED 4/21/2013**/
|
||||
'custom2'=>$this->input->post('custom2'),/**GARRISON ADDED 4/21/2013**/
|
||||
'custom3'=>$this->input->post('custom3'),/**GARRISON ADDED 4/21/2013**/
|
||||
@@ -323,6 +328,16 @@ class Items extends Secure_area implements iData_controller
|
||||
}
|
||||
}
|
||||
$this->Item_taxes->save($items_taxes_data, $item_id);
|
||||
|
||||
$items_unit_data = array(
|
||||
'item_id'=>$item_id,
|
||||
'unit_quantity'=>$this->input->post('unit_quantity'),
|
||||
'related_number'=>$this->input->post('related_number'));
|
||||
if($items_unit_data['related_number'] == null)
|
||||
{
|
||||
$items_unit_data['related_number'] = $item_data['item_number'];
|
||||
}
|
||||
$this->Item_unit->save($items_unit_data, $item_id);
|
||||
}
|
||||
else//failure
|
||||
{
|
||||
@@ -552,5 +567,10 @@ class Items extends Secure_area implements iData_controller
|
||||
{
|
||||
return 360;
|
||||
}
|
||||
|
||||
function is_sale_store_item($item_number)
|
||||
{
|
||||
echo $this->Item->is_sale_store_item_exist($item_number);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -15,7 +15,7 @@ class Receivings extends Secure_area
|
||||
|
||||
function item_search()
|
||||
{
|
||||
$suggestions = $this->Item->get_item_search_suggestions($this->input->post('q'),$this->input->post('limit'));
|
||||
$suggestions = $this->Item->get_item_search_suggestions($this->input->post('q'),$this->input->post('limit'),'warehouse');
|
||||
$suggestions = array_merge($suggestions, $this->Item_kit->get_item_kit_search_suggestions($this->input->post('q'),$this->input->post('limit')));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
@@ -37,6 +37,7 @@ class Receivings extends Secure_area
|
||||
{
|
||||
$mode = $this->input->post("mode");
|
||||
$this->receiving_lib->set_mode($mode);
|
||||
$this->receiving_lib->empty_cart();
|
||||
$this->_reload();
|
||||
}
|
||||
|
||||
@@ -45,7 +46,7 @@ class Receivings extends Secure_area
|
||||
$data=array();
|
||||
$mode = $this->receiving_lib->get_mode();
|
||||
$item_id_or_number_or_item_kit_or_receipt = $this->input->post("item");
|
||||
$quantity = $mode=="receive" ? 1:-1;
|
||||
$quantity = ($mode=="receive" or $mode=="requisition") ? 1:-1;
|
||||
|
||||
if($this->receiving_lib->is_valid_receipt($item_id_or_number_or_item_kit_or_receipt) && $mode=='return')
|
||||
{
|
||||
@@ -55,9 +56,19 @@ class Receivings extends Secure_area
|
||||
{
|
||||
$this->receiving_lib->add_item_kit($item_id_or_number_or_item_kit_or_receipt);
|
||||
}
|
||||
elseif(!$this->receiving_lib->add_item($item_id_or_number_or_item_kit_or_receipt,$quantity))
|
||||
else
|
||||
{
|
||||
$data['error']=$this->lang->line('recvs_unable_to_add_item');
|
||||
if($mode == 'requisition')
|
||||
{
|
||||
if(!$this->receiving_lib->add_item_unit($item_id_or_number_or_item_kit_or_receipt))
|
||||
$data['error']=$this->lang->line('reqs_unable_to_add_item');
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!$this->receiving_lib->add_item($item_id_or_number_or_item_kit_or_receipt,$quantity))
|
||||
$data['error']=$this->lang->line('recvs_unable_to_add_item');
|
||||
}
|
||||
|
||||
}
|
||||
$this->_reload($data);
|
||||
}
|
||||
@@ -88,6 +99,26 @@ class Receivings extends Secure_area
|
||||
$this->_reload($data);
|
||||
}
|
||||
|
||||
function edit_item_unit($item_id)
|
||||
{
|
||||
$data= array();
|
||||
|
||||
$this->form_validation->set_rules('quantity', 'lang:items_quantity', 'required|integer');
|
||||
$quantity = $this->input->post("quantity");
|
||||
|
||||
|
||||
if ($this->form_validation->run() != FALSE)
|
||||
{
|
||||
$this->receiving_lib->edit_item_unit($item_id,$description,$quantity,0,0);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['error']=$this->lang->line('recvs_error_editing_item');
|
||||
}
|
||||
|
||||
$this->_reload($data);
|
||||
}
|
||||
|
||||
function delete_item($item_number)
|
||||
{
|
||||
$this->receiving_lib->delete_item($item_number);
|
||||
@@ -138,6 +169,48 @@ class Receivings extends Secure_area
|
||||
$this->receiving_lib->clear_all();
|
||||
}
|
||||
|
||||
function requisition_complete()
|
||||
{
|
||||
$data['cart']=$this->receiving_lib->get_cart();
|
||||
$data['receipt_title']=$this->lang->line('reqs_receipt');
|
||||
$data['transaction_time']= date('m/d/Y h:i:s a');
|
||||
|
||||
$employee_id=$this->Employee->get_logged_in_employee_info()->person_id;
|
||||
$emp_info=$this->Employee->get_info($employee_id);
|
||||
$data['employee']=$emp_info->first_name.' '.$emp_info->last_name;
|
||||
|
||||
$comment = $this->input->post('comment');
|
||||
|
||||
//SAVE requisition to database
|
||||
$data['requisition_id']='REQS '.$this->Receiving->save_requisition($data['cart'],$employee_id,$comment);
|
||||
|
||||
if ($data['requisition_id'] == 'REQS -1')
|
||||
{
|
||||
$data['error_message'] = $this->lang->line('reqs_transaction_failed');
|
||||
}
|
||||
|
||||
$this->load->view("receivings/requisition_receipt",$data);
|
||||
$this->receiving_lib->clear_all();
|
||||
}
|
||||
|
||||
function requisition_receipt($requisition_id)
|
||||
{
|
||||
$requisition_info = $this->Receiving->get_requisition_info($requisition_id)->row_array();
|
||||
$this->receiving_lib->copy_entire_requisition($requisition_id);
|
||||
|
||||
$data['cart']=$this->receiving_lib->get_cart();
|
||||
$data['receipt_title']=$this->lang->line('reqs_receipt');
|
||||
$data['transaction_time']= date('m/d/Y h:i:s a');
|
||||
|
||||
$employee_id=$this->Employee->get_logged_in_employee_info()->person_id;
|
||||
$emp_info=$this->Employee->get_info($employee_id);
|
||||
$data['employee']=$emp_info->first_name.' '.$emp_info->last_name;
|
||||
|
||||
$data['requisition_id']='REQS '.$requisition_id;
|
||||
$this->load->view("receivings/requisition_receipt",$data);
|
||||
$this->receiving_lib->clear_all();
|
||||
}
|
||||
|
||||
function receipt($receiving_id)
|
||||
{
|
||||
$receiving_info = $this->Receiving->get_info($receiving_id)->row_array();
|
||||
@@ -167,7 +240,7 @@ class Receivings extends Secure_area
|
||||
{
|
||||
$person_info = $this->Employee->get_logged_in_employee_info();
|
||||
$data['cart']=$this->receiving_lib->get_cart();
|
||||
$data['modes']=array('receive'=>$this->lang->line('recvs_receiving'),'return'=>$this->lang->line('recvs_return'));
|
||||
$data['modes']=array('receive'=>$this->lang->line('recvs_receiving'),'return'=>$this->lang->line('recvs_return'), 'requisition'=>$this->lang->line('recvs_requisition'));
|
||||
$data['mode']=$this->receiving_lib->get_mode();
|
||||
$data['total']=$this->receiving_lib->get_total();
|
||||
$data['items_module_allowed'] = $this->Employee->has_permission('items', $person_info->person_id);
|
||||
|
||||
@@ -302,9 +302,24 @@ class Reports extends Secure_area
|
||||
function date_input()
|
||||
{
|
||||
$data = $this->_get_common_report_data();
|
||||
$data['mode'] = 'sale';
|
||||
$this->load->view("reports/date_input",$data);
|
||||
}
|
||||
|
||||
function date_input_recv()
|
||||
{
|
||||
$data = $this->_get_common_report_data();
|
||||
$data['mode'] = 'receiving';
|
||||
$this->load->view("reports/date_input",$data);
|
||||
}
|
||||
|
||||
function date_input_reqs()
|
||||
{
|
||||
$data = $this->_get_common_report_data();
|
||||
$data['mode'] = 'requisition';
|
||||
$this->load->view("reports/date_input",$data);
|
||||
}
|
||||
|
||||
//Graphical summary sales report
|
||||
function graphical_summary_sales($start_date, $end_date, $sale_type)
|
||||
{
|
||||
@@ -827,14 +842,14 @@ class Reports extends Secure_area
|
||||
|
||||
$this->load->view("reports/tabular_details",$data);
|
||||
}
|
||||
|
||||
function detailed_receivings($start_date, $end_date, $sale_type, $export_excel=0)
|
||||
|
||||
function detailed_receivings($start_date, $end_date, $receiving_type, $export_excel=0)
|
||||
{
|
||||
$this->load->model('reports/Detailed_receivings');
|
||||
$model = $this->Detailed_receivings;
|
||||
|
||||
$headers = $model->getDataColumns();
|
||||
$report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type));
|
||||
$report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'receiving_type' => $receiving_type));
|
||||
|
||||
$summary_data = array();
|
||||
$details_data = array();
|
||||
@@ -855,13 +870,46 @@ class Reports extends Secure_area
|
||||
"headers" => $model->getDataColumns(),
|
||||
"summary_data" => $summary_data,
|
||||
"details_data" => $details_data,
|
||||
"overall_summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)),
|
||||
"overall_summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'receiving_type' => $receiving_type)),
|
||||
"export_excel" => $export_excel
|
||||
);
|
||||
|
||||
$this->load->view("reports/tabular_details",$data);
|
||||
}
|
||||
|
||||
|
||||
function detailed_requisition($start_date, $end_date , $export_excel=0)
|
||||
{
|
||||
$this->load->model('reports/Detailed_requisition');
|
||||
$model = $this->Detailed_requisition;
|
||||
$report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date));
|
||||
|
||||
$summary_data = array();
|
||||
$details_data = array();
|
||||
|
||||
foreach($report_data['summary'] as $key=>$row)
|
||||
{
|
||||
$summary_data[] = array(anchor('receivings/requisition_receipt/'.$row['requisition_id'], 'REQS '.$row['requisition_id'], array('target' => '_blank')), $row['requisition_date'], $row['employee_name'], $row['comment']);
|
||||
|
||||
foreach($report_data['details'][$key] as $drow)
|
||||
{
|
||||
$details_data[$key][] = array($drow['name'], $drow['requisition_quantity'],
|
||||
$drow['related_item_id'], $drow['related_item_quantity'],
|
||||
$drow['related_item_total_quantity']);
|
||||
}
|
||||
}
|
||||
|
||||
$data = array(
|
||||
"title" =>$this->lang->line('reports_detailed_requisition_report'),
|
||||
"subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)),
|
||||
"headers" => $model->getDataColumns(),
|
||||
"summary_data" => $summary_data,
|
||||
"details_data" => $details_data,
|
||||
"overall_summary_data" => '',
|
||||
"export_excel" => $export_excel
|
||||
);
|
||||
$this->load->view("reports/tabular_details",$data);
|
||||
}
|
||||
|
||||
function excel_export()
|
||||
{
|
||||
$this->load->view("reports/excel_export",array());
|
||||
|
||||
@@ -15,7 +15,16 @@ class Sales extends Secure_area
|
||||
|
||||
function item_search()
|
||||
{
|
||||
$suggestions = $this->Item->get_item_search_suggestions($this->input->post('q'),$this->input->post('limit'));
|
||||
$stock_type;
|
||||
if($this->sale_lib->get_mode()=='sale_wholesale')
|
||||
{
|
||||
$stock_type = 'warehouse';
|
||||
}
|
||||
else
|
||||
{
|
||||
$stock_type = 'sale_stock';
|
||||
}
|
||||
$suggestions = $this->Item->get_item_search_suggestions($this->input->post('q'),$this->input->post('limit'),$stock_type);
|
||||
$suggestions = array_merge($suggestions, $this->Item_kit->get_item_kit_search_suggestions($this->input->post('q'),$this->input->post('limit')));
|
||||
echo implode("\n",$suggestions);
|
||||
}
|
||||
@@ -35,8 +44,9 @@ class Sales extends Secure_area
|
||||
|
||||
function change_mode()
|
||||
{
|
||||
$this->sale_lib->clear_all();
|
||||
$mode = $this->input->post("mode");
|
||||
$this->sale_lib->set_mode($mode);
|
||||
$this->sale_lib->set_mode($mode);
|
||||
$this->_reload();
|
||||
}
|
||||
|
||||
@@ -112,7 +122,7 @@ class Sales extends Secure_area
|
||||
$data=array();
|
||||
$mode = $this->sale_lib->get_mode();
|
||||
$item_id_or_number_or_item_kit_or_receipt = $this->input->post("item");
|
||||
$quantity = $mode=="sale" ? 1:-1;
|
||||
$quantity = (($mode=="sale_wholesale") or ($mode=="sale_retail"))? 1:-1;
|
||||
|
||||
if($this->sale_lib->is_valid_receipt($item_id_or_number_or_item_kit_or_receipt) && $mode=='return')
|
||||
{
|
||||
@@ -329,7 +339,8 @@ class Sales extends Secure_area
|
||||
}
|
||||
|
||||
/* Changed the conditional to account for floating point rounding */
|
||||
if ( ( $this->sale_lib->get_mode() == 'sale' ) && ( ( to_currency_no_money( $this->sale_lib->get_total() ) - $total_payments ) > 1e-6 ) )
|
||||
if ( ( ($this->sale_lib->get_mode() == 'sale_retail') || ($this->sale_lib->get_mode() == 'sale_wholesale')) &&
|
||||
( ( to_currency_no_money( $this->sale_lib->get_total() ) - $total_payments ) > 1e-6 ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -341,7 +352,7 @@ class Sales extends Secure_area
|
||||
{
|
||||
$person_info = $this->Employee->get_logged_in_employee_info();
|
||||
$data['cart']=$this->sale_lib->get_cart();
|
||||
$data['modes']=array('sale'=>$this->lang->line('sales_sale'),'return'=>$this->lang->line('sales_return'));
|
||||
$data['modes']=array('sale_retail'=>$this->lang->line('sales_sale_retail'),'sale_wholesale'=>$this->lang->line('sales_wholesale'),'return'=>$this->lang->line('sales_return'));
|
||||
$data['mode']=$this->sale_lib->get_mode();
|
||||
$data['subtotal']=$this->sale_lib->get_subtotal();
|
||||
$data['taxes']=$this->sale_lib->get_taxes();
|
||||
|
||||
@@ -23,4 +23,5 @@ $lang['employees_login_info'] = 'Employee Login Info';
|
||||
$lang['employees_permission_info'] = 'Employee Permissions and Access';
|
||||
$lang['employees_permission_desc'] = 'Check the boxes below to grant access to modules';
|
||||
$lang['employees_error_updating_demo_admin'] = 'You can not change the demo admin user';
|
||||
$lang['employees_error_deleting_demo_admin'] = 'You can not delete the demo admin user';
|
||||
?>
|
||||
|
||||
@@ -1,56 +1,56 @@
|
||||
<?php
|
||||
$lang['items_item_number'] = 'UPC/EAN/ISBN';
|
||||
$lang['items_retrive_item_info'] = 'Retrive Item Info';
|
||||
$lang['items_description'] = 'Description';
|
||||
$lang['items_amazon'] = 'Amazon';
|
||||
$lang['items_upc_database'] = 'UPC Database';
|
||||
$lang['items_cannot_find_item'] = 'Cannot find any information about item';
|
||||
$lang['items_info_provided_by'] = 'Info provided by';
|
||||
$lang['items_basic_information'] = 'Item Information';
|
||||
$lang['items_number_information'] = 'Item Number';
|
||||
$lang['items_new'] = 'New Item';
|
||||
$lang['items_update'] = 'Update Item';
|
||||
$lang['items_item'] = 'Item';
|
||||
$lang['items_edit_multiple_items'] = 'Editing Multiple Items';
|
||||
$lang['items_name'] = 'Item Name';
|
||||
$lang['items_category'] = 'Category';
|
||||
$lang['items_cost_price'] = 'Wholesale Price';//GARRISON ADDED 4/21/2013
|
||||
$lang['items_unit_price'] = 'Retail Price';//GARRISON ADDED 4/21/2013
|
||||
$lang['items_tax_1'] = 'Tax 1';
|
||||
$lang['items_tax_2'] = 'Tax 2';
|
||||
$lang['items_item_number']='UPC/EAN/ISBN';
|
||||
$lang['items_retrive_item_info']='Retrive Item Info';
|
||||
$lang['items_description']='Description';
|
||||
$lang['items_amazon']='Amazon';
|
||||
$lang['items_upc_database']='UPC Database';
|
||||
$lang['items_cannot_find_item']='Cannot find any information about item';
|
||||
$lang['items_info_provided_by']='Info provided by';
|
||||
$lang['items_basic_information']='Item Information';
|
||||
$lang['items_number_information']='Item Number';
|
||||
$lang['items_new']='New Item';
|
||||
$lang['items_update']='Update Item';
|
||||
$lang['items_item']='Item';
|
||||
$lang['items_edit_multiple_items']='Editing Multiple Items';
|
||||
$lang['items_name']='Item Name';
|
||||
$lang['items_category']='Category';
|
||||
$lang['items_cost_price']='Cost Price';//GARRISON ADDED 4/21/2013
|
||||
$lang['items_unit_price']='Retail Price';//GARRISON ADDED 4/21/2013
|
||||
$lang['items_tax_1']='Tax 1';
|
||||
$lang['items_tax_2']='Tax 2';
|
||||
$lang['items_sales_tax_1'] = 'Sales Tax';
|
||||
$lang['items_sales_tax_2'] = 'Sales Tax 2';
|
||||
$lang['items_tax_percent'] = 'Tax Percent';
|
||||
$lang['items_tax_percents'] = 'Tax Percent(s)';
|
||||
$lang['items_reorder_level'] = 'Reorder Level';
|
||||
$lang['items_quantity'] = 'Quantity';
|
||||
$lang['items_reorder_level'] = 'Reorder Level';
|
||||
$lang['items_no_items_to_display'] = 'No Items to display';
|
||||
$lang['items_bulk_edit'] = 'Bulk Edit';
|
||||
$lang['items_confirm_delete'] = 'Are you sure you want to delete the selected items?';
|
||||
$lang['items_none_selected'] = 'You have not selected any items to edit';
|
||||
$lang['items_confirm_bulk_edit'] = 'Are you sure you want to edit all the items selected?';
|
||||
$lang['items_successful_bulk_edit'] = 'You have successfully updated the selected items';
|
||||
$lang['items_error_updating_multiple'] = 'Error updating items';
|
||||
$lang['items_edit_fields_you_want_to_update'] = 'Edit the fields you want to edit for ALL selected items';
|
||||
$lang['items_tax_percent']='Tax Percent';
|
||||
$lang['items_tax_percents']='Tax Percent(s)';
|
||||
$lang['items_reorder_level']='Reorder Level';
|
||||
$lang['items_quantity']='Quantity';
|
||||
$lang['items_reorder_level']='Reorder Level';
|
||||
$lang['items_no_items_to_display']='No Items to display';
|
||||
$lang['items_bulk_edit']='Bulk Edit';
|
||||
$lang['items_confirm_delete']='Are you sure you want to delete the selected items?';
|
||||
$lang['items_none_selected']='You have not selected any items to edit';
|
||||
$lang['items_confirm_bulk_edit']='Are you sure you want to edit all the items selected?';
|
||||
$lang['items_successful_bulk_edit']='You have successfully updated the selected items';
|
||||
$lang['items_error_updating_multiple']='Error updating items';
|
||||
$lang['items_edit_fields_you_want_to_update']='Edit the fields you want to edit for ALL selected items';
|
||||
$lang['items_error_adding_updating'] = 'Error adding/updating item';
|
||||
$lang['items_successful_adding'] = 'You have successfully added item';
|
||||
$lang['items_successful_updating'] = 'You have successfully updated item';
|
||||
$lang['items_successful_deleted'] = 'You have successfully deleted';
|
||||
$lang['items_one_or_multiple'] = 'item(s)';
|
||||
$lang['items_cannot_be_deleted'] = 'Could not deleted selected items, one or more of the selected items has sales.';
|
||||
$lang['items_name_required'] = 'Item Name is a required field';
|
||||
$lang['items_category_required'] = 'Category is a required field';
|
||||
$lang['items_buy_price_required'] = 'Purchase price is a required field'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_unit_price_required'] = 'Retail Price is a required field'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_cost_price_required'] = 'Wholesale Price is a required field'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_tax_percent_required'] = 'Tax Percent is a required field';
|
||||
$lang['items_quantity_required'] = 'Quantity is a required field';
|
||||
$lang['items_reorder_level_required'] = 'Reorder level is a required field';
|
||||
$lang['items_unit_price_number'] = 'Unit price must be a number';
|
||||
$lang['items_cost_price_number'] = 'Cost price must be a number';
|
||||
$lang['items_quantity_number'] = 'Quantity must be a number';
|
||||
$lang['items_reorder_level_number'] = 'Reorder level must be a number';
|
||||
$lang['items_successful_adding']='You have successfully added item';
|
||||
$lang['items_successful_updating']='You have successfully updated item';
|
||||
$lang['items_successful_deleted']='You have successfully deleted';
|
||||
$lang['items_one_or_multiple']='item(s)';
|
||||
$lang['items_cannot_be_deleted']='Could not deleted selected items, one or more of the selected items has sales.';
|
||||
$lang['items_name_required']='Item Name is a required field';
|
||||
$lang['items_category_required']='Category is a required field';
|
||||
$lang['items_buy_price_required']='Purchase price is a required field'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_unit_price_required']='Retail Price is a required field'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_cost_price_required']='Cost Price is a required field'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_tax_percent_required']='Tax Percent is a required field';
|
||||
$lang['items_quantity_required']='Quantity is a required field';
|
||||
$lang['items_reorder_level_required']='Reorder level is a required field';
|
||||
$lang['items_unit_price_number']='Unit price must be a number';
|
||||
$lang['items_cost_price_number']='Cost price must be a number';
|
||||
$lang['items_quantity_number']='Quantity must be a number';
|
||||
$lang['items_reorder_level_number']='Reorder level must be a number';
|
||||
$lang['items_none'] = 'None';
|
||||
$lang['items_supplier'] = 'Supplier';
|
||||
$lang['items_generate_barcodes'] = 'Generate Barcodes';
|
||||
@@ -62,12 +62,12 @@ $lang['items_low_inventory_items'] = 'Low Inventory Items';
|
||||
$lang['items_serialized_items'] = 'Serialized Items';
|
||||
$lang['items_no_description_items'] = 'No Description Items';
|
||||
$lang['items_search_custom_items'] = 'Search Custom Fields';//GARRISON ADDED
|
||||
$lang['items_inventory_comments'] = 'Comments';
|
||||
$lang['items_count'] = 'Update Inventory';
|
||||
$lang['items_details_count'] = 'Inventory Count Details';
|
||||
$lang['items_add_minus'] = 'Inventory to add/subtract';
|
||||
$lang['items_current_quantity'] = 'Current Quantity';
|
||||
$lang['items_quantity_required'] = 'Quantity is a required field. Please Close ( X ) to cancel';
|
||||
$lang['items_inventory_comments']='Comments';
|
||||
$lang['items_count']='Update Inventory';
|
||||
$lang['items_details_count']='Inventory Count Details';
|
||||
$lang['items_add_minus']='Inventory to add/subtract';
|
||||
$lang['items_current_quantity']='Current Quantity';
|
||||
$lang['items_quantity_required']='Quantity is a required field. Please Close ( X ) to cancel';
|
||||
$lang['items_do_nothing'] = 'Do Nothing';
|
||||
$lang['items_change_all_to_serialized'] = 'Change All To Serialized';
|
||||
$lang['items_change_all_to_unserialized'] = 'Change All To Unserialized';
|
||||
@@ -78,4 +78,9 @@ $lang['items_manually_editing_of_quantity'] = 'Manual Edit of Quantity';
|
||||
$lang['items_inventory'] = 'Inventory';
|
||||
$lang['items_location'] = 'Location';
|
||||
$lang['items_is_deleted'] = 'Deleted';// Parq 131215
|
||||
$lang['items_stock_type_sale'] = 'Sale stock';
|
||||
$lang['items_stock_type_warehouse'] = 'Warehouse stock';
|
||||
$lang['items_stock_type'] = 'Stock type';
|
||||
$lang['items_unit_quantity'] = 'Unit quantity';
|
||||
$lang['items_related_number'] = 'Related item number';
|
||||
?>
|
||||
|
||||
@@ -1,26 +1,35 @@
|
||||
<?php
|
||||
$lang['recvs_register'] = 'Items Receiving';
|
||||
$lang['recvs_mode'] = 'Receiving Mode';
|
||||
$lang['recvs_receiving'] = 'Receive';
|
||||
$lang['recvs_return'] = 'Return';
|
||||
$lang['recvs_total'] = 'Total';
|
||||
$lang['recvs_cost'] = 'Cost';
|
||||
$lang['recvs_quantity'] = 'Qty.';
|
||||
$lang['recvs_discount'] = 'Disc %';
|
||||
$lang['recvs_edit'] = 'Edit';
|
||||
$lang['recvs_register']='Items Receiving';
|
||||
$lang['recvs_mode']='Receiving Mode';
|
||||
$lang['recvs_receiving']='Receive';
|
||||
$lang['recvs_return']='Return';
|
||||
$lang['recvs_total']='Total';
|
||||
$lang['recvs_cost']='Cost';
|
||||
$lang['recvs_quantity']='Qty.';
|
||||
$lang['recvs_discount']='Disc %';
|
||||
$lang['recvs_edit']='Edit';
|
||||
$lang['recvs_new_supplier'] = 'New Supplier';
|
||||
$lang['recvs_supplier'] = 'Supplier';
|
||||
$lang['recvs_select_supplier'] = 'Select Supplier (Optional)';
|
||||
$lang['recvs_start_typing_supplier_name'] = 'Start Typing supplier\'s name...';
|
||||
$lang['recvs_unable_to_add_item'] = 'Unable to add item to receiving';
|
||||
$lang['recvs_error_editing_item'] = 'Error editing item';
|
||||
$lang['recvs_receipt'] = 'Receivings Receipt';
|
||||
$lang['recvs_complete_receiving'] = 'Finish';
|
||||
$lang['recvs_select_supplier']='Select Supplier (Optional)';
|
||||
$lang['recvs_start_typing_supplier_name']='Start Typing supplier\'s name...';
|
||||
$lang['recvs_unable_to_add_item']='Unable to add item to receiving';
|
||||
$lang['recvs_error_editing_item']='Error editing item';
|
||||
$lang['recvs_receipt']='Receivings Receipt';
|
||||
$lang['recvs_complete_receiving']='Finish';
|
||||
$lang['recvs_confirm_finish_receiving'] = 'Are you sure you want to submit this receiving? This cannot be undone.';
|
||||
$lang['recvs_confirm_cancel_receiving'] = 'Are you sure you want to clear this receiving? All items will cleared.';
|
||||
$lang['recvs_find_or_scan_item'] = 'Find/Scan Item';
|
||||
$lang['recvs_find_or_scan_item_or_receipt'] = 'Find/Scan Item OR Receipt';
|
||||
$lang['recvs_id'] = 'Receiving ID';
|
||||
$lang['recvs_find_or_scan_item']='Find/Scan Item';
|
||||
$lang['recvs_find_or_scan_item_or_receipt']='Find/Scan Item OR Receipt';
|
||||
$lang['recvs_id']='Receiving ID';
|
||||
$lang['recvs_item_name'] = 'Item Name';
|
||||
$lang['receivings_transaction_failed'] = 'Receivings Transactions Failed';
|
||||
$lang['recvs_requisition']='Requisition';
|
||||
$lang['reqs_quantity'] ='Qty.';
|
||||
$lang['reqs_related_item']='Related item';
|
||||
$lang['reqs_unit_quantity']='Unit qty.';
|
||||
$lang['reqs_unit_quantity_total']='Total qty.';
|
||||
$lang['reqs_related_item_quantity']='Related item qty.';
|
||||
$lang['reqs_receipt']='Requisition Receipt';
|
||||
$lang['reqs_transaction_failed'] = 'Requisition Transactions Failed';
|
||||
$lang['reqs_unable_to_add_item']='Unable to add item to requisition';
|
||||
?>
|
||||
|
||||
@@ -43,8 +43,8 @@ $lang['reports_all_time'] = 'All Time';
|
||||
$lang['reports_detailed_sales_report'] = 'Detailed Sales Report';
|
||||
$lang['reports_comments'] = 'Comments';
|
||||
$lang['reports_discount'] = 'Discount';
|
||||
$lang['reports_sales']= 'Sale';
|
||||
$lang['reports_payment_type'] = 'Payment Type';
|
||||
$lang['reports_sales'] = 'Sales';
|
||||
$lang['reports_categories'] = 'Categories';
|
||||
$lang['reports_customers'] = 'Customers';
|
||||
$lang['reports_suppliers'] = 'Suppliers';
|
||||
@@ -84,7 +84,20 @@ $lang['reports_supplied_by'] = 'Supplied by';
|
||||
$lang['reports_items_received'] = 'Items Received';
|
||||
$lang['reports_detailed_receivings_report'] = 'Detailed Receivings Report';
|
||||
$lang['reports_sale_type'] = 'Sale Type';
|
||||
$lang['reports_receiving_type'] = 'Receiving Type';
|
||||
$lang['reports_all'] = 'All';
|
||||
$lang['reports_returns'] = 'Returns';
|
||||
$lang['reports_discount'] = 'Discounts';
|
||||
$lang['reports_sales_retail'] = 'Sales retail';
|
||||
$lang['reports_sales_wholesale'] = 'Sales wholesale';
|
||||
$lang['reports_requisition'] = 'Requisition';
|
||||
$lang['reports_receiving_id'] = 'Receiving ID';
|
||||
$lang['reports_requisition_id'] = 'Requisition ID';
|
||||
$lang['reports_requisition_by'] = 'Requisition by';
|
||||
$lang['reports_requisition_item'] = 'Name';
|
||||
$lang['reports_requisition_item_quantity'] = 'Requisition qty.';
|
||||
$lang['reports_requisition_related_item'] = 'Related item';
|
||||
$lang['reports_requisition_related_item_unit_quantity'] = 'Unit qty.';
|
||||
$lang['reports_requisition_related_item_total_quantity'] = 'Total qty.';
|
||||
$lang['reports_detailed_requisition_report'] = 'Detailed Requisitions Report';
|
||||
?>
|
||||
|
||||
@@ -1,42 +1,42 @@
|
||||
<?php
|
||||
$lang['sales_giftcard_number'] = 'Gift Card Number';
|
||||
$lang['sales_giftcard'] = 'Gift Card';
|
||||
$lang['sales_register'] = 'Sales Register';
|
||||
$lang['sales_mode'] = 'Register Mode';
|
||||
$lang['sales_giftcard_number']='Gift Card Number';
|
||||
$lang['sales_giftcard']='Gift Card';
|
||||
$lang['sales_register']='Sales Register';
|
||||
$lang['sales_mode']='Register Mode';
|
||||
$lang['sales_new_item'] = 'New Item';
|
||||
$lang['sales_item_name'] = 'Item Name';
|
||||
$lang['sales_item_number'] = 'Item #';
|
||||
$lang['sales_new_customer'] = 'New Customer';
|
||||
$lang['sales_customer'] = 'Customer';
|
||||
$lang['sales_no_items_in_cart'] = 'There are no items in the cart';
|
||||
$lang['sales_total'] = 'Total';
|
||||
$lang['sales_tax_percent'] = 'Tax %';
|
||||
$lang['sales_price'] = 'Price';
|
||||
$lang['sales_quantity'] = 'Qty.';
|
||||
$lang['sales_discount'] = 'Disc %';
|
||||
$lang['sales_edit'] = 'Edit';
|
||||
$lang['sales_payment'] = 'Payment Type';
|
||||
$lang['sales_edit_item'] = 'Edit Item';
|
||||
$lang['sales_find_or_scan_item'] = 'Find/Scan Item';
|
||||
$lang['sales_find_or_scan_item_or_receipt'] = 'Find/Scan Item OR Receipt';
|
||||
$lang['sales_select_customer'] = 'Select Customer (Optional)';
|
||||
$lang['sales_start_typing_item_name'] = 'Start Typing item\'s name or scan barcode...';
|
||||
$lang['sales_start_typing_customer_name'] = 'Start Typing customer\'s name...';
|
||||
$lang['sales_sub_total'] = 'Sub Total';
|
||||
$lang['sales_tax'] = 'Tax';
|
||||
$lang['sales_comment'] = 'Comment';
|
||||
$lang['sales_unable_to_add_item'] = 'Unable to add item to sale';
|
||||
$lang['sales_sale_for_customer'] = 'Customer:';
|
||||
$lang['sales_remove_customer'] = 'Remove Customer';
|
||||
$lang['sales_error_editing_item'] = 'Error editing item';
|
||||
$lang['sales_complete_sale'] = 'Complete Sale';
|
||||
$lang['sales_cancel_sale'] = 'Cancel Sale';
|
||||
$lang['sales_add_payment'] = 'Add Payment';
|
||||
$lang['sales_receipt'] = 'Sales Receipt';
|
||||
$lang['sales_receipt_number']='POS #';
|
||||
$lang['sales_id'] = 'Sale ID';
|
||||
$lang['sales_sale'] = 'Sale';
|
||||
$lang['sales_return'] = 'Return';
|
||||
$lang['sales_no_items_in_cart']='There are no items in the cart';
|
||||
$lang['sales_total']='Total';
|
||||
$lang['sales_tax_percent']='Tax %';
|
||||
$lang['sales_price']='Price';
|
||||
$lang['sales_quantity']='Qty.';
|
||||
$lang['sales_discount']='Disc %';
|
||||
$lang['sales_edit']='Edit';
|
||||
$lang['sales_payment']='Payment Type';
|
||||
$lang['sales_edit_item']='Edit Item';
|
||||
$lang['sales_find_or_scan_item']='Find/Scan Item';
|
||||
$lang['sales_find_or_scan_item_or_receipt']='Find/Scan Item OR Receipt';
|
||||
$lang['sales_select_customer']='Select Customer (Optional)';
|
||||
$lang['sales_start_typing_item_name']='Start Typing item\'s name or scan barcode...';
|
||||
$lang['sales_start_typing_customer_name']='Start Typing customer\'s name...';
|
||||
$lang['sales_sub_total']='Sub Total';
|
||||
$lang['sales_tax']='Tax';
|
||||
$lang['sales_comment']='Comment';
|
||||
$lang['sales_unable_to_add_item']='Unable to add item to sale';
|
||||
$lang['sales_sale_for_customer']='Customer:';
|
||||
$lang['sales_remove_customer']='Remove Customer';
|
||||
$lang['sales_error_editing_item']='Error editing item';
|
||||
$lang['sales_complete_sale']='Complete Sale';
|
||||
$lang['sales_cancel_sale']='Cancel Sale';
|
||||
$lang['sales_add_payment']='Add Payment';
|
||||
$lang['sales_receipt']='Sales Receipt';
|
||||
$lang['sales_id']='Sale ID';
|
||||
$lang['sales_sale_retail']='Sale retail';
|
||||
$lang['sales_wholesale']='Sale wholesale';
|
||||
$lang['sales_return']='Return';
|
||||
$lang['sales_confirm_finish_sale'] = 'Are you sure you want to submit this sale? This cannot be undone.';
|
||||
$lang['sales_confirm_cancel_sale'] = 'Are you sure you want to clear this sale? All items will cleared.';
|
||||
$lang['sales_cash'] = 'Cash';
|
||||
@@ -71,6 +71,7 @@ $lang['sales_confirm_suspend_sale'] = 'Are you sure you want to suspend this sal
|
||||
$lang['sales_suspended_sales'] = 'Suspended Sales';
|
||||
$lang['sales_suspended_sale_id'] = 'ID';
|
||||
$lang['sales_date'] = 'Date';
|
||||
$lang['sales_customer'] = 'Customer';
|
||||
$lang['sales_comments'] = 'Comments';
|
||||
$lang['sales_unsuspend_and_delete'] = '';
|
||||
$lang['sales_unsuspend'] = 'Unsuspend';
|
||||
|
||||
82
application/language/th/common_lang.php
Normal file
82
application/language/th/common_lang.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
$lang['common_common']='ธรรมดา';
|
||||
$lang['common_submit']='ยอมรับ';
|
||||
$lang['common_or']='หรือ';
|
||||
$lang['common_powered_by']='สนับสนุนโดย';
|
||||
$lang['common_welcome']='ยินดีต้อนรับ';
|
||||
$lang['common_logout']='ลงชื่อออก';
|
||||
$lang['common_list_of']='รายชื่อ';
|
||||
$lang['common_first_name']='ชื่อ';
|
||||
$lang['common_last_name']='นามสกุล';
|
||||
$lang['common_email']='E-Mail';
|
||||
$lang['common_phone_number']='โทรศัพท์';
|
||||
$lang['common_address_1']='ที่อยู่ที่ 1';
|
||||
$lang['common_address_2']='ที่อยู่ที่ 2';
|
||||
$lang['common_city']='เมือง';
|
||||
$lang['common_state']='ประเทศ';
|
||||
$lang['common_zip']='Zip';
|
||||
$lang['common_country']='ประเทศ';
|
||||
$lang['common_comments']='หมายเหตุ';
|
||||
$lang['common_edit']='แก้ไข';
|
||||
$lang['common_search']='ค้นหา';
|
||||
$lang['common_delete']='ลบ';
|
||||
$lang['common_remove']='ลบ';
|
||||
$lang['common_view_recent_sales']='สำรวจการขายเมื่อเร็วๆนี้';
|
||||
$lang['common_you_are_using_ospos']='คุณกำลังใช้ Point of Sales รุ่น';
|
||||
$lang['common_please_visit_my']='เยี่ยมชมที่';
|
||||
$lang['common_website']='website';
|
||||
$lang['common_fields_required_message']='ช่องสีแดงต้องกรอก';
|
||||
$lang['common_learn_about_project']='to learn the lastest information about the project';
|
||||
$lang['common_searched_for']='ค้นหาสำหรับ';
|
||||
$lang['common_first_name_required']='ชื่อต้องกรอก';
|
||||
$lang['common_last_name_required']='นามสกุลต้องกรอก';
|
||||
$lang['common_email_invalid_format']='e-mail address ไม่เหมาะสม';
|
||||
$lang['common_confirm_search']='คุณเลือกมากกว่าหนึ่งแถว, สิ่งที่คุณเลือกจะถูกยกเลิกหลังการค้นหา. แน่ใจหรือไม่ที่จะค้นหา?';
|
||||
$lang['common_no_persons_to_display']='ไม่พบข้อมูลตัวบุคคล';
|
||||
$lang['common_return_policy']='กฏการคืน';
|
||||
$lang['common_price']='ราคา';
|
||||
$lang['common_welcome_message']= 'ยินดีต้อนรับเข้าสู่โปรแกรมขายหน้าร้านขั้นเทบ!';
|
||||
$lang['common_inv']='ยอด';
|
||||
$lang['common_det']='สรุป';
|
||||
?>
|
||||
<?php
|
||||
$lang['common_common']='ธรรมดา';
|
||||
$lang['common_submit']='ยอมรับ';
|
||||
$lang['common_or']='หรือ';
|
||||
$lang['common_powered_by']='สนับสนุนโดย';
|
||||
$lang['common_welcome']='ยินดีต้อนรับ';
|
||||
$lang['common_logout']='ลงชื่อออก';
|
||||
$lang['common_list_of']='รายชื่อ';
|
||||
$lang['common_first_name']='ชื่อ';
|
||||
$lang['common_last_name']='นามสกุล';
|
||||
$lang['common_email']='E-Mail';
|
||||
$lang['common_phone_number']='โทรศัพท์';
|
||||
$lang['common_address_1']='ที่อยู่ที่ 1';
|
||||
$lang['common_address_2']='ที่อยู่ที่ 2';
|
||||
$lang['common_city']='เมือง';
|
||||
$lang['common_state']='ประเทศ';
|
||||
$lang['common_zip']='Zip';
|
||||
$lang['common_country']='ประเทศ';
|
||||
$lang['common_comments']='หมายเหตุ';
|
||||
$lang['common_edit']='แก้ไข';
|
||||
$lang['common_search']='ค้นหา';
|
||||
$lang['common_delete']='ลบ';
|
||||
$lang['common_remove']='ลบ';
|
||||
$lang['common_view_recent_sales']='สำรวจการขายเมื่อเร็วๆนี้';
|
||||
$lang['common_you_are_using_ospos']='คุณกำลังใช้ Point of Sales รุ่น';
|
||||
$lang['common_please_visit_my']='เยี่ยมชมที่';
|
||||
$lang['common_website']='website';
|
||||
$lang['common_fields_required_message']='ช่องสีแดงต้องกรอก';
|
||||
$lang['common_learn_about_project']='to learn the lastest information about the project';
|
||||
$lang['common_searched_for']='ค้นหาสำหรับ';
|
||||
$lang['common_first_name_required']='ชื่อต้องกรอก';
|
||||
$lang['common_last_name_required']='นามสกุลต้องกรอก';
|
||||
$lang['common_email_invalid_format']='e-mail address ไม่เหมาะสม';
|
||||
$lang['common_confirm_search']='คุณเลือกมากกว่าหนึ่งแถว, สิ่งที่คุณเลือกจะถูกยกเลิกหลังการค้นหา. แน่ใจหรือไม่ที่จะค้นหา?';
|
||||
$lang['common_no_persons_to_display']='ไม่พบข้อมูลตัวบุคคล';
|
||||
$lang['common_return_policy']='กฏการคืน';
|
||||
$lang['common_price']='ราคา';
|
||||
$lang['common_welcome_message']= 'ยินดีต้อนรับเข้าสู่โปรแกรมขายหน้าร้านขั้นเทบ!';
|
||||
$lang['common_inv']='ยอด';
|
||||
$lang['common_det']='สรุป';
|
||||
?>
|
||||
72
application/language/th/config_lang.php
Normal file
72
application/language/th/config_lang.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
$lang['config_info']='องค์ประกอบร้านค้า';
|
||||
$lang['config_company']='ชื่อร้านค้า';
|
||||
$lang['config_address']='ที่อยู่';
|
||||
$lang['config_phone']='เบอร์โทรศัพท์';
|
||||
$lang['config_website']='เว็บไซต์';
|
||||
$lang['config_fax']='แฟ็ก';
|
||||
$lang['config_default_tax_rate']='อัตตราภาษีเริ่มต้น %';
|
||||
$lang['config_default_tax_rate_1']='อัตตราภาษี 1';
|
||||
$lang['config_default_tax_rate_2']='อัตตราภาษี 2';
|
||||
$lang['config_company_required']='ชื่อร้านค้าต้องกรอก';
|
||||
$lang['config_address_required']='ที่อยู่ต้องกรอก';
|
||||
$lang['config_phone_required']='เบอร์โทรต้องกรอก';
|
||||
$lang['config_default_tax_rate_required']='อัตตราภาษีเริ่มต้นต้องกรอก';
|
||||
$lang['config_default_tax_rate_number']='อัตตราภาษีเริ่มต้นต้องเป็นตัวเลข';
|
||||
$lang['config_company_website_url']='เว็บไซต์ร้านค้าไม่ถูกต้อง';
|
||||
$lang['config_saved_successfully']='องค์ประกอบร้านค้าบันทึกเรียบร้อย';
|
||||
$lang['config_saved_unsuccessfully']='องค์ประกอบร้านค้าบันทึกล้มเหลว';
|
||||
$lang['config_return_policy_required']='กฎการคืนของต้องกรอก';
|
||||
$lang['config_print_after_sale']='ปริ๊นบิลหลังการขาย';
|
||||
$lang['config_language'] = 'ภาษา';
|
||||
$lang['config_timezone'] = 'Timezone';
|
||||
$lang['config_currency_symbol'] = 'ลัญลักษณ์ค่าเงิน';
|
||||
$lang['config_currency_side'] = 'ด้านขวา'; //GARRISON ADDED 4/20/2013
|
||||
$lang['config_custom1'] = 'พื้นที่เพิ่มเติม 1'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom2'] = 'พื้นที่เพิ่มเติม 2'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom3'] = 'พื้นที่เพิ่มเติม 3'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom4'] = 'พื้นที่เพิ่มเติม 4'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom5'] = 'พื้นที่เพิ่มเติม 5'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom6'] = 'พื้นที่เพิ่มเติม 6'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom7'] = 'พื้นที่เพิ่มเติม 7'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom8'] = 'พื้นที่เพิ่มเติม 8'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom9'] = 'พื้นที่เพิ่มเติม 9'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom10'] = 'พื้นที่เพิ่มเติม 10'; //GARRISON ADDED 4/21/2013
|
||||
|
||||
?>
|
||||
<?php
|
||||
$lang['config_info']='องค์ประกอบร้านค้า';
|
||||
$lang['config_company']='ชื่อร้านค้า';
|
||||
$lang['config_address']='ที่อยู่';
|
||||
$lang['config_phone']='เบอร์โทรศัพท์';
|
||||
$lang['config_website']='เว็บไซต์';
|
||||
$lang['config_fax']='แฟ็ก';
|
||||
$lang['config_default_tax_rate']='อัตตราภาษีเริ่มต้น %';
|
||||
$lang['config_default_tax_rate_1']='อัตตราภาษี 1';
|
||||
$lang['config_default_tax_rate_2']='อัตตราภาษี 2';
|
||||
$lang['config_company_required']='ชื่อร้านค้าต้องกรอก';
|
||||
$lang['config_address_required']='ที่อยู่ต้องกรอก';
|
||||
$lang['config_phone_required']='เบอร์โทรต้องกรอก';
|
||||
$lang['config_default_tax_rate_required']='อัตตราภาษีเริ่มต้นต้องกรอก';
|
||||
$lang['config_default_tax_rate_number']='อัตตราภาษีเริ่มต้นต้องเป็นตัวเลข';
|
||||
$lang['config_company_website_url']='เว็บไซต์ร้านค้าไม่ถูกต้อง';
|
||||
$lang['config_saved_successfully']='องค์ประกอบร้านค้าบันทึกเรียบร้อย';
|
||||
$lang['config_saved_unsuccessfully']='องค์ประกอบร้านค้าบันทึกล้มเหลว';
|
||||
$lang['config_return_policy_required']='กฎการคืนของต้องกรอก';
|
||||
$lang['config_print_after_sale']='ปริ๊นบิลหลังการขาย';
|
||||
$lang['config_language'] = 'ภาษา';
|
||||
$lang['config_timezone'] = 'Timezone';
|
||||
$lang['config_currency_symbol'] = 'ลัญลักษณ์ค่าเงิน';
|
||||
$lang['config_currency_side'] = 'ด้านขวา'; //GARRISON ADDED 4/20/2013
|
||||
$lang['config_custom1'] = 'พื้นที่เพิ่มเติม 1'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom2'] = 'พื้นที่เพิ่มเติม 2'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom3'] = 'พื้นที่เพิ่มเติม 3'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom4'] = 'พื้นที่เพิ่มเติม 4'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom5'] = 'พื้นที่เพิ่มเติม 5'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom6'] = 'พื้นที่เพิ่มเติม 6'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom7'] = 'พื้นที่เพิ่มเติม 7'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom8'] = 'พื้นที่เพิ่มเติม 8'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom9'] = 'พื้นที่เพิ่มเติม 9'; //GARRISON ADDED 4/21/2013
|
||||
$lang['config_custom10'] = 'พื้นที่เพิ่มเติม 10'; //GARRISON ADDED 4/21/2013
|
||||
|
||||
?>
|
||||
32
application/language/th/customers_lang.php
Normal file
32
application/language/th/customers_lang.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
$lang['customers_new']='ลูกค้าใหม่';
|
||||
$lang['customers_customer']='ลูกค้า';
|
||||
$lang['customers_update']='แก้ไขข้อมูลลูกค้า';
|
||||
$lang['customers_confirm_delete']='ยืนยันลบข้อมูลลูกค้า?';
|
||||
$lang['customers_none_selected']='คุณยังไม่ได้ทำการเลือกลูกค้า';
|
||||
$lang['customers_error_adding_updating'] = 'แก้ไขข้อมูลลูกค้าผิดพลาด';
|
||||
$lang['customers_successful_adding']='คุณได้ทำการเพิ่มลูกค้าเรียบร้อยแล้ว';
|
||||
$lang['customers_successful_updating']='คุณได้ทำการแก้ไขข้อมูลลูกค้าเรียบร้อยแล้ว';
|
||||
$lang['customers_successful_deleted']='คุณได้ทำการลบข้อมูลเรียบร้อยแล้ว';
|
||||
$lang['customers_one_or_multiple']='ลูกค้า';
|
||||
$lang['customers_cannot_be_deleted']='ไม่สามารลบลูกค้าที่ถูกเลือก, ลูกค้าที่ถูกเลือกถูขายไปแล้ว.';
|
||||
$lang['customers_basic_information']='ข้อมูลลูกค้า';
|
||||
$lang['customers_account_number']='บัญชี #';
|
||||
$lang['customers_taxable']='ต้องเสียภาษี';
|
||||
?>
|
||||
<?php
|
||||
$lang['customers_new']='ลูกค้าใหม่';
|
||||
$lang['customers_customer']='ลูกค้า';
|
||||
$lang['customers_update']='แก้ไขข้อมูลลูกค้า';
|
||||
$lang['customers_confirm_delete']='ยืนยันลบข้อมูลลูกค้า?';
|
||||
$lang['customers_none_selected']='คุณยังไม่ได้ทำการเลือกลูกค้า';
|
||||
$lang['customers_error_adding_updating'] = 'แก้ไขข้อมูลลูกค้าผิดพลาด';
|
||||
$lang['customers_successful_adding']='คุณได้ทำการเพิ่มลูกค้าเรียบร้อยแล้ว';
|
||||
$lang['customers_successful_updating']='คุณได้ทำการแก้ไขข้อมูลลูกค้าเรียบร้อยแล้ว';
|
||||
$lang['customers_successful_deleted']='คุณได้ทำการลบข้อมูลเรียบร้อยแล้ว';
|
||||
$lang['customers_one_or_multiple']='ลูกค้า';
|
||||
$lang['customers_cannot_be_deleted']='ไม่สามารลบลูกค้าที่ถูกเลือก, ลูกค้าที่ถูกเลือกถูขายไปแล้ว.';
|
||||
$lang['customers_basic_information']='ข้อมูลลูกค้า';
|
||||
$lang['customers_account_number']='บัญชี #';
|
||||
$lang['customers_taxable']='ต้องเสียภาษี';
|
||||
?>
|
||||
54
application/language/th/employees_lang.php
Normal file
54
application/language/th/employees_lang.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
$lang['employees_employee']='Employee';
|
||||
$lang['employees_new']='New Employee';
|
||||
$lang['employees_update']='Update Employee';
|
||||
$lang['employees_confirm_delete']='Are you sure you want to delete the selected employees?';
|
||||
$lang['employees_none_selected']='You have not selected any employees to delete';
|
||||
$lang['employees_error_adding_updating'] = 'Error adding/updating employee';
|
||||
$lang['employees_successful_adding']='You have successfully added employee';
|
||||
$lang['employees_successful_updating']='You have successfully updated employee';
|
||||
$lang['employees_successful_deleted']='You have successfully deleted';
|
||||
$lang['employees_one_or_multiple']='employee(s)';
|
||||
$lang['employees_cannot_be_deleted']='Could not deleted selected employees, one or more of the employees has processed sales or you are trying to delete yourself :)';
|
||||
$lang['employees_username']='Username';
|
||||
$lang['employees_password']='Password';
|
||||
$lang['employees_repeat_password']='Password Again';
|
||||
$lang['employees_username_required']='Username is a required field';
|
||||
$lang['employees_username_minlength']='The username must be at least 5 characters';
|
||||
$lang['employees_password_required']='Password is required';
|
||||
$lang['employees_password_minlength']='Passwords must be at least 8 characters';
|
||||
$lang['employees_password_must_match']='Passwords do not match';
|
||||
$lang['employees_basic_information']='Employee Basic Information';
|
||||
$lang['employees_login_info']='Employee Login Info';
|
||||
$lang['employees_permission_info']='Employee Permissions and Access';
|
||||
$lang['employees_permission_desc']='Check the boxes below to grant access to modules';
|
||||
$lang['employees_error_updating_demo_admin'] = 'You can not change the demo admin user';
|
||||
$lang['employees_error_deleting_demo_admin'] = 'You can not delete the demo admin user';
|
||||
?>
|
||||
<?php
|
||||
$lang['employees_employee']='Employee';
|
||||
$lang['employees_new']='New Employee';
|
||||
$lang['employees_update']='Update Employee';
|
||||
$lang['employees_confirm_delete']='Are you sure you want to delete the selected employees?';
|
||||
$lang['employees_none_selected']='You have not selected any employees to delete';
|
||||
$lang['employees_error_adding_updating'] = 'Error adding/updating employee';
|
||||
$lang['employees_successful_adding']='You have successfully added employee';
|
||||
$lang['employees_successful_updating']='You have successfully updated employee';
|
||||
$lang['employees_successful_deleted']='You have successfully deleted';
|
||||
$lang['employees_one_or_multiple']='employee(s)';
|
||||
$lang['employees_cannot_be_deleted']='Could not deleted selected employees, one or more of the employees has processed sales or you are trying to delete yourself :)';
|
||||
$lang['employees_username']='Username';
|
||||
$lang['employees_password']='Password';
|
||||
$lang['employees_repeat_password']='Password Again';
|
||||
$lang['employees_username_required']='Username is a required field';
|
||||
$lang['employees_username_minlength']='The username must be at least 5 characters';
|
||||
$lang['employees_password_required']='Password is required';
|
||||
$lang['employees_password_minlength']='Passwords must be at least 8 characters';
|
||||
$lang['employees_password_must_match']='Passwords do not match';
|
||||
$lang['employees_basic_information']='Employee Basic Information';
|
||||
$lang['employees_login_info']='Employee Login Info';
|
||||
$lang['employees_permission_info']='Employee Permissions and Access';
|
||||
$lang['employees_permission_desc']='Check the boxes below to grant access to modules';
|
||||
$lang['employees_error_updating_demo_admin'] = 'You can not change the demo admin user';
|
||||
$lang['employees_error_deleting_demo_admin'] = 'You can not delete the demo admin user';
|
||||
?>
|
||||
8
application/language/th/error_lang.php
Normal file
8
application/language/th/error_lang.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$lang['error_no_permission_module']='You do not have permission to access the module named';
|
||||
$lang['error_unknown']='unknown';
|
||||
?>
|
||||
<?php
|
||||
$lang['error_no_permission_module']='You do not have permission to access the module named';
|
||||
$lang['error_unknown']='unknown';
|
||||
?>
|
||||
140
application/language/th/giftcards_lang.php
Normal file
140
application/language/th/giftcards_lang.php
Normal file
@@ -0,0 +1,140 @@
|
||||
<?php
|
||||
$lang['giftcards_giftcard_number']='Giftcard Number';
|
||||
$lang['giftcards_card_value']='Value';
|
||||
$lang['giftcards_basic_information']='Giftcard Information';
|
||||
$lang['giftcards_number_required']='Giftcard Number is a required field';
|
||||
$lang['giftcards_value_required']='Giftcard Value is a required field';
|
||||
$lang['giftcards_number']='Giftcard Number must be a number';
|
||||
$lang['giftcards_value']='Giftcard Value must be a number';
|
||||
$lang['giftcards_person_id']='Customer';
|
||||
|
||||
$lang['giftcards_retrive_giftcard_info']='Retrieve Giftcard Info';
|
||||
$lang['giftcards_description']='Description';
|
||||
$lang['giftcards_amazon']='Amazon';
|
||||
$lang['giftcards_upc_database']='UPC Database';
|
||||
$lang['giftcards_cannot_find_giftcard']='Cannot find any information about giftcard';
|
||||
$lang['giftcards_info_provided_by']='Info provided by';
|
||||
$lang['giftcards_number_information']='Giftcard Number';
|
||||
$lang['giftcards_new']='New Giftcard';
|
||||
$lang['giftcards_update']='Update Giftcard';
|
||||
$lang['giftcards_giftcard']='Giftcard';
|
||||
$lang['giftcards_edit_multiple_giftcards']='Editing Multiple Giftcards';
|
||||
$lang['giftcards_category']='Category';
|
||||
$lang['giftcards_cost_price']='Cost Price';
|
||||
$lang['giftcards_unit_price']='Unit Price';
|
||||
$lang['giftcards_tax_1']='Tax 1';
|
||||
$lang['giftcards_tax_2']='Tax 2';
|
||||
$lang['giftcards_sales_tax_1'] = 'Sales Tax';
|
||||
$lang['giftcards_sales_tax_2'] = 'Sales Tax 2';
|
||||
$lang['giftcards_tax_percent']='Tax Percent';
|
||||
$lang['giftcards_tax_percents']='Tax Percent(s)';
|
||||
$lang['giftcards_reorder_level']='Reorder Level';
|
||||
$lang['giftcards_quantity']='Quantity';
|
||||
$lang['giftcards_no_giftcards_to_display']='No Giftcards to display';
|
||||
$lang['giftcards_bulk_edit']='Bulk Edit';
|
||||
$lang['giftcards_confirm_delete']='Are you sure you want to delete the selected giftcards?';
|
||||
$lang['giftcards_none_selected']='You have not selected any giftcards to edit';
|
||||
$lang['giftcards_confirm_bulk_edit']='Are you sure you want to edit all the giftcards selected?';
|
||||
$lang['giftcards_successful_bulk_edit']='You have successfully updated the selected giftcards';
|
||||
$lang['giftcards_error_updating_multiple']='Error updating giftcards';
|
||||
$lang['giftcards_edit_fields_you_want_to_update']='Edit the fields you want to edit for ALL selected giftcards';
|
||||
$lang['giftcards_error_adding_updating'] = 'Error adding/updating giftcard';
|
||||
$lang['giftcards_successful_adding']='You have successfully added giftcard';
|
||||
$lang['giftcards_successful_updating']='You have successfully updated giftcard';
|
||||
$lang['giftcards_successful_deleted']='You have successfully deleted';
|
||||
$lang['giftcards_one_or_multiple']='giftcard(s)';
|
||||
$lang['giftcards_cannot_be_deleted']='Could not deleted selected giftcards, one or more of the selected giftcards has sales.';
|
||||
$lang['giftcards_none'] = 'None';
|
||||
$lang['giftcards_supplier'] = 'Supplier';
|
||||
$lang['giftcards_generate_barcodes'] = 'Generate Barcodes';
|
||||
$lang['giftcards_must_select_giftcard_for_barcode'] = 'You must select at least 1 giftcard to generate barcodes';
|
||||
$lang['giftcards_excel_import_failed'] = 'Excel import failed';
|
||||
$lang['giftcards_allow_alt_desciption'] = 'Allow Alt Description';
|
||||
$lang['giftcards_is_serialized'] = 'Giftcard has Serial Number';
|
||||
$lang['giftcards_low_inventory_giftcards'] = 'Low Inventory Giftcards';
|
||||
$lang['giftcards_serialized_giftcards'] = 'Serialized Giftcards';
|
||||
$lang['giftcards_no_description_giftcards'] = 'No Description Giftcards';
|
||||
$lang['giftcards_inventory_comments']='Comments';
|
||||
$lang['giftcards_count']='Update Inventory';
|
||||
$lang['giftcards_details_count']='Inventory Count Details';
|
||||
$lang['giftcards_add_minus']='Inventory to add/subtract';
|
||||
$lang['giftcards_current_quantity']='Current Quantity';
|
||||
$lang['giftcards_quantity_required']='Quantity is a required field. Please Close ( X ) to cancel';
|
||||
$lang['giftcards_do_nothing'] = 'Do Nothing';
|
||||
$lang['giftcards_change_all_to_serialized'] = 'Change All To Serialized';
|
||||
$lang['giftcards_change_all_to_unserialized'] = 'Change All To Unserialized';
|
||||
$lang['giftcards_change_all_to_allow_alt_desc'] = 'Allow Alt Desc For All';
|
||||
$lang['giftcards_change_all_to_not_allow_allow_desc'] = 'Not Allow Alt Desc For All';
|
||||
$lang['giftcards_use_inventory_menu'] = 'Use Inv. Menu';
|
||||
$lang['giftcards_manually_editing_of_quantity'] = 'Manual Edit of Quantity';
|
||||
?>
|
||||
<?php
|
||||
$lang['giftcards_giftcard_number']='Giftcard Number';
|
||||
$lang['giftcards_card_value']='Value';
|
||||
$lang['giftcards_basic_information']='Giftcard Information';
|
||||
$lang['giftcards_number_required']='Giftcard Number is a required field';
|
||||
$lang['giftcards_value_required']='Giftcard Value is a required field';
|
||||
$lang['giftcards_number']='Giftcard Number must be a number';
|
||||
$lang['giftcards_value']='Giftcard Value must be a number';
|
||||
$lang['giftcards_person_id']='Customer';
|
||||
|
||||
$lang['giftcards_retrive_giftcard_info']='Retrieve Giftcard Info';
|
||||
$lang['giftcards_description']='Description';
|
||||
$lang['giftcards_amazon']='Amazon';
|
||||
$lang['giftcards_upc_database']='UPC Database';
|
||||
$lang['giftcards_cannot_find_giftcard']='Cannot find any information about giftcard';
|
||||
$lang['giftcards_info_provided_by']='Info provided by';
|
||||
$lang['giftcards_number_information']='Giftcard Number';
|
||||
$lang['giftcards_new']='New Giftcard';
|
||||
$lang['giftcards_update']='Update Giftcard';
|
||||
$lang['giftcards_giftcard']='Giftcard';
|
||||
$lang['giftcards_edit_multiple_giftcards']='Editing Multiple Giftcards';
|
||||
$lang['giftcards_category']='Category';
|
||||
$lang['giftcards_cost_price']='Cost Price';
|
||||
$lang['giftcards_unit_price']='Unit Price';
|
||||
$lang['giftcards_tax_1']='Tax 1';
|
||||
$lang['giftcards_tax_2']='Tax 2';
|
||||
$lang['giftcards_sales_tax_1'] = 'Sales Tax';
|
||||
$lang['giftcards_sales_tax_2'] = 'Sales Tax 2';
|
||||
$lang['giftcards_tax_percent']='Tax Percent';
|
||||
$lang['giftcards_tax_percents']='Tax Percent(s)';
|
||||
$lang['giftcards_reorder_level']='Reorder Level';
|
||||
$lang['giftcards_quantity']='Quantity';
|
||||
$lang['giftcards_no_giftcards_to_display']='No Giftcards to display';
|
||||
$lang['giftcards_bulk_edit']='Bulk Edit';
|
||||
$lang['giftcards_confirm_delete']='Are you sure you want to delete the selected giftcards?';
|
||||
$lang['giftcards_none_selected']='You have not selected any giftcards to edit';
|
||||
$lang['giftcards_confirm_bulk_edit']='Are you sure you want to edit all the giftcards selected?';
|
||||
$lang['giftcards_successful_bulk_edit']='You have successfully updated the selected giftcards';
|
||||
$lang['giftcards_error_updating_multiple']='Error updating giftcards';
|
||||
$lang['giftcards_edit_fields_you_want_to_update']='Edit the fields you want to edit for ALL selected giftcards';
|
||||
$lang['giftcards_error_adding_updating'] = 'Error adding/updating giftcard';
|
||||
$lang['giftcards_successful_adding']='You have successfully added giftcard';
|
||||
$lang['giftcards_successful_updating']='You have successfully updated giftcard';
|
||||
$lang['giftcards_successful_deleted']='You have successfully deleted';
|
||||
$lang['giftcards_one_or_multiple']='giftcard(s)';
|
||||
$lang['giftcards_cannot_be_deleted']='Could not deleted selected giftcards, one or more of the selected giftcards has sales.';
|
||||
$lang['giftcards_none'] = 'None';
|
||||
$lang['giftcards_supplier'] = 'Supplier';
|
||||
$lang['giftcards_generate_barcodes'] = 'Generate Barcodes';
|
||||
$lang['giftcards_must_select_giftcard_for_barcode'] = 'You must select at least 1 giftcard to generate barcodes';
|
||||
$lang['giftcards_excel_import_failed'] = 'Excel import failed';
|
||||
$lang['giftcards_allow_alt_desciption'] = 'Allow Alt Description';
|
||||
$lang['giftcards_is_serialized'] = 'Giftcard has Serial Number';
|
||||
$lang['giftcards_low_inventory_giftcards'] = 'Low Inventory Giftcards';
|
||||
$lang['giftcards_serialized_giftcards'] = 'Serialized Giftcards';
|
||||
$lang['giftcards_no_description_giftcards'] = 'No Description Giftcards';
|
||||
$lang['giftcards_inventory_comments']='Comments';
|
||||
$lang['giftcards_count']='Update Inventory';
|
||||
$lang['giftcards_details_count']='Inventory Count Details';
|
||||
$lang['giftcards_add_minus']='Inventory to add/subtract';
|
||||
$lang['giftcards_current_quantity']='Current Quantity';
|
||||
$lang['giftcards_quantity_required']='Quantity is a required field. Please Close ( X ) to cancel';
|
||||
$lang['giftcards_do_nothing'] = 'Do Nothing';
|
||||
$lang['giftcards_change_all_to_serialized'] = 'Change All To Serialized';
|
||||
$lang['giftcards_change_all_to_unserialized'] = 'Change All To Unserialized';
|
||||
$lang['giftcards_change_all_to_allow_alt_desc'] = 'Allow Alt Desc For All';
|
||||
$lang['giftcards_change_all_to_not_allow_allow_desc'] = 'Not Allow Alt Desc For All';
|
||||
$lang['giftcards_use_inventory_menu'] = 'Use Inv. Menu';
|
||||
$lang['giftcards_manually_editing_of_quantity'] = 'Manual Edit of Quantity';
|
||||
?>
|
||||
20
application/language/th/index.html
Normal file
20
application/language/th/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
40
application/language/th/item_kits_lang.php
Normal file
40
application/language/th/item_kits_lang.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
$lang['item_kits_name'] = 'ชื่อสินค้าหมู่';
|
||||
$lang['item_kits_description'] = 'แนะนำสินค้าหมู่';
|
||||
$lang['item_kits_no_item_kits_to_display'] = 'ไม่มีสินค้าแสดง';
|
||||
$lang['item_kits_update'] = 'ปรับปรุงสินค้าหมู่';
|
||||
$lang['item_kits_new'] = 'สร้างสินค้าหมู่';
|
||||
$lang['item_kits_none_selected'] = "คุณยังไม่ใด้เลือกสินค้าหมู่";
|
||||
$lang['item_kits_info'] = 'ข้อมูลสินค้าหมู่';
|
||||
$lang['item_kits_successful_adding'] = 'เพิ่มสินค้าหมู่สำเร็จ';
|
||||
$lang['item_kits_successful_updating'] = 'ปรับปรุงสินค้าหมู่สำเร็จ';
|
||||
$lang['item_kits_error_adding_updating'] = 'เพิ่ม/ปรับปรุงสินค้าหมู่ล้มเหลว';
|
||||
$lang['item_kits_successful_deleted'] = 'ลบสำเร็จ';
|
||||
$lang['item_kits_confirm_delete'] = 'แน่ใจหรือไม่ที่จะลบสินค้าหมู่ที่ถูกเลือก?';
|
||||
$lang['item_kits_one_or_multiple'] = 'สินค้าหมู่';
|
||||
$lang['item_kits_cannot_be_deleted'] = 'ไม่สามารถลบได้';
|
||||
$lang['item_kits_add_item'] = 'เหิ่มสินคัา';
|
||||
$lang['item_kits_items'] = 'สินค้า';
|
||||
$lang['item_kits_item'] = 'สินค้า';
|
||||
$lang['item_kits_quantity'] = 'จำนวน';
|
||||
?>
|
||||
<?php
|
||||
$lang['item_kits_name'] = 'ชื่อสินค้าหมู่';
|
||||
$lang['item_kits_description'] = 'แนะนำสินค้าหมู่';
|
||||
$lang['item_kits_no_item_kits_to_display'] = 'ไม่มีสินค้าแสดง';
|
||||
$lang['item_kits_update'] = 'ปรับปรุงสินค้าหมู่';
|
||||
$lang['item_kits_new'] = 'สร้างสินค้าหมู่';
|
||||
$lang['item_kits_none_selected'] = "คุณยังไม่ใด้เลือกสินค้าหมู่";
|
||||
$lang['item_kits_info'] = 'ข้อมูลสินค้าหมู่';
|
||||
$lang['item_kits_successful_adding'] = 'เพิ่มสินค้าหมู่สำเร็จ';
|
||||
$lang['item_kits_successful_updating'] = 'ปรับปรุงสินค้าหมู่สำเร็จ';
|
||||
$lang['item_kits_error_adding_updating'] = 'เพิ่ม/ปรับปรุงสินค้าหมู่ล้มเหลว';
|
||||
$lang['item_kits_successful_deleted'] = 'ลบสำเร็จ';
|
||||
$lang['item_kits_confirm_delete'] = 'แน่ใจหรือไม่ที่จะลบสินค้าหมู่ที่ถูกเลือก?';
|
||||
$lang['item_kits_one_or_multiple'] = 'สินค้าหมู่';
|
||||
$lang['item_kits_cannot_be_deleted'] = 'ไม่สามารถลบได้';
|
||||
$lang['item_kits_add_item'] = 'เหิ่มสินคัา';
|
||||
$lang['item_kits_items'] = 'สินค้า';
|
||||
$lang['item_kits_item'] = 'สินค้า';
|
||||
$lang['item_kits_quantity'] = 'จำนวน';
|
||||
?>
|
||||
170
application/language/th/items_lang.php
Normal file
170
application/language/th/items_lang.php
Normal file
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
$lang['items_item_number']='โค๊ด';
|
||||
$lang['items_retrive_item_info']='รับข้อมูลสินค้า';
|
||||
$lang['items_description']='รายละเอียด';
|
||||
$lang['items_amazon']='Amazon';
|
||||
$lang['items_upc_database']='UPC ฐานข้อมูล';
|
||||
$lang['items_cannot_find_item']='ไม่พบข้อมูลของสินค้า';
|
||||
$lang['items_info_provided_by']='จัดเตรียมข้อมูลโดย';
|
||||
$lang['items_basic_information']='ข้อมูลสินค้ส';
|
||||
$lang['items_number_information']='หมายเลขสินค้า';
|
||||
$lang['items_new']='สินค้าใหม่';
|
||||
$lang['items_update']='ปรับแต่งสินค้า';
|
||||
$lang['items_item']='สินค้า';
|
||||
$lang['items_edit_multiple_items']='แก้ใขสินค้าต่างๆ';
|
||||
$lang['items_name']='ชื่อสินค้า';
|
||||
$lang['items_category']='หมวดหมู่';
|
||||
$lang['items_cost_price']='ราคาทุน';//GARRISON ADDED 4/21/2013
|
||||
$lang['items_unit_price']='ราคาขาย';//GARRISON ADDED 4/21/2013
|
||||
$lang['items_tax_1']='ภาษี 1';
|
||||
$lang['items_tax_2']='ภาษี 2';
|
||||
$lang['items_sales_tax_1'] = 'ถาษีขาย';
|
||||
$lang['items_sales_tax_2'] = 'ภาษีขาย 2';
|
||||
$lang['items_tax_percent']='ภาษี(%)';
|
||||
$lang['items_tax_percents']='ภาษี(%)';
|
||||
$lang['items_reorder_level']='ระดับการสั่งใหม่';
|
||||
$lang['items_quantity']='จำนวน';
|
||||
$lang['items_reorder_level']='ระดับการสั่งใหม่';
|
||||
$lang['items_no_items_to_display']='ไม่มีสินค้าแสดง';
|
||||
$lang['items_bulk_edit']='แก้ไขความจุ';
|
||||
$lang['items_confirm_delete']='แน่ใจหรือไม่ที่จะลบสินค้าที่ถูกเลือก?';
|
||||
$lang['items_none_selected']='กรุณาเลือสินค้าที่ต้องการแก้ไข';
|
||||
$lang['items_confirm_bulk_edit']='แน่ใจหรือไม่ที่จะแก้ใขสินค้าทั้งหมดที่คุณเลือก?';
|
||||
$lang['items_successful_bulk_edit']='ปรับแต่งสินค้าสำเร็จ';
|
||||
$lang['items_error_updating_multiple']='ปรับแต่งสินค้าล้มเหลว';
|
||||
$lang['items_edit_fields_you_want_to_update']='แก้ไขสินค้าทุกชนิดที่คุณเลือก';
|
||||
$lang['items_error_adding_updating'] = 'เพิ่ม/ปรับแต่ง สินค้าล้มเหลว';
|
||||
$lang['items_successful_adding']='เพิ่มสินค้าสำเร็จ';
|
||||
$lang['items_successful_updating']='ปรับแต่งสินค้าสำเร็จ';
|
||||
$lang['items_successful_deleted']='ลบสินค้าสำเร็จ';
|
||||
$lang['items_one_or_multiple']='สินค้า(s)';
|
||||
$lang['items_cannot_be_deleted']='ไมม่สามารถลบสินค้าที่เลือก, สินค้าที่เลือกถูกขายไปแล้ว.';
|
||||
$lang['items_name_required']='ชื่อสินค้าต้องกรอก';
|
||||
$lang['items_category_required']='หมวดหมู่สินค้าต้องกรอก';
|
||||
$lang['items_buy_price_required']='ราคาซื้อขายต้องกรอก'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_unit_price_required']='ราคาต่อหน่วยต้องกรอก'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_cost_price_required']='ราคาทุนต้องกรอก'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_tax_percent_required']='เปอร์เซ็นต์ต้องกรอก';
|
||||
$lang['items_quantity_required']='จำนวนต้องกรอก';
|
||||
$lang['items_reorder_level_required']='ระดับการสั่งไหม่ต้องกรอก';
|
||||
$lang['items_unit_price_number']='ราคาต่อหน่วยต้องเป็นตัวเลข';
|
||||
$lang['items_cost_price_number']='ราคาทุนต้องเป็นตัวเลข';
|
||||
$lang['items_quantity_number']='จำนวนต้องเป็นตัวเลข';
|
||||
$lang['items_reorder_level_number']='ระดับการสั่งใหม่ต้องเป็นตัวเลข';
|
||||
$lang['items_none'] = 'ว่างเปล่า';
|
||||
$lang['items_supplier'] = 'ผู้ผลิต';
|
||||
$lang['items_generate_barcodes'] = 'สร้างบาร์โค๊ด';
|
||||
$lang['items_must_select_item_for_barcode'] = 'คุต้องเลือกสินค้าอย่างน้อยหนึ่งอย่างเพื่อจะสร้างบาร์โค๊ด';
|
||||
$lang['items_excel_import_failed'] = 'นำเข้าข้อมูล Excel ล้มเหลว';
|
||||
$lang['items_allow_alt_desciption'] = 'Allow Alt Description';
|
||||
$lang['items_is_serialized'] = 'สินค้ามีซีเรียวนัมเบอร์';
|
||||
$lang['items_low_inventory_items'] = 'สินค้าคงเหลือน้อย';
|
||||
$lang['items_serialized_items'] = 'รหัสสินค้า';
|
||||
$lang['items_no_description_items'] = 'สินค้าที่ไม่มีคำอธิบายหรือวิธีการใช้';
|
||||
$lang['items_search_custom_items'] = 'Search Custom Fields';//GARRISON ADDED
|
||||
$lang['items_inventory_comments']='คำอธิบาย';
|
||||
$lang['items_count']='แก้ไขจำนวนสินค้าคงคลัง';
|
||||
$lang['items_details_count']='รายละเอียดจำนวนสินค้าคงคลัง';
|
||||
$lang['items_add_minus']='เพิ่ม/ลบ จำนวนสินค้าคงคลัง';
|
||||
$lang['items_current_quantity']='ปริมาณสินค้าคงคลัง';
|
||||
$lang['items_quantity_required']='จำนวนต้องกรอก. กรุณาปิดเพื่อยกเลิก';
|
||||
$lang['items_do_nothing'] = 'ไม่ต้องทำอะไร';
|
||||
$lang['items_change_all_to_serialized'] = 'เปลี่ยนแปลงรหัสสินค้าทั้งหมด';
|
||||
$lang['items_change_all_to_unserialized'] = 'ลบรหัสสินค้าทั้งหมด';
|
||||
$lang['items_change_all_to_allow_alt_desc'] = ' Allow Alt Desc For All';
|
||||
$lang['items_change_all_to_not_allow_allow_desc'] = 'Not Allow Alt Desc For All';
|
||||
$lang['items_use_inventory_menu'] = 'ใช้สินค้าคงเหลือเมนู';
|
||||
$lang['items_manually_editing_of_quantity'] = 'แก้ไขจำนวน';
|
||||
$lang['items_inventory'] = 'สินค้าคงเหลือ';
|
||||
$lang['items_location'] = 'ที่ตั้ง';
|
||||
$lang['items_unit_quantity'] = 'จำนวนหน่วย';
|
||||
$lang['items_related_number'] = 'สินค้าที่เกี่ยวข้อง';
|
||||
$lang['items_stock_type_sale'] = 'สินค้าหน้าร้าน';
|
||||
$lang['items_stock_type_warehouse'] = 'สินค้าหลังร้าน';
|
||||
$lang['items_stock_type'] = 'ชนิดของสินค้า';
|
||||
?>
|
||||
<?php
|
||||
$lang['items_item_number']='โค๊ด';
|
||||
$lang['items_retrive_item_info']='รับข้อมูลสินค้า';
|
||||
$lang['items_description']='รายละเอียด';
|
||||
$lang['items_amazon']='Amazon';
|
||||
$lang['items_upc_database']='UPC ฐานข้อมูล';
|
||||
$lang['items_cannot_find_item']='ไม่พบข้อมูลของสินค้า';
|
||||
$lang['items_info_provided_by']='จัดเตรียมข้อมูลโดย';
|
||||
$lang['items_basic_information']='ข้อมูลสินค้ส';
|
||||
$lang['items_number_information']='หมายเลขสินค้า';
|
||||
$lang['items_new']='สินค้าใหม่';
|
||||
$lang['items_update']='ปรับแต่งสินค้า';
|
||||
$lang['items_item']='สินค้า';
|
||||
$lang['items_edit_multiple_items']='แก้ใขสินค้าต่างๆ';
|
||||
$lang['items_name']='ชื่อสินค้า';
|
||||
$lang['items_category']='หมวดหมู่';
|
||||
$lang['items_cost_price']='ราคาทุน';//GARRISON ADDED 4/21/2013
|
||||
$lang['items_unit_price']='ราคาขาย';//GARRISON ADDED 4/21/2013
|
||||
$lang['items_tax_1']='ภาษี 1';
|
||||
$lang['items_tax_2']='ภาษี 2';
|
||||
$lang['items_sales_tax_1'] = 'ถาษีขาย';
|
||||
$lang['items_sales_tax_2'] = 'ภาษีขาย 2';
|
||||
$lang['items_tax_percent']='ภาษี(%)';
|
||||
$lang['items_tax_percents']='ภาษี(%)';
|
||||
$lang['items_reorder_level']='ระดับการสั่งใหม่';
|
||||
$lang['items_quantity']='จำนวน';
|
||||
$lang['items_reorder_level']='ระดับการสั่งใหม่';
|
||||
$lang['items_no_items_to_display']='ไม่มีสินค้าแสดง';
|
||||
$lang['items_bulk_edit']='แก้ไขความจุ';
|
||||
$lang['items_confirm_delete']='แน่ใจหรือไม่ที่จะลบสินค้าที่ถูกเลือก?';
|
||||
$lang['items_none_selected']='กรุณาเลือสินค้าที่ต้องการแก้ไข';
|
||||
$lang['items_confirm_bulk_edit']='แน่ใจหรือไม่ที่จะแก้ใขสินค้าทั้งหมดที่คุณเลือก?';
|
||||
$lang['items_successful_bulk_edit']='ปรับแต่งสินค้าสำเร็จ';
|
||||
$lang['items_error_updating_multiple']='ปรับแต่งสินค้าล้มเหลว';
|
||||
$lang['items_edit_fields_you_want_to_update']='แก้ไขสินค้าทุกชนิดที่คุณเลือก';
|
||||
$lang['items_error_adding_updating'] = 'เพิ่ม/ปรับแต่ง สินค้าล้มเหลว';
|
||||
$lang['items_successful_adding']='เพิ่มสินค้าสำเร็จ';
|
||||
$lang['items_successful_updating']='ปรับแต่งสินค้าสำเร็จ';
|
||||
$lang['items_successful_deleted']='ลบสินค้าสำเร็จ';
|
||||
$lang['items_one_or_multiple']='สินค้า(s)';
|
||||
$lang['items_cannot_be_deleted']='ไมม่สามารถลบสินค้าที่เลือก, สินค้าที่เลือกถูกขายไปแล้ว.';
|
||||
$lang['items_name_required']='ชื่อสินค้าต้องกรอก';
|
||||
$lang['items_category_required']='หมวดหมู่สินค้าต้องกรอก';
|
||||
$lang['items_buy_price_required']='ราคาซื้อขายต้องกรอก'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_unit_price_required']='ราคาต่อหน่วยต้องกรอก'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_cost_price_required']='ราคาทุนต้องกรอก'; //GARRISON UPDATED 6/3/2013
|
||||
$lang['items_tax_percent_required']='เปอร์เซ็นต์ต้องกรอก';
|
||||
$lang['items_quantity_required']='จำนวนต้องกรอก';
|
||||
$lang['items_reorder_level_required']='ระดับการสั่งไหม่ต้องกรอก';
|
||||
$lang['items_unit_price_number']='ราคาต่อหน่วยต้องเป็นตัวเลข';
|
||||
$lang['items_cost_price_number']='ราคาทุนต้องเป็นตัวเลข';
|
||||
$lang['items_quantity_number']='จำนวนต้องเป็นตัวเลข';
|
||||
$lang['items_reorder_level_number']='ระดับการสั่งใหม่ต้องเป็นตัวเลข';
|
||||
$lang['items_none'] = 'ว่างเปล่า';
|
||||
$lang['items_supplier'] = 'ผู้ผลิต';
|
||||
$lang['items_generate_barcodes'] = 'สร้างบาร์โค๊ด';
|
||||
$lang['items_must_select_item_for_barcode'] = 'คุต้องเลือกสินค้าอย่างน้อยหนึ่งอย่างเพื่อจะสร้างบาร์โค๊ด';
|
||||
$lang['items_excel_import_failed'] = 'นำเข้าข้อมูล Excel ล้มเหลว';
|
||||
$lang['items_allow_alt_desciption'] = 'Allow Alt Description';
|
||||
$lang['items_is_serialized'] = 'สินค้ามีซีเรียวนัมเบอร์';
|
||||
$lang['items_low_inventory_items'] = 'สินค้าคงเหลือน้อย';
|
||||
$lang['items_serialized_items'] = 'รหัสสินค้า';
|
||||
$lang['items_no_description_items'] = 'สินค้าที่ไม่มีคำอธิบายหรือวิธีการใช้';
|
||||
$lang['items_search_custom_items'] = 'Search Custom Fields';//GARRISON ADDED
|
||||
$lang['items_inventory_comments']='คำอธิบาย';
|
||||
$lang['items_count']='แก้ไขจำนวนสินค้าคงคลัง';
|
||||
$lang['items_details_count']='รายละเอียดจำนวนสินค้าคงคลัง';
|
||||
$lang['items_add_minus']='เพิ่ม/ลบ จำนวนสินค้าคงคลัง';
|
||||
$lang['items_current_quantity']='ปริมาณสินค้าคงคลัง';
|
||||
$lang['items_quantity_required']='จำนวนต้องกรอก. กรุณาปิดเพื่อยกเลิก';
|
||||
$lang['items_do_nothing'] = 'ไม่ต้องทำอะไร';
|
||||
$lang['items_change_all_to_serialized'] = 'เปลี่ยนแปลงรหัสสินค้าทั้งหมด';
|
||||
$lang['items_change_all_to_unserialized'] = 'ลบรหัสสินค้าทั้งหมด';
|
||||
$lang['items_change_all_to_allow_alt_desc'] = ' Allow Alt Desc For All';
|
||||
$lang['items_change_all_to_not_allow_allow_desc'] = 'Not Allow Alt Desc For All';
|
||||
$lang['items_use_inventory_menu'] = 'ใช้สินค้าคงเหลือเมนู';
|
||||
$lang['items_manually_editing_of_quantity'] = 'แก้ไขจำนวน';
|
||||
$lang['items_inventory'] = 'สินค้าคงเหลือ';
|
||||
$lang['items_location'] = 'ที่ตั้ง';
|
||||
$lang['items_unit_quantity'] = 'จำนวนหน่วย';
|
||||
$lang['items_related_number'] = 'สินค้าที่เกี่ยวข้อง';
|
||||
$lang['items_stock_type_sale'] = 'สินค้าหน้าร้าน';
|
||||
$lang['items_stock_type_warehouse'] = 'สินค้าหลังร้าน';
|
||||
$lang['items_stock_type'] = 'ชนิดของสินค้า';
|
||||
?>
|
||||
16
application/language/th/login_lang.php
Normal file
16
application/language/th/login_lang.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
$lang['login_login']='ลงชื่อเข้าใช้';
|
||||
$lang['login_username']='ชื่อผู้ใช้';
|
||||
$lang['login_password']='รหัสผ่าน';
|
||||
$lang['login_go']='GOOOO';
|
||||
$lang['login_invalid_username_and_password']='ชื่อผู้ใช้/รหัส ไม่ถูกต้อง';
|
||||
$lang['login_welcome_message']='ยินดีต้องรับสู่ระบบ Open Source Point of Sale. เพื่อที่จะไปต่อ, กรุณาเข้าสู่ระบบโดยใส่ ชื่อผู้ใช้ และ รหัสผ่านที่อยู่ด้านล่าง.';
|
||||
?>
|
||||
<?php
|
||||
$lang['login_login']='ลงชื่อเข้าใช้';
|
||||
$lang['login_username']='ชื่อผู้ใช้';
|
||||
$lang['login_password']='รหัสผ่าน';
|
||||
$lang['login_go']='GOOOO';
|
||||
$lang['login_invalid_username_and_password']='ชื่อผู้ใช้/รหัส ไม่ถูกต้อง';
|
||||
$lang['login_welcome_message']='ยินดีต้องรับสู่ระบบ Open Source Point of Sale. เพื่อที่จะไปต่อ, กรุณาเข้าสู่ระบบโดยใส่ ชื่อผู้ใช้ และ รหัสผ่านที่อยู่ด้านล่าง.';
|
||||
?>
|
||||
68
application/language/th/module_lang.php
Normal file
68
application/language/th/module_lang.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
$lang['module_home']='Home';
|
||||
|
||||
$lang['module_customers']='ลูกค้า';
|
||||
$lang['module_customers_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา ลูกค้า';
|
||||
|
||||
$lang['module_suppliers']='ผู้ผลิต';
|
||||
$lang['module_suppliers_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา ผู้ผลิต';
|
||||
|
||||
$lang['module_employees']='พนักงาน';
|
||||
$lang['module_employees_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา พนักงาน';
|
||||
|
||||
$lang['module_sales']='งานขาย';
|
||||
$lang['module_sales_desc']='งานขาย และ รับคืน';
|
||||
|
||||
$lang['module_reports']='รายงาน';
|
||||
$lang['module_reports_desc']='สร้างและตรวจสอบรายงาน';
|
||||
|
||||
$lang['module_items']='สินค้า';
|
||||
$lang['module_items_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา สินค้า';
|
||||
|
||||
$lang['module_config']='ปรับแต่งร้านค้า';
|
||||
$lang['module_config_desc']='ปรับแต่งร้านค้า';
|
||||
|
||||
$lang['module_receivings']='สินค้าเข้า';
|
||||
$lang['module_receivings_desc']='สินค้าเข้า';
|
||||
|
||||
$lang['module_giftcards']='กิ๊บการ์ด';
|
||||
$lang['module_giftcards_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา กิ๊บการ์ด';
|
||||
|
||||
$lang['module_item_kits']='สินค้าหมู่';
|
||||
$lang['module_item_kits_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา สินค้าหมู่';
|
||||
|
||||
?>
|
||||
<?php
|
||||
$lang['module_home']='Home';
|
||||
|
||||
$lang['module_customers']='ลูกค้า';
|
||||
$lang['module_customers_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา ลูกค้า';
|
||||
|
||||
$lang['module_suppliers']='ผู้ผลิต';
|
||||
$lang['module_suppliers_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา ผู้ผลิต';
|
||||
|
||||
$lang['module_employees']='พนักงาน';
|
||||
$lang['module_employees_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา พนักงาน';
|
||||
|
||||
$lang['module_sales']='งานขาย';
|
||||
$lang['module_sales_desc']='งานขาย และ รับคืน';
|
||||
|
||||
$lang['module_reports']='รายงาน';
|
||||
$lang['module_reports_desc']='สร้างและตรวจสอบรายงาน';
|
||||
|
||||
$lang['module_items']='สินค้า';
|
||||
$lang['module_items_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา สินค้า';
|
||||
|
||||
$lang['module_config']='ปรับแต่งร้านค้า';
|
||||
$lang['module_config_desc']='ปรับแต่งร้านค้า';
|
||||
|
||||
$lang['module_receivings']='สินค้าเข้า';
|
||||
$lang['module_receivings_desc']='สินค้าเข้า';
|
||||
|
||||
$lang['module_giftcards']='กิ๊บการ์ด';
|
||||
$lang['module_giftcards_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา กิ๊บการ์ด';
|
||||
|
||||
$lang['module_item_kits']='สินค้าหมู่';
|
||||
$lang['module_item_kits_desc']='เพิ่ม, อัพเดท, ลบ, และค้นหา สินค้าหมู่';
|
||||
|
||||
?>
|
||||
72
application/language/th/receivings_lang.php
Normal file
72
application/language/th/receivings_lang.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
$lang['recvs_register']='รับสินค้า';
|
||||
$lang['recvs_mode']='วิธีการรับสินค้า';
|
||||
$lang['recvs_receiving']='รับ';
|
||||
$lang['recvs_return']='คืน';
|
||||
$lang['recvs_requisition']='เบิกสินค้า';
|
||||
$lang['recvs_total']='รวม';
|
||||
$lang['recvs_cost']='ราคา';
|
||||
$lang['recvs_quantity']='จำนวน.';
|
||||
$lang['recvs_discount']='ส่วนลด %';
|
||||
$lang['recvs_edit']='แก้ไข';
|
||||
$lang['recvs_new_supplier'] = 'ผู้ผลิตรายใหม่';
|
||||
$lang['recvs_supplier'] = 'ผู้ผลิต';
|
||||
$lang['recvs_select_supplier']='เลือกผู้ผลิต (ทางเลือก)';
|
||||
$lang['recvs_start_typing_supplier_name']='เริ่มต้นพิมพ์ชื่อผู้ผลิต...';
|
||||
$lang['recvs_unable_to_add_item']='ไม่สามารถเพิ่มสินค้าได้';
|
||||
$lang['recvs_error_editing_item']='แก้ไขสินค้าล้มเหลว';
|
||||
$lang['recvs_receipt']='บิลสินค้าเข้า';
|
||||
$lang['recvs_complete_receiving']='เสร็จสิ้น';
|
||||
$lang['recvs_confirm_finish_receiving'] = 'แน่ใจหรือไม่ที่จะส่งรายการสินค้าเข้า? ถ้าตกลงไม่สามารถย้อนกลับใด้.';
|
||||
$lang['recvs_confirm_cancel_receiving'] = 'แน่ใจหรือไม่ที่จะล้างรายการสินค้าเข้า? ถ้าตกลงไม่สามารถย้อนกลับใด้.';
|
||||
$lang['recvs_find_or_scan_item']='ค้นหาสินค้า';
|
||||
$lang['recvs_find_or_scan_item_or_receipt']='ค้นหาสินค้าหรือบิล';
|
||||
$lang['recvs_id']='รายการสินค้าเข้า ID';
|
||||
$lang['recvs_item_name'] = 'ชื่อสินคัา';
|
||||
$lang['receivings_transaction_failed'] = 'ดำเนินการรับสินค้าล้มเหลว';
|
||||
|
||||
$lang['reqs_quantity'] ='จำนวน';
|
||||
$lang['reqs_related_item']='สินค้าที่เกี่ยวข้อง';
|
||||
$lang['reqs_unit_quantity']='จำนวนหน่วย';
|
||||
$lang['reqs_unit_quantity_total']='จำนวนรวม';
|
||||
$lang['reqs_related_item_quantity']='จำนวนสินค้าที่เกี่ยวข้อง';
|
||||
$lang['reqs_receipt']='บิลเบิกสินค้า';
|
||||
$lang['reqs_transaction_failed'] = 'เบิกสินค้าล้มเหลว';
|
||||
$lang['reqs_unable_to_add_item']='ไม่สามารถเพิ่มสินค้าได้';
|
||||
?>
|
||||
<?php
|
||||
$lang['recvs_register']='รับสินค้า';
|
||||
$lang['recvs_mode']='วิธีการรับสินค้า';
|
||||
$lang['recvs_receiving']='รับ';
|
||||
$lang['recvs_return']='คืน';
|
||||
$lang['recvs_requisition']='เบิกสินค้า';
|
||||
$lang['recvs_total']='รวม';
|
||||
$lang['recvs_cost']='ราคา';
|
||||
$lang['recvs_quantity']='จำนวน.';
|
||||
$lang['recvs_discount']='ส่วนลด %';
|
||||
$lang['recvs_edit']='แก้ไข';
|
||||
$lang['recvs_new_supplier'] = 'ผู้ผลิตรายใหม่';
|
||||
$lang['recvs_supplier'] = 'ผู้ผลิต';
|
||||
$lang['recvs_select_supplier']='เลือกผู้ผลิต (ทางเลือก)';
|
||||
$lang['recvs_start_typing_supplier_name']='เริ่มต้นพิมพ์ชื่อผู้ผลิต...';
|
||||
$lang['recvs_unable_to_add_item']='ไม่สามารถเพิ่มสินค้าได้';
|
||||
$lang['recvs_error_editing_item']='แก้ไขสินค้าล้มเหลว';
|
||||
$lang['recvs_receipt']='บิลสินค้าเข้า';
|
||||
$lang['recvs_complete_receiving']='เสร็จสิ้น';
|
||||
$lang['recvs_confirm_finish_receiving'] = 'แน่ใจหรือไม่ที่จะส่งรายการสินค้าเข้า? ถ้าตกลงไม่สามารถย้อนกลับใด้.';
|
||||
$lang['recvs_confirm_cancel_receiving'] = 'แน่ใจหรือไม่ที่จะล้างรายการสินค้าเข้า? ถ้าตกลงไม่สามารถย้อนกลับใด้.';
|
||||
$lang['recvs_find_or_scan_item']='ค้นหาสินค้า';
|
||||
$lang['recvs_find_or_scan_item_or_receipt']='ค้นหาสินค้าหรือบิล';
|
||||
$lang['recvs_id']='รายการสินค้าเข้า ID';
|
||||
$lang['recvs_item_name'] = 'ชื่อสินคัา';
|
||||
$lang['receivings_transaction_failed'] = 'ดำเนินการรับสินค้าล้มเหลว';
|
||||
|
||||
$lang['reqs_quantity'] ='จำนวน';
|
||||
$lang['reqs_related_item']='สินค้าที่เกี่ยวข้อง';
|
||||
$lang['reqs_unit_quantity']='จำนวนหน่วย';
|
||||
$lang['reqs_unit_quantity_total']='จำนวนรวม';
|
||||
$lang['reqs_related_item_quantity']='จำนวนสินค้าที่เกี่ยวข้อง';
|
||||
$lang['reqs_receipt']='บิลเบิกสินค้า';
|
||||
$lang['reqs_transaction_failed'] = 'เบิกสินค้าล้มเหลว';
|
||||
$lang['reqs_unable_to_add_item']='ไม่สามารถเพิ่มสินค้าได้';
|
||||
?>
|
||||
204
application/language/th/reports_lang.php
Normal file
204
application/language/th/reports_lang.php
Normal file
@@ -0,0 +1,204 @@
|
||||
<?php
|
||||
$lang['reports_reports'] = 'รายงาน';
|
||||
$lang['reports_report'] = 'รายงาน';
|
||||
$lang['reports_welcome_message'] = 'ยินดีต้อนรับเข้าสู่รายงาน. โปรดเลือกชนิดของรายงาน.';
|
||||
$lang['reports_sales_summary_report'] = 'รายงานสรุปการขาย';
|
||||
$lang['reports_categories_summary_report'] = 'รายงานสรุปหมวดหมู่';
|
||||
$lang['reports_customers_summary_report'] = 'รายงานสรุปลูกค้า';
|
||||
$lang['reports_suppliers_summary_report'] = 'รายงานสรุปผู้ผลิต';
|
||||
$lang['reports_items_summary_report'] = 'รายงานสรุปสินค้า';
|
||||
$lang['reports_employees_summary_report'] = 'รายงานสรุปพนักงาน';
|
||||
$lang['reports_taxes_summary_report'] = 'รายงานสรุปภาษี';
|
||||
$lang['reports_date'] = 'วันที่';
|
||||
$lang['reports_name'] = 'ชื่อ';
|
||||
$lang['reports_quantity_purchased'] = 'จำนวนการช์้อ';
|
||||
$lang['reports_sale_id'] = 'IDขาย';
|
||||
$lang['reports_items_purchased'] = 'สินค้าที่ถูกซื้อ';
|
||||
$lang['reports_sold_by'] = 'ขายโดย';
|
||||
$lang['reports_sold_to'] = 'ขายไปที่';
|
||||
$lang['reports_category'] = 'หมวดหมู่';
|
||||
$lang['reports_customer'] = 'ลูกค้า';
|
||||
$lang['reports_employee'] = 'พนักงาน';
|
||||
$lang['reports_item'] = 'สินค้า';
|
||||
$lang['reports_items'] = 'สินค้า';
|
||||
$lang['reports_supplier'] = 'ผู้ผลิต';
|
||||
$lang['reports_employees'] = 'พนักงาน';
|
||||
$lang['reports_subtotal'] = 'ยอดรวมรอง';
|
||||
$lang['reports_total'] = 'ยอดรวม';
|
||||
$lang['reports_tax'] = 'ภาษี';
|
||||
$lang['reports_profit'] = 'กำไร';
|
||||
$lang['reports_report_input'] = 'ข้อมูลรายงาน';
|
||||
$lang['reports_type'] = 'ชนิด';
|
||||
$lang['reports_date_range'] = 'ระหว่างวันที่';
|
||||
$lang['reports_today'] = 'วันนี้';
|
||||
$lang['reports_yesterday'] = 'เมื่อวานนี้';
|
||||
$lang['reports_last_7'] = '7 วันสุดท้าย';
|
||||
$lang['reports_this_month'] = 'เดือนนี้';
|
||||
$lang['reports_last_month'] = 'เดือนที่แล้ว';
|
||||
$lang['reports_this_year'] = 'ปีนี้';
|
||||
$lang['reports_last_year'] = 'ปีที่แล้ว';
|
||||
$lang['reports_all_time'] = 'เวลาทั้งหมด';
|
||||
$lang['reports_detailed_sales_report'] = 'รายงายงานขาย';
|
||||
$lang['reports_comments'] = 'หมายเหตุ';
|
||||
$lang['reports_discount'] = 'ส่วนลด';
|
||||
$lang['reports_payment_type'] = 'ชนิดของการจ่าย';
|
||||
$lang['reports_sales'] = 'ขาย';
|
||||
$lang['reports_sales_retail'] = 'ขายปลีก';
|
||||
$lang['reports_sales_wholesale'] = 'ขายส่ง';
|
||||
$lang['reports_categories'] = 'หมวดหมู่';
|
||||
$lang['reports_customers'] = 'ลูกค้า';
|
||||
$lang['reports_suppliers'] = 'ผู้ผลิต';
|
||||
$lang['reports_items'] = 'สินค้า';
|
||||
$lang['reports_employees'] = 'พนักงาน';
|
||||
$lang['reports_taxes'] = 'ภาษี';
|
||||
$lang['reports_customer'] = 'ลูกค้า';
|
||||
$lang['reports_employee'] = 'พนักงาน';
|
||||
$lang['reports_tax_percent'] = 'เปอร์เซ็นภาษี';
|
||||
$lang['reports_quantity_purchased'] = 'จำนวนซื้อ';
|
||||
$lang['reports_serial_number'] = 'Serial #';
|
||||
$lang['reports_description'] = 'คำอธิบาย';
|
||||
$lang['reports_date'] = 'วันที่';
|
||||
$lang['reports_sales_amount'] = 'จำนวนขาย';
|
||||
$lang['reports_revenue'] = 'รายรับ';
|
||||
$lang['reports_discounts'] = 'ส่วนลด';
|
||||
$lang['reports_discounts_summary_report'] = 'รายงานสรุปส่วนลด';
|
||||
$lang['reports_discount_percent'] = 'เปอร์เซ็นต์ส่วนลด';
|
||||
$lang['reports_count'] = 'นับ';
|
||||
$lang['reports_summary_reports'] = 'สรุปรายงาน';
|
||||
$lang['reports_graphical_reports'] = 'รายงายแบบกราฟ';
|
||||
$lang['reports_detailed_reports'] = 'รายละเอียดรายงาน';
|
||||
$lang['reports_inventory_reports'] = 'รายงานสินค้าคงเหลือ';
|
||||
$lang['reports_low_inventory'] = 'สินค้าเหลือน้อย';
|
||||
$lang['reports_inventory_summary'] = ' รายงานสินค้าคงเหลือ';
|
||||
$lang['reports_item_number'] = 'เลขสินค้า';
|
||||
$lang['reports_reorder_level'] = 'ระดับการสั่งใหม่';
|
||||
$lang['reports_low_inventory_report'] = 'รายงานสินค้าที่เหลือน้อย';
|
||||
$lang['reports_item_name'] = 'ชื่อสินค้า';
|
||||
$lang['reports_inventory_summary_report'] = 'รายงานสรุปสินค้าคงเหลือ';
|
||||
$lang['reports_payment_type'] = 'ชนิดการจ่าย';
|
||||
$lang['reports_payments_summary_report'] = 'รายงานสรุปการจ่าย';
|
||||
$lang['reports_payments'] = 'รายจ่าย';
|
||||
$lang['reports_receivings'] = 'รับสินค้า';
|
||||
$lang['reports_received_by'] = 'รับโดย';
|
||||
$lang['reports_supplied_by'] = 'ผบิตโดย';
|
||||
$lang['reports_items_received'] = 'สินค้าเข้า';
|
||||
$lang['reports_detailed_receivings_report'] = 'รายงานรายละเอียกการรับของ';
|
||||
$lang['reports_sale_type'] = 'ชนิดของการขาย';
|
||||
$lang['reports_all'] = 'ทั้งหมด';
|
||||
$lang['reports_returns'] = 'คืน';
|
||||
|
||||
$lang['reports_receiving_type'] = 'รูปแบบการรับสินค้า';
|
||||
$lang['reports_requisition'] = 'เบิกสินค้า';
|
||||
$lang['reports_receiving_id'] = 'IDรับสินค้า';
|
||||
$lang['reports_requisition_id'] = 'IDเบิกสินค้า';
|
||||
$lang['reports_requisition_by'] = 'ผู้เบิกสินค้า';
|
||||
$lang['reports_requisition_item'] = 'ชื่อสินค้า';
|
||||
$lang['reports_requisition_item_quantity'] = 'จำนวนเบิก';
|
||||
$lang['reports_requisition_related_item'] = 'สินค้าย่อย';
|
||||
$lang['reports_requisition_related_item_unit_quantity'] = 'จำนวนสินค้าย่ิอย';
|
||||
$lang['reports_requisition_related_item_total_quantity'] = 'จำนวนรวมสินค้าย่อย';
|
||||
$lang['reports_detailed_requisition_report'] = 'รายงานรายละเอียดการเบิกของ';
|
||||
|
||||
?>
|
||||
<?php
|
||||
$lang['reports_reports'] = 'รายงาน';
|
||||
$lang['reports_report'] = 'รายงาน';
|
||||
$lang['reports_welcome_message'] = 'ยินดีต้อนรับเข้าสู่รายงาน. โปรดเลือกชนิดของรายงาน.';
|
||||
$lang['reports_sales_summary_report'] = 'รายงานสรุปการขาย';
|
||||
$lang['reports_categories_summary_report'] = 'รายงานสรุปหมวดหมู่';
|
||||
$lang['reports_customers_summary_report'] = 'รายงานสรุปลูกค้า';
|
||||
$lang['reports_suppliers_summary_report'] = 'รายงานสรุปผู้ผลิต';
|
||||
$lang['reports_items_summary_report'] = 'รายงานสรุปสินค้า';
|
||||
$lang['reports_employees_summary_report'] = 'รายงานสรุปพนักงาน';
|
||||
$lang['reports_taxes_summary_report'] = 'รายงานสรุปภาษี';
|
||||
$lang['reports_date'] = 'วันที่';
|
||||
$lang['reports_name'] = 'ชื่อ';
|
||||
$lang['reports_quantity_purchased'] = 'จำนวนการช์้อ';
|
||||
$lang['reports_sale_id'] = 'IDขาย';
|
||||
$lang['reports_items_purchased'] = 'สินค้าที่ถูกซื้อ';
|
||||
$lang['reports_sold_by'] = 'ขายโดย';
|
||||
$lang['reports_sold_to'] = 'ขายไปที่';
|
||||
$lang['reports_category'] = 'หมวดหมู่';
|
||||
$lang['reports_customer'] = 'ลูกค้า';
|
||||
$lang['reports_employee'] = 'พนักงาน';
|
||||
$lang['reports_item'] = 'สินค้า';
|
||||
$lang['reports_items'] = 'สินค้า';
|
||||
$lang['reports_supplier'] = 'ผู้ผลิต';
|
||||
$lang['reports_employees'] = 'พนักงาน';
|
||||
$lang['reports_subtotal'] = 'ยอดรวมรอง';
|
||||
$lang['reports_total'] = 'ยอดรวม';
|
||||
$lang['reports_tax'] = 'ภาษี';
|
||||
$lang['reports_profit'] = 'กำไร';
|
||||
$lang['reports_report_input'] = 'ข้อมูลรายงาน';
|
||||
$lang['reports_type'] = 'ชนิด';
|
||||
$lang['reports_date_range'] = 'ระหว่างวันที่';
|
||||
$lang['reports_today'] = 'วันนี้';
|
||||
$lang['reports_yesterday'] = 'เมื่อวานนี้';
|
||||
$lang['reports_last_7'] = '7 วันสุดท้าย';
|
||||
$lang['reports_this_month'] = 'เดือนนี้';
|
||||
$lang['reports_last_month'] = 'เดือนที่แล้ว';
|
||||
$lang['reports_this_year'] = 'ปีนี้';
|
||||
$lang['reports_last_year'] = 'ปีที่แล้ว';
|
||||
$lang['reports_all_time'] = 'เวลาทั้งหมด';
|
||||
$lang['reports_detailed_sales_report'] = 'รายงายงานขาย';
|
||||
$lang['reports_comments'] = 'หมายเหตุ';
|
||||
$lang['reports_discount'] = 'ส่วนลด';
|
||||
$lang['reports_payment_type'] = 'ชนิดของการจ่าย';
|
||||
$lang['reports_sales'] = 'ขาย';
|
||||
$lang['reports_sales_retail'] = 'ขายปลีก';
|
||||
$lang['reports_sales_wholesale'] = 'ขายส่ง';
|
||||
$lang['reports_categories'] = 'หมวดหมู่';
|
||||
$lang['reports_customers'] = 'ลูกค้า';
|
||||
$lang['reports_suppliers'] = 'ผู้ผลิต';
|
||||
$lang['reports_items'] = 'สินค้า';
|
||||
$lang['reports_employees'] = 'พนักงาน';
|
||||
$lang['reports_taxes'] = 'ภาษี';
|
||||
$lang['reports_customer'] = 'ลูกค้า';
|
||||
$lang['reports_employee'] = 'พนักงาน';
|
||||
$lang['reports_tax_percent'] = 'เปอร์เซ็นภาษี';
|
||||
$lang['reports_quantity_purchased'] = 'จำนวนซื้อ';
|
||||
$lang['reports_serial_number'] = 'Serial #';
|
||||
$lang['reports_description'] = 'คำอธิบาย';
|
||||
$lang['reports_date'] = 'วันที่';
|
||||
$lang['reports_sales_amount'] = 'จำนวนขาย';
|
||||
$lang['reports_revenue'] = 'รายรับ';
|
||||
$lang['reports_discounts'] = 'ส่วนลด';
|
||||
$lang['reports_discounts_summary_report'] = 'รายงานสรุปส่วนลด';
|
||||
$lang['reports_discount_percent'] = 'เปอร์เซ็นต์ส่วนลด';
|
||||
$lang['reports_count'] = 'นับ';
|
||||
$lang['reports_summary_reports'] = 'สรุปรายงาน';
|
||||
$lang['reports_graphical_reports'] = 'รายงายแบบกราฟ';
|
||||
$lang['reports_detailed_reports'] = 'รายละเอียดรายงาน';
|
||||
$lang['reports_inventory_reports'] = 'รายงานสินค้าคงเหลือ';
|
||||
$lang['reports_low_inventory'] = 'สินค้าเหลือน้อย';
|
||||
$lang['reports_inventory_summary'] = ' รายงานสินค้าคงเหลือ';
|
||||
$lang['reports_item_number'] = 'เลขสินค้า';
|
||||
$lang['reports_reorder_level'] = 'ระดับการสั่งใหม่';
|
||||
$lang['reports_low_inventory_report'] = 'รายงานสินค้าที่เหลือน้อย';
|
||||
$lang['reports_item_name'] = 'ชื่อสินค้า';
|
||||
$lang['reports_inventory_summary_report'] = 'รายงานสรุปสินค้าคงเหลือ';
|
||||
$lang['reports_payment_type'] = 'ชนิดการจ่าย';
|
||||
$lang['reports_payments_summary_report'] = 'รายงานสรุปการจ่าย';
|
||||
$lang['reports_payments'] = 'รายจ่าย';
|
||||
$lang['reports_receivings'] = 'รับสินค้า';
|
||||
$lang['reports_received_by'] = 'รับโดย';
|
||||
$lang['reports_supplied_by'] = 'ผบิตโดย';
|
||||
$lang['reports_items_received'] = 'สินค้าเข้า';
|
||||
$lang['reports_detailed_receivings_report'] = 'รายงานรายละเอียกการรับของ';
|
||||
$lang['reports_sale_type'] = 'ชนิดของการขาย';
|
||||
$lang['reports_all'] = 'ทั้งหมด';
|
||||
$lang['reports_returns'] = 'คืน';
|
||||
|
||||
$lang['reports_receiving_type'] = 'รูปแบบการรับสินค้า';
|
||||
$lang['reports_requisition'] = 'เบิกสินค้า';
|
||||
$lang['reports_receiving_id'] = 'IDรับสินค้า';
|
||||
$lang['reports_requisition_id'] = 'IDเบิกสินค้า';
|
||||
$lang['reports_requisition_by'] = 'ผู้เบิกสินค้า';
|
||||
$lang['reports_requisition_item'] = 'ชื่อสินค้า';
|
||||
$lang['reports_requisition_item_quantity'] = 'จำนวนเบิก';
|
||||
$lang['reports_requisition_related_item'] = 'สินค้าย่อย';
|
||||
$lang['reports_requisition_related_item_unit_quantity'] = 'จำนวนสินค้าย่ิอย';
|
||||
$lang['reports_requisition_related_item_total_quantity'] = 'จำนวนรวมสินค้าย่อย';
|
||||
$lang['reports_detailed_requisition_report'] = 'รายงานรายละเอียดการเบิกของ';
|
||||
|
||||
?>
|
||||
160
application/language/th/sales_lang.php
Normal file
160
application/language/th/sales_lang.php
Normal file
@@ -0,0 +1,160 @@
|
||||
<?php
|
||||
$lang['sales_giftcard_number']='เลขที่ Gift Card';
|
||||
$lang['sales_giftcard']='Gift Card';
|
||||
$lang['sales_register']='ลงทะเบียนขาย';
|
||||
$lang['sales_mode']='รูปแบบการลงทะเบียน';
|
||||
$lang['sales_new_item'] = 'สินค้าใหม่';
|
||||
$lang['sales_item_name'] = 'ชื่อสินค้า';
|
||||
$lang['sales_item_number'] = 'สินค้า #';
|
||||
$lang['sales_new_customer'] = 'ลูกค้าใหม่';
|
||||
$lang['sales_customer'] = 'ลูกค้า';
|
||||
$lang['sales_no_items_in_cart']='ไม่พบสินค้าในตระกร้า';
|
||||
$lang['sales_total']='ยอดรวม';
|
||||
$lang['sales_tax_percent']='ภาษี %';
|
||||
$lang['sales_price']='ราคา';
|
||||
$lang['sales_quantity']='จำนวน';
|
||||
$lang['sales_discount']='ส่วนลด %';
|
||||
$lang['sales_edit']='แก้ไข';
|
||||
$lang['sales_payment']='รูปแบบชำระเงิน';
|
||||
$lang['sales_edit_item']='แก้ไขสินค้า';
|
||||
$lang['sales_find_or_scan_item']='ค้นหาสินค้า';
|
||||
$lang['sales_find_or_scan_item_or_receipt']='ค้นหาสินค้า หรือ บิล';
|
||||
$lang['sales_select_customer']='เลือกลูกค้า (Optional)';
|
||||
$lang['sales_start_typing_item_name']='เริ่มต้นพิมพ์ชื่อสินค้า หรือ สแกนบาร์โค๊ด...';
|
||||
$lang['sales_start_typing_customer_name']='เริ่มต้นพิมพ์ชื่อลูกค้า...';
|
||||
$lang['sales_sub_total']='ยอดรวมหักภาษี ';
|
||||
$lang['sales_tax']='ภาษี';
|
||||
$lang['sales_comment']='หมายเหตุ';
|
||||
$lang['sales_unable_to_add_item']='ไม่สามารถเพิ่มสินค้าได้';
|
||||
$lang['sales_sale_for_customer']='ลูกค้า:';
|
||||
$lang['sales_remove_customer']='ลบลูกค้า';
|
||||
$lang['sales_error_editing_item']='แก้ไขสินค้าล้มเหลว';
|
||||
$lang['sales_complete_sale']='สำเร็จการขาย';
|
||||
$lang['sales_cancel_sale']='ยกเลิกการขาย';
|
||||
$lang['sales_add_payment']='เพิ่มบิล';
|
||||
$lang['sales_receipt']='บิลขาย';
|
||||
$lang['sales_id']='เลขที่ขาย';
|
||||
$lang['sales_sale_retail']='ขายปลีก';
|
||||
$lang['sales_wholesale']='ขายส่ง';
|
||||
$lang['sales_return']='คืน';
|
||||
$lang['sales_confirm_finish_sale'] = 'แน่ใจหรือไม่ที่จะสำเร็จการขาย? ไม่สามารถย้อนกลับได้.';
|
||||
$lang['sales_confirm_cancel_sale'] = 'แน่ใจหรือไม่ที่จะล้างรายการขาย? สินค้าทุกอย่างจะถูกลบจากบอร์ด.';
|
||||
$lang['sales_cash'] = 'เงินสด';
|
||||
$lang['sales_check'] = 'เช็ก';
|
||||
$lang['sales_debit'] = 'เดบิทการ์ด';
|
||||
$lang['sales_credit'] = 'เครดิทการ์ด';
|
||||
$lang['sales_giftcard'] = 'กิ๊ฟการ์ด';
|
||||
$lang['sales_amount_tendered'] = 'จำนวนประมูล';
|
||||
$lang['sales_change_due'] = 'เงินทอน';
|
||||
$lang['sales_payment_not_cover_total'] = ' ปริมาณการจ่ายที่ไม่เพียงพอกะยอดรวม';
|
||||
$lang['sales_transaction_failed'] = 'การดำเนินการขายล้มเหลว';
|
||||
$lang['sales_must_enter_numeric'] = 'จำนวนที่ถุกประมูลต้องใส่ข้อมุลที่เปนตัวเลข';
|
||||
$lang['sales_must_enter_numeric_giftcard'] = 'กิ๊ฟการ์ด ต้องใส่ตัวเลขเท่านั้น';
|
||||
$lang['sales_serial'] = 'Serial';
|
||||
$lang['sales_description_abbrv'] = 'Desc';
|
||||
$lang['sales_item_out_of_stock'] = 'สินค้าจำหน่ายหมด';
|
||||
$lang['sales_item_insufficient_of_stock'] = 'จำนวนสินค้าไม่เพียงพอ';
|
||||
$lang['sales_quantity_less_than_zero'] = 'คำเตือน ถ้าจำนวนของไม่เพียงพอกับความต้องการหรือไม่ตรงกับยอดในบันชี ก็สามารถทำการขายได้ แต่ต้องเชคปริมานสินค้าคงคลัง';
|
||||
$lang['sales_successfully_updated'] = 'อัพเดทการขายสมบูรณ์';
|
||||
$lang['sales_unsuccessfully_updated'] = 'อัพเดทการขายไม่สมบูรณ์';
|
||||
$lang['sales_edit_sale'] = 'แก้ไขการขาย';
|
||||
$lang['sales_employee'] = 'พนักงาน';
|
||||
$lang['sales_successfully_deleted'] = 'ลบการขายสมยูรณ์';
|
||||
$lang['sales_unsuccessfully_deleted'] = 'ลบการขายไม่สมยูรณ์';
|
||||
$lang['sales_delete_entire_sale'] = 'ลบการขายทั้งหมด';
|
||||
$lang['sales_delete_confirmation'] = 'แน่ใจหรือไม่ที่จะลบรายการขายนี้, ลบแล้วไม่สามารถเรียกกลับคืนใด้';
|
||||
$lang['sales_date'] = 'วันที่ขาย';
|
||||
$lang['sales_delete_successful'] = 'คุณลบการขายสำเร็จ';
|
||||
$lang['sales_delete_unsuccessful'] = 'คุณลบการขายไม่สำเร็จ';
|
||||
$lang['sales_suspend_sale'] = 'ระงับการขายชั่วคราว';
|
||||
$lang['sales_confirm_suspend_sale'] = 'แน่ใจหรือไม่ที่จะระงับการขาย?';
|
||||
$lang['sales_suspended_sales'] = 'การขายที่ถูกระงับ';
|
||||
$lang['sales_suspended_sale_id'] = 'รหัสการขายที่ถูกระงับ';
|
||||
$lang['sales_date'] = 'วันที่';
|
||||
$lang['sales_customer'] = 'ลูกค้า';
|
||||
$lang['sales_comments'] = 'หมายเหตุ';
|
||||
$lang['sales_unsuspend_and_delete'] = 'ยกเลิกการระงับ และ ลบ';
|
||||
$lang['sales_unsuspend'] = 'ยกเลิกการระงับ';
|
||||
$lang['sales_successfully_suspended_sale'] = 'การขายของคุณถูกระงับเรียบร้อย';
|
||||
$lang['sales_email_receipt'] = 'อีเมลบิล';
|
||||
?>
|
||||
<?php
|
||||
$lang['sales_giftcard_number']='เลขที่ Gift Card';
|
||||
$lang['sales_giftcard']='Gift Card';
|
||||
$lang['sales_register']='ลงทะเบียนขาย';
|
||||
$lang['sales_mode']='รูปแบบการลงทะเบียน';
|
||||
$lang['sales_new_item'] = 'สินค้าใหม่';
|
||||
$lang['sales_item_name'] = 'ชื่อสินค้า';
|
||||
$lang['sales_item_number'] = 'สินค้า #';
|
||||
$lang['sales_new_customer'] = 'ลูกค้าใหม่';
|
||||
$lang['sales_customer'] = 'ลูกค้า';
|
||||
$lang['sales_no_items_in_cart']='ไม่พบสินค้าในตระกร้า';
|
||||
$lang['sales_total']='ยอดรวม';
|
||||
$lang['sales_tax_percent']='ภาษี %';
|
||||
$lang['sales_price']='ราคา';
|
||||
$lang['sales_quantity']='จำนวน';
|
||||
$lang['sales_discount']='ส่วนลด %';
|
||||
$lang['sales_edit']='แก้ไข';
|
||||
$lang['sales_payment']='รูปแบบชำระเงิน';
|
||||
$lang['sales_edit_item']='แก้ไขสินค้า';
|
||||
$lang['sales_find_or_scan_item']='ค้นหาสินค้า';
|
||||
$lang['sales_find_or_scan_item_or_receipt']='ค้นหาสินค้า หรือ บิล';
|
||||
$lang['sales_select_customer']='เลือกลูกค้า (Optional)';
|
||||
$lang['sales_start_typing_item_name']='เริ่มต้นพิมพ์ชื่อสินค้า หรือ สแกนบาร์โค๊ด...';
|
||||
$lang['sales_start_typing_customer_name']='เริ่มต้นพิมพ์ชื่อลูกค้า...';
|
||||
$lang['sales_sub_total']='ยอดรวมหักภาษี ';
|
||||
$lang['sales_tax']='ภาษี';
|
||||
$lang['sales_comment']='หมายเหตุ';
|
||||
$lang['sales_unable_to_add_item']='ไม่สามารถเพิ่มสินค้าได้';
|
||||
$lang['sales_sale_for_customer']='ลูกค้า:';
|
||||
$lang['sales_remove_customer']='ลบลูกค้า';
|
||||
$lang['sales_error_editing_item']='แก้ไขสินค้าล้มเหลว';
|
||||
$lang['sales_complete_sale']='สำเร็จการขาย';
|
||||
$lang['sales_cancel_sale']='ยกเลิกการขาย';
|
||||
$lang['sales_add_payment']='เพิ่มบิล';
|
||||
$lang['sales_receipt']='บิลขาย';
|
||||
$lang['sales_id']='เลขที่ขาย';
|
||||
$lang['sales_sale_retail']='ขายปลีก';
|
||||
$lang['sales_wholesale']='ขายส่ง';
|
||||
$lang['sales_return']='คืน';
|
||||
$lang['sales_confirm_finish_sale'] = 'แน่ใจหรือไม่ที่จะสำเร็จการขาย? ไม่สามารถย้อนกลับได้.';
|
||||
$lang['sales_confirm_cancel_sale'] = 'แน่ใจหรือไม่ที่จะล้างรายการขาย? สินค้าทุกอย่างจะถูกลบจากบอร์ด.';
|
||||
$lang['sales_cash'] = 'เงินสด';
|
||||
$lang['sales_check'] = 'เช็ก';
|
||||
$lang['sales_debit'] = 'เดบิทการ์ด';
|
||||
$lang['sales_credit'] = 'เครดิทการ์ด';
|
||||
$lang['sales_giftcard'] = 'กิ๊ฟการ์ด';
|
||||
$lang['sales_amount_tendered'] = 'จำนวนประมูล';
|
||||
$lang['sales_change_due'] = 'เงินทอน';
|
||||
$lang['sales_payment_not_cover_total'] = ' ปริมาณการจ่ายที่ไม่เพียงพอกะยอดรวม';
|
||||
$lang['sales_transaction_failed'] = 'การดำเนินการขายล้มเหลว';
|
||||
$lang['sales_must_enter_numeric'] = 'จำนวนที่ถุกประมูลต้องใส่ข้อมุลที่เปนตัวเลข';
|
||||
$lang['sales_must_enter_numeric_giftcard'] = 'กิ๊ฟการ์ด ต้องใส่ตัวเลขเท่านั้น';
|
||||
$lang['sales_serial'] = 'Serial';
|
||||
$lang['sales_description_abbrv'] = 'Desc';
|
||||
$lang['sales_item_out_of_stock'] = 'สินค้าจำหน่ายหมด';
|
||||
$lang['sales_item_insufficient_of_stock'] = 'จำนวนสินค้าไม่เพียงพอ';
|
||||
$lang['sales_quantity_less_than_zero'] = 'คำเตือน ถ้าจำนวนของไม่เพียงพอกับความต้องการหรือไม่ตรงกับยอดในบันชี ก็สามารถทำการขายได้ แต่ต้องเชคปริมานสินค้าคงคลัง';
|
||||
$lang['sales_successfully_updated'] = 'อัพเดทการขายสมบูรณ์';
|
||||
$lang['sales_unsuccessfully_updated'] = 'อัพเดทการขายไม่สมบูรณ์';
|
||||
$lang['sales_edit_sale'] = 'แก้ไขการขาย';
|
||||
$lang['sales_employee'] = 'พนักงาน';
|
||||
$lang['sales_successfully_deleted'] = 'ลบการขายสมยูรณ์';
|
||||
$lang['sales_unsuccessfully_deleted'] = 'ลบการขายไม่สมยูรณ์';
|
||||
$lang['sales_delete_entire_sale'] = 'ลบการขายทั้งหมด';
|
||||
$lang['sales_delete_confirmation'] = 'แน่ใจหรือไม่ที่จะลบรายการขายนี้, ลบแล้วไม่สามารถเรียกกลับคืนใด้';
|
||||
$lang['sales_date'] = 'วันที่ขาย';
|
||||
$lang['sales_delete_successful'] = 'คุณลบการขายสำเร็จ';
|
||||
$lang['sales_delete_unsuccessful'] = 'คุณลบการขายไม่สำเร็จ';
|
||||
$lang['sales_suspend_sale'] = 'ระงับการขายชั่วคราว';
|
||||
$lang['sales_confirm_suspend_sale'] = 'แน่ใจหรือไม่ที่จะระงับการขาย?';
|
||||
$lang['sales_suspended_sales'] = 'การขายที่ถูกระงับ';
|
||||
$lang['sales_suspended_sale_id'] = 'รหัสการขายที่ถูกระงับ';
|
||||
$lang['sales_date'] = 'วันที่';
|
||||
$lang['sales_customer'] = 'ลูกค้า';
|
||||
$lang['sales_comments'] = 'หมายเหตุ';
|
||||
$lang['sales_unsuspend_and_delete'] = 'ยกเลิกการระงับ และ ลบ';
|
||||
$lang['sales_unsuspend'] = 'ยกเลิกการระงับ';
|
||||
$lang['sales_successfully_suspended_sale'] = 'การขายของคุณถูกระงับเรียบร้อย';
|
||||
$lang['sales_email_receipt'] = 'อีเมลบิล';
|
||||
?>
|
||||
34
application/language/th/suppliers_lang.php
Normal file
34
application/language/th/suppliers_lang.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
$lang['suppliers_new']='ผู้ผลิตรายใหม่';
|
||||
$lang['suppliers_supplier']='ผู้ผลิต';
|
||||
$lang['suppliers_update']='ปรับปรุงผู้ผลิต';
|
||||
$lang['suppliers_confirm_delete']='แน่ใจหรือไม่ที่จะลบผู้ผลิตที่ถููกเลือก?';
|
||||
$lang['suppliers_none_selected']='คุณยังไม่ได้เฃือกผู้ผลิตที่ต้องการลบ';
|
||||
$lang['suppliers_error_adding_updating'] = 'เพิ่ม/แก้ไข ผู้ผลิต ล้มเหลว';
|
||||
$lang['suppliers_successful_adding']='เพิ่มผู้ผลิตสำเร็จ';
|
||||
$lang['suppliers_successful_updating']='ปรับปรุงผู้ผลิตสำเร็จ';
|
||||
$lang['suppliers_successful_deleted']='ลบสำเร็จ';
|
||||
$lang['suppliers_one_or_multiple']='ผู้ผลิต';
|
||||
$lang['suppliers_cannot_be_deleted']='ลบผู้ผลิตที่ถูกเลือกไม่ได้, one or more of the selected suppliers has sales.';
|
||||
$lang['suppliers_basic_information']='ข้อมูลผู้ผลิต';
|
||||
$lang['suppliers_account_number']='บัญชี #';
|
||||
$lang['suppliers_company_name']='ชื่อบริษัท';
|
||||
$lang['suppliers_company_name_required'] = 'ชื่อบริษัทต้องกรอก';
|
||||
?>
|
||||
<?php
|
||||
$lang['suppliers_new']='ผู้ผลิตรายใหม่';
|
||||
$lang['suppliers_supplier']='ผู้ผลิต';
|
||||
$lang['suppliers_update']='ปรับปรุงผู้ผลิต';
|
||||
$lang['suppliers_confirm_delete']='แน่ใจหรือไม่ที่จะลบผู้ผลิตที่ถููกเลือก?';
|
||||
$lang['suppliers_none_selected']='คุณยังไม่ได้เฃือกผู้ผลิตที่ต้องการลบ';
|
||||
$lang['suppliers_error_adding_updating'] = 'เพิ่ม/แก้ไข ผู้ผลิต ล้มเหลว';
|
||||
$lang['suppliers_successful_adding']='เพิ่มผู้ผลิตสำเร็จ';
|
||||
$lang['suppliers_successful_updating']='ปรับปรุงผู้ผลิตสำเร็จ';
|
||||
$lang['suppliers_successful_deleted']='ลบสำเร็จ';
|
||||
$lang['suppliers_one_or_multiple']='ผู้ผลิต';
|
||||
$lang['suppliers_cannot_be_deleted']='ลบผู้ผลิตที่ถูกเลือกไม่ได้, one or more of the selected suppliers has sales.';
|
||||
$lang['suppliers_basic_information']='ข้อมูลผู้ผลิต';
|
||||
$lang['suppliers_account_number']='บัญชี #';
|
||||
$lang['suppliers_company_name']='ชื่อบริษัท';
|
||||
$lang['suppliers_company_name_required'] = 'ชื่อบริษัทต้องกรอก';
|
||||
?>
|
||||
@@ -125,6 +125,98 @@ class Receiving_lib
|
||||
|
||||
}
|
||||
|
||||
function add_item_unit($item_id,$quantity=1, $description=null)
|
||||
{
|
||||
//make sure item exists in database.
|
||||
if(!$this->CI->Item->exists($item_id))
|
||||
{
|
||||
//try to get item id given an item_number
|
||||
$item_id = $this->CI->Item->get_item_id($item_id);
|
||||
|
||||
if(!$item_id)
|
||||
return false;
|
||||
}
|
||||
|
||||
$related_item_number = $this->CI->Item_unit->get_info($item_id)->related_number;
|
||||
if($related_item_number!= null && !$this->CI->Item->is_warehouse_item_exist($related_item_number))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//Get items in the requisition so far.
|
||||
$items = $this->get_cart();
|
||||
|
||||
//We need to loop through all items in the cart.
|
||||
//If the item is already there, get it's key($updatekey).
|
||||
//We also need to get the next key that we are going to use in case we need to add the
|
||||
//item to the list. Since items can be deleted, we can't use a count. we use the highest key + 1.
|
||||
|
||||
$maxkey=0; //Highest key so far
|
||||
$itemalreadyinsale=FALSE; //We did not find the item yet.
|
||||
$insertkey=0; //Key to use for new entry.
|
||||
$updatekey=0; //Key to use to update(quantity)
|
||||
|
||||
foreach ($items as $item)
|
||||
{
|
||||
//We primed the loop so maxkey is 0 the first time.
|
||||
//Also, we have stored the key in the element itself so we can compare.
|
||||
//There is an array function to get the associated key for an element, but I like it better
|
||||
//like that!
|
||||
|
||||
if($maxkey <= $item['line'])
|
||||
{
|
||||
$maxkey = $item['line'];
|
||||
}
|
||||
|
||||
if($item['item_id']==$item_id)
|
||||
{
|
||||
$itemalreadyinsale=TRUE;
|
||||
$updatekey=$item['line'];
|
||||
}
|
||||
}
|
||||
|
||||
$insertkey=$maxkey+1;
|
||||
|
||||
|
||||
//array records are identified by $insertkey and item_id is just another field.
|
||||
$item = array(($insertkey)=>
|
||||
array(
|
||||
'item_id'=>$item_id,
|
||||
'line'=>$insertkey,
|
||||
'name'=>$this->CI->Item->get_info($item_id)->name,
|
||||
'description'=>$description!=null ? $description: $this->CI->Item->get_info($item_id)->description,
|
||||
'quantity'=>$quantity
|
||||
)
|
||||
);
|
||||
|
||||
$item[$insertkey]['unit_quantity']= $this->CI->Item_unit->get_info($item_id)->unit_quantity;
|
||||
$related_item_id = $this->CI->Item->get_item_id($related_item_number,'warehouse');
|
||||
if($related_item_id == null)
|
||||
{
|
||||
$related_item_id = $this->CI->Item->get_item_id($related_item_number,'sale_stock');
|
||||
if($related_item_id == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$item[$insertkey]['related_item'] = $this->CI->Item->get_info($related_item_id)->name;
|
||||
|
||||
//Item already exists
|
||||
if($itemalreadyinsale)
|
||||
{
|
||||
$items[$updatekey]['quantity']+=$quantity;
|
||||
}
|
||||
else
|
||||
{
|
||||
//add to existing array
|
||||
$items+=$item;
|
||||
}
|
||||
|
||||
$this->set_cart($items);
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
function edit_item($line,$description,$serialnumber,$quantity,$discount,$price)
|
||||
{
|
||||
$items = $this->get_cart();
|
||||
@@ -140,6 +232,18 @@ class Receiving_lib
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function edit_item_unit($line,$description,$quantity,$unit_quantity,$related_item)
|
||||
{
|
||||
$items = $this->get_cart();
|
||||
if(isset($items[$line]))
|
||||
{
|
||||
$items[$line]['quantity'] = $quantity;
|
||||
$this->set_cart($items);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function is_valid_receipt($receipt_receiving_id)
|
||||
{
|
||||
@@ -207,6 +311,19 @@ class Receiving_lib
|
||||
$this->set_supplier($this->CI->Receiving->get_supplier($receiving_id)->person_id);
|
||||
|
||||
}
|
||||
|
||||
function copy_entire_requisition($requisition_id)
|
||||
{
|
||||
$this->empty_cart();
|
||||
$this->delete_supplier();
|
||||
|
||||
foreach($this->CI->Receiving->get_requisition_items($requisition_id)->result() as $row)
|
||||
{
|
||||
$this->add_item_unit($row->item_id,$row->quantity_purchased,$row->description);
|
||||
}
|
||||
$this->set_supplier($this->CI->Receiving->get_supplier($requisition_id)->person_id);
|
||||
|
||||
}
|
||||
|
||||
function delete_item($line)
|
||||
{
|
||||
|
||||
@@ -157,7 +157,7 @@ class Sale_lib
|
||||
function get_mode()
|
||||
{
|
||||
if(!$this->CI->session->userdata('sale_mode'))
|
||||
$this->set_mode('sale');
|
||||
$this->set_mode('sale_retail');
|
||||
|
||||
return $this->CI->session->userdata('sale_mode');
|
||||
}
|
||||
@@ -169,16 +169,11 @@ class Sale_lib
|
||||
|
||||
function add_item($item_id,$quantity=1,$discount=0,$price=null,$description=null,$serialnumber=null)
|
||||
{
|
||||
//make sure item exists
|
||||
if(!$this->CI->Item->exists($item_id))
|
||||
{
|
||||
//try to get item id given an item_number
|
||||
$item_id = $this->CI->Item->get_item_id($item_id);
|
||||
|
||||
if(!$item_id)
|
||||
return false;
|
||||
}
|
||||
|
||||
//make sure item exists
|
||||
if($this->validate_item($item_id) == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//Alain Serialization and Description
|
||||
|
||||
@@ -250,14 +245,11 @@ class Sale_lib
|
||||
function out_of_stock($item_id)
|
||||
{
|
||||
//make sure item exists
|
||||
if(!$this->CI->Item->exists($item_id))
|
||||
{
|
||||
//try to get item id given an item_number
|
||||
$item_id = $this->CI->Item->get_item_id($item_id);
|
||||
if($this->validate_item($item_id) == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$item_id)
|
||||
return false;
|
||||
}
|
||||
|
||||
$item = $this->CI->Item->get_info($item_id);
|
||||
$quanity_added = $this->get_quantity_already_added($item_id);
|
||||
@@ -494,5 +486,28 @@ class Sale_lib
|
||||
|
||||
return to_currency_no_money($total);
|
||||
}
|
||||
|
||||
function validate_item(&$item_id)
|
||||
{
|
||||
//make sure item exists
|
||||
if(!$this->CI->Item->exists($item_id))
|
||||
{
|
||||
//try to get item id given an item_number
|
||||
$mode = $this->get_mode();
|
||||
$item_id;
|
||||
if($mode == 'sale_retail')
|
||||
{
|
||||
$item_id = $this->CI->Item->get_item_id($item_id, 'sale_stock');
|
||||
}
|
||||
elseif($mode == 'sale_wholesale')
|
||||
{
|
||||
$item_id = $this->CI->Item->get_item_id($item_id, 'warehouse');
|
||||
}
|
||||
|
||||
if(!$item_id)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -33,7 +33,7 @@ class Item extends CI_Model
|
||||
return $this->db->count_all_results();
|
||||
}
|
||||
|
||||
function get_all_filtered($low_inventory=0,$is_serialized=0,$no_description,$search_custom,$is_deleted)/**GARRISON MODIFIED 4/21/2013, Parq 131215 **/
|
||||
function get_all_filtered($low_inventory=0,$is_serialized=0,$no_description,$search_custom,$is_deleted,$stock_type)/**GARRISON MODIFIED 4/21/2013, Parq 131215 **/
|
||||
{
|
||||
$this->db->from('items');
|
||||
if ($low_inventory !=0 )
|
||||
@@ -48,10 +48,17 @@ class Item extends CI_Model
|
||||
{
|
||||
$this->db->where('description','');
|
||||
}
|
||||
|
||||
if($stock_type!='all')
|
||||
{
|
||||
$this->db->where('stock_type',$stock_type);
|
||||
}
|
||||
|
||||
|
||||
/**GARRISON SECTION ADDED 4/21/2013**/
|
||||
/**
|
||||
if ($search_custom!=0 )
|
||||
{
|
||||
if ($search_custom!=0 )
|
||||
{
|
||||
$this->db->like('custom1',$search);
|
||||
$this->db->or_like('custom2',$search);
|
||||
$this->db->or_like('custom3',$search);
|
||||
@@ -63,7 +70,7 @@ class Item extends CI_Model
|
||||
$this->db->or_like('custom9',$search);
|
||||
$this->db->or_like('custom10',$search);
|
||||
}
|
||||
**/
|
||||
**/
|
||||
/* Parq 131215 start*/
|
||||
if ($is_deleted !=0 )
|
||||
{
|
||||
@@ -110,12 +117,13 @@ class Item extends CI_Model
|
||||
/*
|
||||
Get an item id given an item number
|
||||
*/
|
||||
function get_item_id($item_number)
|
||||
function get_item_id($item_number, $stock_type='warehouse')
|
||||
{
|
||||
$this->db->from('items');
|
||||
$this->db->where('item_number',$item_number);
|
||||
$this->db->where('deleted',0); // Parq 131226
|
||||
|
||||
$this->db->where('deleted',0); // Parq 131226
|
||||
$this->db->where('stock_type',$stock_type);
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
if($query->num_rows()==1)
|
||||
@@ -223,19 +231,19 @@ class Item extends CI_Model
|
||||
}
|
||||
/** GARRISON ADDED 4/21/2013 **/
|
||||
//Search by description
|
||||
$this->db->from('items');
|
||||
$this->db->like('description', $search);
|
||||
$this->db->where('deleted',0);
|
||||
$this->db->order_by("description", "asc");
|
||||
$by_name = $this->db->get();
|
||||
foreach($by_name->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->name;
|
||||
}
|
||||
$this->db->from('items');
|
||||
$this->db->like('description', $search);
|
||||
$this->db->where('deleted',0);
|
||||
$this->db->order_by("description", "asc");
|
||||
$by_name = $this->db->get();
|
||||
foreach($by_name->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->name;
|
||||
}
|
||||
/** END GARRISON ADDED **/
|
||||
|
||||
/** GARRISON ADDED 4/22/2013 **/
|
||||
//Search by custom fields
|
||||
//Search by custom fields
|
||||
$this->db->from('items');
|
||||
$this->db->like('custom1', $search);
|
||||
$this->db->or_like('custom2', $search);
|
||||
@@ -246,13 +254,13 @@ class Item extends CI_Model
|
||||
$this->db->or_like('custom7', $search);
|
||||
$this->db->or_like('custom8', $search);
|
||||
$this->db->or_like('custom9', $search);
|
||||
$this->db->or_like('custom10', $search);
|
||||
$this->db->where('deleted',0);
|
||||
$this->db->order_by("name", "asc");
|
||||
$by_name = $this->db->get();
|
||||
foreach($by_name->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->name;
|
||||
$this->db->or_like('custom10', $search);
|
||||
$this->db->where('deleted',0);
|
||||
$this->db->order_by("name", "asc");
|
||||
$by_name = $this->db->get();
|
||||
foreach($by_name->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->name;
|
||||
}
|
||||
/** END GARRISON ADDED **/
|
||||
|
||||
@@ -265,12 +273,13 @@ class Item extends CI_Model
|
||||
|
||||
}
|
||||
|
||||
function get_item_search_suggestions($search,$limit=25)
|
||||
function get_item_search_suggestions($search,$limit=25,$stock_type='warehouse')
|
||||
{
|
||||
$suggestions = array();
|
||||
|
||||
$this->db->from('items');
|
||||
$this->db->where('deleted',0);
|
||||
$this->db->where('stock_type',$stock_type);
|
||||
$this->db->like('name', $search);
|
||||
$this->db->order_by("name", "asc");
|
||||
$by_name = $this->db->get();
|
||||
@@ -281,6 +290,7 @@ class Item extends CI_Model
|
||||
|
||||
$this->db->from('items');
|
||||
$this->db->where('deleted',0);
|
||||
$this->db->where('stock_type',$stock_type);
|
||||
$this->db->like('item_number', $search);
|
||||
$this->db->order_by("item_number", "asc");
|
||||
$by_item_number = $this->db->get();
|
||||
@@ -290,20 +300,22 @@ class Item extends CI_Model
|
||||
}
|
||||
/** GARRISON ADDED 4/21/2013 **/
|
||||
//Search by description
|
||||
$this->db->from('items');
|
||||
$this->db->where('deleted',0);
|
||||
$this->db->like('description', $search);
|
||||
$this->db->order_by("description", "asc");
|
||||
$by_description = $this->db->get();
|
||||
foreach($by_description->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->item_id.'|'.$row->name;
|
||||
}
|
||||
$this->db->from('items');
|
||||
$this->db->where('deleted',0);
|
||||
$this->db->where('stock_type',$stock_type);
|
||||
$this->db->like('description', $search);
|
||||
$this->db->order_by("description", "asc");
|
||||
$by_description = $this->db->get();
|
||||
foreach($by_description->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->item_id.'|'.$row->name;
|
||||
}
|
||||
/** END GARRISON ADDED **/
|
||||
/** GARRISON ADDED 4/22/2013 **/
|
||||
//Search by custom fields
|
||||
$this->db->from('items');
|
||||
//Search by custom fields
|
||||
/*$this->db->from('items');
|
||||
$this->db->where('deleted',0);
|
||||
$this->db->where('stock_type',$stock_type);
|
||||
$this->db->like('custom1', $search);
|
||||
$this->db->or_like('custom2', $search);
|
||||
$this->db->or_like('custom3', $search);
|
||||
@@ -313,13 +325,13 @@ class Item extends CI_Model
|
||||
$this->db->or_like('custom7', $search);
|
||||
$this->db->or_like('custom8', $search);
|
||||
$this->db->or_like('custom9', $search);
|
||||
$this->db->or_like('custom10', $search);
|
||||
$this->db->order_by("name", "asc");
|
||||
$by_description = $this->db->get();
|
||||
foreach($by_description->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->item_id.'|'.$row->name;
|
||||
}
|
||||
$this->db->or_like('custom10', $search);
|
||||
$this->db->order_by("name", "asc");
|
||||
$by_description = $this->db->get();
|
||||
foreach($by_description->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->item_id.'|'.$row->name;
|
||||
}*/
|
||||
/** END GARRISON ADDED **/
|
||||
|
||||
//only return $limit suggestions
|
||||
@@ -349,40 +361,40 @@ class Item extends CI_Model
|
||||
}
|
||||
|
||||
/** GARRISON ADDED 5/18/2013 **/
|
||||
function get_location_suggestions($search)
|
||||
{
|
||||
$suggestions = array();
|
||||
$this->db->distinct();
|
||||
$this->db->select('location');
|
||||
$this->db->from('items');
|
||||
$this->db->like('location', $search);
|
||||
$this->db->where('deleted', 0);
|
||||
$this->db->order_by("location", "asc");
|
||||
$by_category = $this->db->get();
|
||||
foreach($by_category->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->location;
|
||||
}
|
||||
|
||||
return $suggestions;
|
||||
}
|
||||
function get_location_suggestions($search)
|
||||
{
|
||||
$suggestions = array();
|
||||
$this->db->distinct();
|
||||
$this->db->select('location');
|
||||
$this->db->from('items');
|
||||
$this->db->like('location', $search);
|
||||
$this->db->where('deleted', 0);
|
||||
$this->db->order_by("location", "asc");
|
||||
$by_category = $this->db->get();
|
||||
foreach($by_category->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->location;
|
||||
}
|
||||
|
||||
return $suggestions;
|
||||
}
|
||||
|
||||
function get_custom1_suggestions($search)
|
||||
{
|
||||
$suggestions = array();
|
||||
$this->db->distinct();
|
||||
$this->db->select('custom1');
|
||||
$this->db->from('items');
|
||||
$this->db->like('custom1', $search);
|
||||
$this->db->where('deleted', 0);
|
||||
$this->db->order_by("custom1", "asc");
|
||||
$by_category = $this->db->get();
|
||||
foreach($by_category->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->custom1;
|
||||
}
|
||||
|
||||
return $suggestions;
|
||||
function get_custom1_suggestions($search)
|
||||
{
|
||||
$suggestions = array();
|
||||
$this->db->distinct();
|
||||
$this->db->select('custom1');
|
||||
$this->db->from('items');
|
||||
$this->db->like('custom1', $search);
|
||||
$this->db->where('deleted', 0);
|
||||
$this->db->order_by("custom1", "asc");
|
||||
$by_category = $this->db->get();
|
||||
foreach($by_category->result() as $row)
|
||||
{
|
||||
$suggestions[]=$row->custom1;
|
||||
}
|
||||
|
||||
return $suggestions;
|
||||
}
|
||||
|
||||
function get_custom2_suggestions($search)
|
||||
@@ -583,5 +595,27 @@ class Item extends CI_Model
|
||||
|
||||
return $this->db->get();
|
||||
}
|
||||
|
||||
function is_sale_store_item_exist($item_number)
|
||||
{
|
||||
$this->db->from('items');
|
||||
$this->db->where('item_number',$item_number);
|
||||
$this->db->where('stock_type','sale_stock');
|
||||
$this->db->where('deleted',0);
|
||||
|
||||
$query = $this->db->get();
|
||||
return ($query->num_rows()==1);
|
||||
}
|
||||
|
||||
function is_warehouse_item_exist($item_number)
|
||||
{
|
||||
$this->db->from('items');
|
||||
$this->db->where('item_number',$item_number);
|
||||
$this->db->where('stock_type','warehouse');
|
||||
$this->db->where('deleted',0);
|
||||
|
||||
$query = $this->db->get();
|
||||
return ($query->num_rows()==1);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
60
application/models/item_unit.php
Normal file
60
application/models/item_unit.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
class Item_unit extends CI_Model
|
||||
{
|
||||
/*
|
||||
Gets item info for a particular item
|
||||
*/
|
||||
function get_info($item_id)
|
||||
{
|
||||
$this->db->from('item_unit');
|
||||
$this->db->where('item_id',$item_id);
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
if($query->num_rows()==1)
|
||||
{
|
||||
return $query->row();
|
||||
}
|
||||
else
|
||||
{
|
||||
//Get empty base parent object, as $item_id is NOT an item
|
||||
$item_obj=new stdClass();
|
||||
|
||||
//Get all the fields from items table
|
||||
$fields = $this->db->list_fields('item_unit');
|
||||
|
||||
foreach ($fields as $field)
|
||||
{
|
||||
$item_obj->$field='';
|
||||
}
|
||||
|
||||
return $item_obj;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Inserts or updates an item's unit
|
||||
*/
|
||||
function save(&$items_unit_data, $item_id)
|
||||
{
|
||||
//Run these queries as a transaction, we want to make sure we do all or nothing
|
||||
$this->db->trans_start();
|
||||
|
||||
$this->delete($item_id);
|
||||
|
||||
$this->db->insert('item_unit',$items_unit_data);
|
||||
|
||||
|
||||
$this->db->trans_complete();
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
Deletes unit given an item
|
||||
*/
|
||||
function delete($item_id)
|
||||
{
|
||||
return $this->db->delete('item_unit', array('item_id' => $item_id));
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -1,12 +1,19 @@
|
||||
<?php
|
||||
class Receiving extends CI_Model
|
||||
{
|
||||
public function get_info($receiving_id)
|
||||
function get_info($receiving_id)
|
||||
{
|
||||
$this->db->from('receivings');
|
||||
$this->db->where('receiving_id',$receiving_id);
|
||||
return $this->db->get();
|
||||
}
|
||||
|
||||
function get_requisition_info($requisition_id)
|
||||
{
|
||||
$this->db->from('requisitions');
|
||||
$this->db->where('requisition_id',$requisition_id);
|
||||
return $this->db->get();
|
||||
}
|
||||
|
||||
function exists($receiving_id)
|
||||
{
|
||||
@@ -83,12 +90,182 @@ class Receiving extends CI_Model
|
||||
return $receiving_id;
|
||||
}
|
||||
|
||||
function save_requisition ($items,$employee_id,$comment,$receiving_id=false)
|
||||
{
|
||||
if(count($items)==0)
|
||||
return -1;
|
||||
|
||||
$requisition_data = array(
|
||||
'employee_id'=>$employee_id,
|
||||
'comment'=>$comment
|
||||
);
|
||||
|
||||
//Run these queries as a transaction, we want to make sure we do all or nothing
|
||||
$this->db->trans_start();
|
||||
|
||||
$this->db->insert('requisitions',$requisition_data);
|
||||
|
||||
$requisition_id = $this->db->insert_id();
|
||||
|
||||
|
||||
foreach($items as $line=>$item)
|
||||
{
|
||||
$cur_item_info = $this->Item->get_info($item['item_id']);
|
||||
$related_item_number = $this->Item_unit->get_info($item['item_id'])->related_number;
|
||||
$related_item_unit_quantity = $this->Item_unit->get_info($item['item_id'])->unit_quantity;
|
||||
$related_item_total_quantity = $item['quantity']*$related_item_unit_quantity;
|
||||
$related_item_id;
|
||||
//Update stock quantity
|
||||
$related_item_data = array();
|
||||
if((strlen($related_item_number) == 0) or ($related_item_number == $cur_item_info->item_number))
|
||||
{
|
||||
if($this->Item->is_sale_store_item_exist($cur_item_info->item_number))
|
||||
{
|
||||
$related_item_id = $this->Item->get_item_id($cur_item_info->item_number,'sale_stock');
|
||||
$related_item_data = array('quantity'=>$this->Item->get_info($related_item_id)->quantity + $related_item_total_quantity);
|
||||
$this->Item->save($related_item_data,$related_item_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
$related_item_data = array(
|
||||
'name'=>$cur_item_info->name,
|
||||
'description'=>$cur_item_info->description,
|
||||
'category'=>$cur_item_info->category,
|
||||
'supplier_id'=>$cur_item_info->supplier_id,
|
||||
'item_number'=>$cur_item_info->item_number,
|
||||
'cost_price'=>$cur_item_info->cost_price,
|
||||
'unit_price'=>$cur_item_info->unit_price,
|
||||
'quantity'=>$related_item_total_quantity,
|
||||
'reorder_level'=>$cur_item_info->reorder_level,
|
||||
'location'=>$cur_item_info->location,
|
||||
'allow_alt_description'=>$cur_item_info->allow_alt_description,
|
||||
'is_serialized'=>$cur_item_info->is_serialized,
|
||||
'stock_type'=>'sale_stock',
|
||||
'custom1'=>$cur_item_info->custom1, /**GARRISON ADDED 4/21/2013**/
|
||||
'custom2'=>$cur_item_info->custom2,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom3'=>$cur_item_info->custom3,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom4'=>$cur_item_info->custom4,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom5'=>$cur_item_info->custom5,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom6'=>$cur_item_info->custom6,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom7'=>$cur_item_info->custom7,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom8'=>$cur_item_info->custom8,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom9'=>$cur_item_info->custom9,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom10'=>$cur_item_info->custom10/**GARRISON ADDED 4/21/2013**/
|
||||
);
|
||||
$this->Item->save($related_item_data);
|
||||
$related_item_id = $related_item_data[item_id];
|
||||
}
|
||||
|
||||
}
|
||||
else if($this->Item->is_sale_store_item_exist($related_item_number))
|
||||
{
|
||||
$related_item_id = $this->Item->get_item_id($related_item_number,'sale_stock');
|
||||
$related_item_data = array('quantity'=>$this->Item->get_info($related_item_id)->quantity + $related_item_total_quantity);
|
||||
$this->Item->save($related_item_data,$related_item_id);
|
||||
}
|
||||
else if($this->Item->is_warehouse_item_exist($related_item_number))
|
||||
{
|
||||
$related_item_id = $this->Item->get_item_id($related_item_number,'warehouse');
|
||||
$item_data_temp= $this->Item->get_info($related_item_id,'warehouse');
|
||||
$related_item_data = array(
|
||||
'name'=>$item_data_temp->name,
|
||||
'description'=>$item_data_temp->description,
|
||||
'category'=>$item_data_temp->category,
|
||||
'supplier_id'=>$item_data_temp->supplier_id,
|
||||
'item_number'=>$item_data_temp->item_number,
|
||||
'cost_price'=>$item_data_temp->cost_price,
|
||||
'unit_price'=>$item_data_temp->unit_price,
|
||||
'quantity'=>$related_item_total_quantity,
|
||||
'reorder_level'=>$item_data_temp->reorder_level,
|
||||
'location'=>$item_data_temp->location,
|
||||
'allow_alt_description'=>$item_data_temp->allow_alt_description,
|
||||
'is_serialized'=>$item_data_temp->is_serialized,
|
||||
'stock_type'=>'sale_stock',
|
||||
'custom1'=>$item_data_temp->custom1, /**GARRISON ADDED 4/21/2013**/
|
||||
'custom2'=>$item_data_temp->custom2,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom3'=>$item_data_temp->custom3,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom4'=>$item_data_temp->custom4,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom5'=>$item_data_temp->custom5,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom6'=>$item_data_temp->custom6,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom7'=>$item_data_temp->custom7,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom8'=>$item_data_temp->custom8,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom9'=>$item_data_temp->custom9,/**GARRISON ADDED 4/21/2013**/
|
||||
'custom10'=>$item_data_temp->custom10/**GARRISON ADDED 4/21/2013**/
|
||||
);
|
||||
$this->Item->save($related_item_data);
|
||||
$related_item_id = $related_item_data[item_id];
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$item_data = array('quantity'=>$cur_item_info->quantity - $item['quantity']);
|
||||
$this->Item->save($item_data,$item['item_id']);
|
||||
|
||||
//update requisition item
|
||||
$requisition_items_data = array
|
||||
(
|
||||
'requisition_id'=>$requisition_id,
|
||||
'item_id'=>$item['item_id'],
|
||||
'line'=>$item['line'],
|
||||
'requisition_quantity'=>$item['quantity'],
|
||||
'related_item_id'=>$related_item_id,
|
||||
'related_item_quantity'=>$related_item_unit_quantity,
|
||||
'related_item_total_quantity' => $item['quantity']*$related_item_unit_quantity
|
||||
);
|
||||
|
||||
$this->db->insert('requisitions_items',$requisition_items_data);
|
||||
|
||||
//update inventory
|
||||
$qty_recv = $item['quantity']*(-1);
|
||||
$recv_remarks ='REQS '.$requisition_id;
|
||||
$inv_data = array
|
||||
(
|
||||
'trans_date'=>date('Y-m-d H:i:s'),
|
||||
'trans_items'=>$item['item_id'],
|
||||
'trans_user'=>$employee_id,
|
||||
'trans_comment'=>$recv_remarks,
|
||||
'trans_inventory'=>$qty_recv
|
||||
);
|
||||
$this->Inventory->insert($inv_data);
|
||||
|
||||
$related_item_qty_recv = $requisition_items_data['related_item_total_quantity'];
|
||||
$recv_remarks ='REQS '.$requisition_id;
|
||||
$related_item_inv_data = array
|
||||
(
|
||||
'trans_date'=>date('Y-m-d H:i:s'),
|
||||
'trans_items'=>$related_item_id,
|
||||
'trans_user'=>$employee_id,
|
||||
'trans_comment'=>$recv_remarks,
|
||||
'trans_inventory'=>$related_item_qty_recv
|
||||
);
|
||||
$this->Inventory->insert($related_item_inv_data);
|
||||
|
||||
}
|
||||
$this->db->trans_complete();
|
||||
|
||||
if ($this->db->trans_status() === FALSE)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
return $requisition_id;
|
||||
}
|
||||
|
||||
function get_receiving_items($receiving_id)
|
||||
{
|
||||
$this->db->from('receivings_items');
|
||||
$this->db->where('receiving_id',$receiving_id);
|
||||
return $this->db->get();
|
||||
}
|
||||
|
||||
function get_requisition_items($requisition_id)
|
||||
{
|
||||
$this->db->from('requisitions_items');
|
||||
$this->db->where('requisition_id',$requisition_id);
|
||||
return $this->db->get();
|
||||
}
|
||||
|
||||
function get_supplier($receiving_id)
|
||||
{
|
||||
@@ -112,7 +289,18 @@ class Receiving extends CI_Model
|
||||
INNER JOIN ".$this->db->dbprefix('items')." ON ".$this->db->dbprefix('receivings_items').'.item_id='.$this->db->dbprefix('items').'.item_id'."
|
||||
GROUP BY receiving_id, item_id, line)");
|
||||
}
|
||||
|
||||
|
||||
public function create_requisition_items_temp_table()
|
||||
{
|
||||
$this->db->query("CREATE TEMPORARY TABLE ".$this->db->dbprefix('requisition_items_temp')."
|
||||
(SELECT date(requisition_time) as requisition_date, ".$this->db->dbprefix('requisitions_items').".requisition_id, comment, employee_id,
|
||||
".$this->db->dbprefix('items').".item_id, related_item_id, requisition_quantity, related_item_quantity,
|
||||
related_item_total_quantity, ".$this->db->dbprefix('requisitions_items').".line as line
|
||||
FROM ".$this->db->dbprefix('requisitions_items')."
|
||||
INNER JOIN ".$this->db->dbprefix('requisitions')." ON ".$this->db->dbprefix('requisitions_items').'.requisition_id='.$this->db->dbprefix('requisitions').'.requisition_id'."
|
||||
INNER JOIN ".$this->db->dbprefix('items')." ON ".$this->db->dbprefix('requisitions_items').'.item_id='.$this->db->dbprefix('items').'.item_id'."
|
||||
GROUP BY requisition_id, item_id, line)");
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -21,11 +21,11 @@ class Detailed_receivings extends Report
|
||||
$this->db->join('people as employee', 'receivings_items_temp.employee_id = employee.person_id');
|
||||
$this->db->join('people as supplier', 'receivings_items_temp.supplier_id = supplier.person_id', 'left');
|
||||
$this->db->where('receiving_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
if ($inputs['receiving_type'] == 'receiving')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
elseif ($inputs['receiving_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
@@ -53,11 +53,11 @@ class Detailed_receivings extends Report
|
||||
$this->db->select('sum(total) as total');
|
||||
$this->db->from('receivings_items_temp');
|
||||
$this->db->where('receiving_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
if ($inputs['receiving_type'] == 'receiving')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
elseif ($inputs['receiving_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
|
||||
62
application/models/reports/detailed_requisition.php
Normal file
62
application/models/reports/detailed_requisition.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
require_once("report.php");
|
||||
class Detailed_requisition extends Report
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function getDataColumns()
|
||||
{
|
||||
return array('summary' => array($this->lang->line('reports_requisition_id'),
|
||||
$this->lang->line('reports_date'),
|
||||
$this->lang->line('reports_requisition_by'),
|
||||
$this->lang->line('reports_comments')),
|
||||
'details' => array($this->lang->line('reports_requisition_item'),
|
||||
$this->lang->line('reports_requisition_item_quantity'),
|
||||
$this->lang->line('reports_requisition_related_item'),
|
||||
$this->lang->line('reports_requisition_related_item_unit_quantity'),
|
||||
$this->lang->line('reports_requisition_related_item_total_quantity'))
|
||||
);
|
||||
}
|
||||
|
||||
public function getData(array $inputs)
|
||||
{
|
||||
$this->db->select('requisition_id, requisition_date, CONCAT(employee.first_name," ",employee.last_name) as employee_name, comment', false);
|
||||
$this->db->from('requisition_items_temp');
|
||||
$this->db->join('people as employee', 'requisition_items_temp.employee_id = employee.person_id');
|
||||
$this->db->where('requisition_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
|
||||
$this->db->group_by('requisition_id');
|
||||
$this->db->order_by('requisition_date');
|
||||
|
||||
$data = array();
|
||||
$data['summary'] = $this->db->get()->result_array();
|
||||
$data['details'] = array();
|
||||
|
||||
foreach($data['summary'] as $key=>$value)
|
||||
{
|
||||
$this->db->select('name, requisition_quantity, related_item_id, related_item_quantity, related_item_total_quantity');
|
||||
$this->db->from('requisition_items_temp');
|
||||
$this->db->join('items', 'requisition_items_temp.item_id = items.item_id');
|
||||
$this->db->where('requisition_id = '.$value['requisition_id']);
|
||||
$data['details'][$key] = $this->db->get()->result_array();
|
||||
|
||||
foreach($data['details'][$key] as $arr_index=>$deatil_reqs)
|
||||
{
|
||||
$related_item_name = $this->Item->get_info($deatil_reqs['related_item_id'])->name;
|
||||
$data['details'][$key][$arr_index]['related_item_id'] = $related_item_name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getSummaryData(array $inputs)
|
||||
{
|
||||
//Do nothing
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -39,14 +39,20 @@ class Detailed_sales extends Report
|
||||
$this->db->join('people as employee', 'sales_items_temp.employee_id = employee.person_id');
|
||||
$this->db->join('people as customer', 'sales_items_temp.customer_id = customer.person_id', 'left');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
$this->db->group_by('sale_id');
|
||||
$this->db->order_by('sale_date');
|
||||
|
||||
@@ -71,14 +77,20 @@ class Detailed_sales extends Report
|
||||
$this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit');
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ abstract class Report extends CI_Model
|
||||
//Create our temp tables to work with the data in our report
|
||||
$this->Sale->create_sales_items_temp_table();
|
||||
$this->Receiving->create_receivings_items_temp_table();
|
||||
$this->Receiving->create_requisition_items_temp_table();
|
||||
}
|
||||
|
||||
//Returns the column names used for the report
|
||||
|
||||
@@ -20,14 +20,20 @@ class Specific_customer extends Report
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->join('people', 'sales_items_temp.employee_id = people.person_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and customer_id='.$inputs['customer_id']);
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
$this->db->group_by('sale_id');
|
||||
$this->db->order_by('sale_date');
|
||||
|
||||
@@ -52,14 +58,20 @@ class Specific_customer extends Report
|
||||
$this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit');
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and customer_id='.$inputs['customer_id']);
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,14 +21,20 @@ class Specific_employee extends Report
|
||||
$this->db->join('people', 'sales_items_temp.customer_id = people.person_id', 'left');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and employee_id='.$inputs['employee_id']);
|
||||
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
|
||||
$this->db->group_by('sale_id');
|
||||
$this->db->order_by('sale_date');
|
||||
@@ -54,14 +60,20 @@ class Specific_employee extends Report
|
||||
$this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit');
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and employee_id='.$inputs['employee_id']);
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'sale_stock\'');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'warehouse\'');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,14 +18,20 @@ class Summary_categories extends Report
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->join('items', 'sales_items_temp.item_id = items.item_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
$this->db->group_by('category');
|
||||
$this->db->order_by('category');
|
||||
|
||||
@@ -38,14 +44,20 @@ class Summary_categories extends Report
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->join('items', 'sales_items_temp.item_id = items.item_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'sale_stock\'');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'warehouse\'');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
|
||||
@@ -19,14 +19,20 @@ class Summary_customers extends Report
|
||||
$this->db->join('customers', 'customers.person_id = sales_items_temp.customer_id');
|
||||
$this->db->join('people', 'customers.person_id = people.person_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
$this->db->group_by('customer_id');
|
||||
$this->db->order_by('last_name');
|
||||
|
||||
@@ -40,14 +46,20 @@ class Summary_customers extends Report
|
||||
$this->db->join('customers', 'customers.person_id = sales_items_temp.customer_id');
|
||||
$this->db->join('people', 'customers.person_id = people.person_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,14 +17,20 @@ class Summary_discounts extends Report
|
||||
$this->db->select('CONCAT(discount_percent, "%") as discount_percent, count(*) as count', false);
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and discount_percent > 0');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
$this->db->group_by('sales_items_temp.discount_percent');
|
||||
$this->db->order_by('discount_percent');
|
||||
return $this->db->get()->result_array();
|
||||
@@ -35,14 +41,20 @@ class Summary_discounts extends Report
|
||||
$this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax,sum(profit) as profit');
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'sale_stock\'');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'warehouse\'');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,14 +19,20 @@ class Summary_employees extends Report
|
||||
$this->db->join('employees', 'employees.person_id = sales_items_temp.employee_id');
|
||||
$this->db->join('people', 'employees.person_id = people.person_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
$this->db->group_by('employee_id');
|
||||
$this->db->order_by('last_name');
|
||||
|
||||
@@ -40,14 +46,20 @@ class Summary_employees extends Report
|
||||
$this->db->join('employees', 'employees.person_id = sales_items_temp.employee_id');
|
||||
$this->db->join('people', 'employees.person_id = people.person_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'sale_stock\'');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'warehouse\'');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
|
||||
@@ -18,14 +18,20 @@ class Summary_items extends Report
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->join('items', 'sales_items_temp.item_id = items.item_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
$this->db->group_by('items.item_id');
|
||||
$this->db->order_by('name');
|
||||
|
||||
@@ -38,14 +44,20 @@ class Summary_items extends Report
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->join('items', 'sales_items_temp.item_id = items.item_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'sale_stock\'');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'warehouse\'');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,14 +18,20 @@ class Summary_payments extends Report
|
||||
$this->db->from('sales_payments');
|
||||
$this->db->join('sales', 'sales.sale_id=sales_payments.sale_id');
|
||||
$this->db->where('date(sale_time) BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('payment_amount > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('payment_amount < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
$this->db->group_by("payment_type");
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
@@ -36,14 +42,20 @@ class Summary_payments extends Report
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->join('items', 'sales_items_temp.item_id = items.item_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'sale_stock\'');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'warehouse\'');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,15 +16,21 @@ class Summary_sales extends Report
|
||||
{
|
||||
$this->db->select('sale_date, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax,sum(profit) as profit');
|
||||
$this->db->from('sales_items_temp');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$this->db->group_by('sale_date');
|
||||
$this->db->having('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
$this->db->order_by('sale_date');
|
||||
@@ -36,14 +42,20 @@ class Summary_sales extends Report
|
||||
$this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax,sum(profit) as profit');
|
||||
$this->db->from('sales_items_temp');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'sale_stock\'');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'warehouse\'');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
|
||||
|
||||
@@ -19,14 +19,20 @@ class Summary_suppliers extends Report
|
||||
$this->db->join('suppliers', 'suppliers.person_id = sales_items_temp.supplier_id');
|
||||
$this->db->join('people', 'suppliers.person_id = people.person_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
$this->db->group_by('supplier_id');
|
||||
$this->db->order_by('last_name');
|
||||
|
||||
@@ -40,15 +46,20 @@ class Summary_suppliers extends Report
|
||||
$this->db->join('suppliers', 'suppliers.person_id = sales_items_temp.supplier_id');
|
||||
$this->db->join('people', 'suppliers.person_id = people.person_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'sale_stock\'');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type = \'warehouse\'');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,14 +51,20 @@ class Summary_taxes extends Report
|
||||
$this->db->join('items', 'sales_items_temp.item_id = items.item_id');
|
||||
$this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"');
|
||||
|
||||
if ($inputs['sale_type'] == 'sales')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
if ($inputs['sale_type'] == 'sales_retail')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'sale_stock');
|
||||
}
|
||||
elseif($inputs['sale_type'] == 'sales_wholesale')
|
||||
{
|
||||
$this->db->where('quantity_purchased > 0');
|
||||
$this->db->where('sale_type', 'warehouse');
|
||||
}
|
||||
elseif ($inputs['sale_type'] == 'returns')
|
||||
{
|
||||
$this->db->where('quantity_purchased < 0');
|
||||
}
|
||||
|
||||
return $this->db->get()->row_array();
|
||||
}
|
||||
|
||||
@@ -148,7 +148,8 @@ echo form_open('config/save/',array('id'=>'config_form'));
|
||||
'ru' => 'Russian',
|
||||
'nl-BE' => 'Dutch',
|
||||
'zh' => 'Chinese',
|
||||
'id' => 'Indonesia'
|
||||
'id' => 'Indonesia',
|
||||
'th' => 'Thailand'
|
||||
),
|
||||
$this->config->item('language'));
|
||||
?>
|
||||
|
||||
@@ -159,8 +159,37 @@ echo form_open('items/save/'.$item_info->item_id,array('id'=>'item_form'));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('items_unit_quantity').':', 'unit_quantity',array('class'=>'wide')); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_input(array(
|
||||
'name'=>'unit_quantity',
|
||||
'id'=>'unit_quantity',
|
||||
'value'=>($item_unit_info->unit_quantity) ? $item_unit_info->unit_quantity : 1)
|
||||
);?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('items_related_number').':', 'related_number',array('class'=>'wide')); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_input(array(
|
||||
'name'=>'related_number',
|
||||
'id'=>'related_number',
|
||||
'value'=>$item_unit_info->related_number)
|
||||
);?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='form_field'>
|
||||
<?php
|
||||
echo form_hidden('stock_type',$stock_type==null ? 'warehouse' : $stock_type);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('items_allow_alt_description').':', 'allow_alt_description',array('class'=>'wide')); ?>
|
||||
<?php echo form_label($this->lang->line('items_allow_alt_desciption').':', 'allow_alt_description',array('class'=>'wide')); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_checkbox(array(
|
||||
'name'=>'allow_alt_description',
|
||||
@@ -403,7 +432,28 @@ $(document).ready(function()
|
||||
$("#custom10").search();
|
||||
/** END GARRISON ADDED **/
|
||||
|
||||
|
||||
//custom function. I leave this function as an example for creating JS custom function
|
||||
//Please note that this function is not used
|
||||
$.validator.addMethod(
|
||||
"relatedItemNumber",
|
||||
function(value)
|
||||
{
|
||||
var site_url = "<?php echo site_url('items/is_sale_store_item');?>";
|
||||
var ajax_return_result;
|
||||
jQuery.ajax({
|
||||
mode: "abort",
|
||||
url: site_url+"/"+value,
|
||||
type: "get",
|
||||
success: function(result) {
|
||||
ajax_return_result = result;
|
||||
},
|
||||
async: false
|
||||
});
|
||||
|
||||
return ajax_return_result;
|
||||
},
|
||||
"relatedItemNumber failed");
|
||||
|
||||
$('#item_form').validate({
|
||||
submitHandler:function(form)
|
||||
{
|
||||
@@ -454,6 +504,7 @@ $(document).ready(function()
|
||||
required:true,
|
||||
number:true
|
||||
}
|
||||
|
||||
},
|
||||
messages:
|
||||
{
|
||||
|
||||
@@ -143,8 +143,10 @@ function show_hide_search_filter(search_filter_section, switchImgTag) {
|
||||
<?php echo form_checkbox(array('name'=>'no_description','id'=>'no_description','value'=>1,'checked'=> isset($no_description)? ( ($no_description)? 1 : 0) : 0)).' | ';?>
|
||||
<?php echo form_label($this->lang->line('items_search_custom_items').' '.':', 'search_custom');//GARRISON ADDED 4/21/2013?>
|
||||
<?php echo form_checkbox(array('name'=>'search_custom','id'=>'search_custom','value'=>1,'checked'=> isset($search_custom)? ( ($search_custom)? 1 : 0) : 0)).' | ';//GARRISON ADDED 4/21/2013?>
|
||||
<?php echo form_label($this->lang->line('items_is_deleted').' '.':', 'is_deleted');// Parq 131215?>
|
||||
<?php echo form_checkbox(array('name'=>'is_deleted','id'=>'is_deleted','value'=>1,'checked'=> isset($is_deleted)? ( ($is_deleted)? 1 : 0) : 0)).' | ';// Parq 131215?>
|
||||
<?php echo form_label($this->lang->line('items_stock_type').' '.':', 'stock_type');?>
|
||||
<?php $stock_type_array = array('all'=>'All','sale_stock'=>$this->lang->line('items_stock_type_sale'),'warehouse'=>$this->lang->line('items_stock_type_warehouse'));
|
||||
echo form_dropdown('stock_type',$stock_type_array,$stock_type,'onchange="$(\'#items_filter_form\').submit();"'); ?>
|
||||
</form>
|
||||
<input type="hidden" name="search_section_state" id="search_section_state" value="<?php echo isset($search_section_state)? ( ($search_section_state)? 'block' : 'none') : 'none';?>" />
|
||||
</form>
|
||||
</div>
|
||||
@@ -163,8 +165,8 @@ function show_hide_search_filter(search_filter_section, switchImgTag) {
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="table_holder">
|
||||
<div id="table_holder" style="font-size:14px">
|
||||
<?php echo $manage_table; ?>
|
||||
</div>
|
||||
<div id="feedback_bar"></div>
|
||||
<?php $this->load->view("partial/footer"); ?>
|
||||
<?php $this->load->view("partial/footer"); ?>
|
||||
@@ -20,7 +20,7 @@ if(isset($error))
|
||||
<label id="item_label" for="item">
|
||||
|
||||
<?php
|
||||
if($mode=='receive')
|
||||
if($mode=='receive' or $mode=='requisition')
|
||||
{
|
||||
echo $this->lang->line('recvs_find_or_scan_item');
|
||||
}
|
||||
@@ -45,14 +45,32 @@ if(isset($error))
|
||||
<table id="register">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('common_delete'); ?></th>
|
||||
|
||||
<th style="width:30%;"><?php echo $this->lang->line('recvs_item_name'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('recvs_cost'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('recvs_quantity'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('recvs_discount'); ?></th>
|
||||
<th style="width:15%;"><?php echo $this->lang->line('recvs_total'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('recvs_edit'); ?></th>
|
||||
<?php
|
||||
if($mode=='requisition')
|
||||
{
|
||||
?>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('common_delete'); ?></th>
|
||||
<th style="width:30%;"><?php echo $this->lang->line('recvs_item_name'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('reqs_quantity'); ?></th>
|
||||
<th style="width:25%;"><?php echo $this->lang->line('reqs_related_item'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('reqs_unit_quantity'); ?></th>
|
||||
<th style="width:15%;"><?php echo $this->lang->line('reqs_unit_quantity_total'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('recvs_edit'); ?></th>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('common_delete'); ?></th>
|
||||
<th style="width:30%;"><?php echo $this->lang->line('recvs_item_name'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('recvs_cost'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('recvs_quantity'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('recvs_discount'); ?></th>
|
||||
<th style="width:15%;"><?php echo $this->lang->line('recvs_total'); ?></th>
|
||||
<th style="width:11%;"><?php echo $this->lang->line('recvs_edit'); ?></th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="cart_contents">
|
||||
@@ -69,48 +87,69 @@ else
|
||||
{
|
||||
foreach(array_reverse($cart, true) as $line=>$item)
|
||||
{
|
||||
echo form_open("receivings/edit_item/$line");
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo anchor("receivings/delete_item/$line",'['.$this->lang->line('common_delete').']');?></td>
|
||||
if($mode == 'requisition')
|
||||
{
|
||||
echo form_open("receivings/edit_item_unit/$line");
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo anchor("receivings/delete_item/$line",'['.$this->lang->line('common_delete').']');?></td>
|
||||
<td style="align:center;"><?php echo $item['name']; ?><br /> [<?php echo $this->Item->get_info($item['item_id'])->quantity; ?> in stock]</td>
|
||||
|
||||
<td style="align:center;"><?php echo $item['name']; ?><br />
|
||||
<td>
|
||||
<?php
|
||||
echo form_input(array('name'=>'quantity','value'=>$item['quantity'],'size'=>'2'));
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo $item['related_item']; ?></td>
|
||||
<td><?php echo $item['unit_quantity']; ?></td>
|
||||
<td><?php echo $item['unit_quantity']*$item['quantity']; ?></td>
|
||||
<td><?php echo form_submit("edit_item_unit", $this->lang->line('sales_edit_item'));?></td>
|
||||
</tr>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
echo form_open("receivings/edit_item/$line");
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo anchor("receivings/delete_item/$line",'['.$this->lang->line('common_delete').']');?></td>
|
||||
<td style="align:center;"><?php echo $item['name']; ?><br />
|
||||
|
||||
<?php
|
||||
<?php
|
||||
echo $item['description'];
|
||||
echo form_hidden('description',$item['description']);
|
||||
?>
|
||||
<br />
|
||||
?>
|
||||
<br />
|
||||
|
||||
|
||||
<?php if ($items_module_allowed)
|
||||
{
|
||||
?>
|
||||
<td><?php echo form_input(array('name'=>'price','value'=>$item['price'],'size'=>'6'));?></td>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<td><?php echo $item['price']; ?></td>
|
||||
<?php echo form_hidden('price',$item['price']); ?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
<?php
|
||||
echo form_input(array('name'=>'quantity','value'=>$item['quantity'],'size'=>'2'));
|
||||
?>
|
||||
</td>
|
||||
|
||||
|
||||
<td><?php echo form_input(array('name'=>'discount','value'=>$item['discount'],'size'=>'3'));?></td>
|
||||
<td><?php echo to_currency($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100); ?></td>
|
||||
<td><?php echo form_submit("edit_item", $this->lang->line('sales_edit_item'));?></td>
|
||||
</tr>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
<?php if ($items_module_allowed)
|
||||
{
|
||||
?>
|
||||
<td><?php echo form_input(array('name'=>'price','value'=>$item['price'],'size'=>'6'));?></td>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<td><?php echo $item['price']; ?></td>
|
||||
<?php echo form_hidden('price',$item['price']); ?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
<?php
|
||||
echo form_input(array('name'=>'quantity','value'=>$item['quantity'],'size'=>'2'));
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo form_input(array('name'=>'discount','value'=>$item['discount'],'size'=>'3'));?></td>
|
||||
<td><?php echo to_currency($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100); ?></td>
|
||||
<td><?php echo form_submit("edit_item", $this->lang->line('sales_edit_item'));?></td>
|
||||
</tr>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
@@ -144,13 +183,49 @@ else
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($mode != 'requisition')
|
||||
{
|
||||
|
||||
?>
|
||||
<div id='sale_details'>
|
||||
<div class="float_left" style='width:55%;'><?php echo $this->lang->line('sales_total'); ?>:</div>
|
||||
<div class="float_left" style="width:45%;font-weight:bold;"><?php echo to_currency($total); ?></div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if(count($cart) > 0)
|
||||
{
|
||||
if($mode == 'requisition')
|
||||
{
|
||||
?>
|
||||
|
||||
<div style='border-top:2px solid #000;' />
|
||||
<div id="finish_sale">
|
||||
<?php echo form_open("receivings/requisition_complete",array('id'=>'finish_sale_form')); ?>
|
||||
<br />
|
||||
<label id="comment_label" for="comment"><?php echo $this->lang->line('common_comments'); ?>:</label>
|
||||
<?php echo form_textarea(array('name'=>'comment','value'=>'','rows'=>'4','cols'=>'23'));?>
|
||||
<br /><br />
|
||||
|
||||
<?php echo "<div class='small_button' id='finish_sale_button' style='float:right;margin-top:5px;'><span>".$this->lang->line('recvs_complete_receiving')."</span></div>";
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
<?php echo form_open("receivings/cancel_receiving",array('id'=>'cancel_sale_form')); ?>
|
||||
<div class='small_button' id='cancel_sale_button' style='float:left;margin-top:5px;'>
|
||||
<span>Cancel </span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<div id="finish_sale">
|
||||
<?php echo form_open("receivings/complete",array('id'=>'finish_sale_form')); ?>
|
||||
@@ -194,6 +269,7 @@ else
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
77
application/views/receivings/requisition_receipt.php
Normal file
77
application/views/receivings/requisition_receipt.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php $this->load->view("partial/header"); ?>
|
||||
<?php
|
||||
if (isset($error_message))
|
||||
{
|
||||
echo '<h1 style="text-align: center;">'.$error_message.'</h1>';
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<div id="receipt_wrapper">
|
||||
<div id="receipt_header">
|
||||
<div id="company_name"><?php echo $this->config->item('company'); ?></div>
|
||||
<div id="company_address"><?php echo nl2br($this->config->item('address')); ?></div>
|
||||
<div id="company_phone"><?php echo $this->config->item('phone'); ?></div>
|
||||
<div id="sale_receipt"><?php echo $receipt_title; ?></div>
|
||||
<div id="sale_time"><?php echo $transaction_time ?></div>
|
||||
</div>
|
||||
<div id="receipt_general_info">
|
||||
<div id="sale_id"><?php echo $this->lang->line('recvs_id').": ".$receiving_id; ?></div>
|
||||
<div id="employee"><?php echo $this->lang->line('employees_employee').": ".$employee; ?></div>
|
||||
</div>
|
||||
|
||||
<table id="receipt_items">
|
||||
<tr>
|
||||
<th style="width:25%;"><?php echo $this->lang->line('items_item'); ?></th>
|
||||
<th style="width:16%;text-align:center;"><?php echo $this->lang->line('reqs_quantity'); ?></th>
|
||||
<th style="width:25%;text-align:center;"><?php echo $this->lang->line('reqs_related_item'); ?></th>
|
||||
<th style="width:17%;text-align:center;"><?php echo $this->lang->line('reqs_unit_quantity'); ?></th>
|
||||
<th style="width:17%;text-align:center;"><?php echo $this->lang->line('reqs_related_item_quantity'); ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
foreach(array_reverse($cart, true) as $line=>$item)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span class='long_name'><?php echo $item['name']; ?></span><span class='short_name'><?php echo character_limiter($item['name'],10); ?></span></td>
|
||||
<td style='text-align:center;'><?php echo $item['quantity']; ?></td>
|
||||
<td style='text-align:center;'><?php echo $item['related_item']; ?></td>
|
||||
<td style='text-align:center;'><?php echo $item['unit_quantity']; ?></td>
|
||||
<?php
|
||||
$related_item_id = $this->Item->get_item_id($this->Item_unit->get_info($item['item_id'])->related_number,'sale_stock');
|
||||
$total_related_item_qty = $this->Item->get_info($related_item_id)->quantity;
|
||||
?>
|
||||
<td style='text-align:center;'><?php echo $total_related_item_qty; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td colspan="2" align="center"><?php echo $item['description']; ?></td>
|
||||
<td colspan="2" ><?php echo $item['serialnumber']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
<div id="sale_return_policy">
|
||||
<?php echo nl2br($this->config->item('return_policy')); ?>
|
||||
</div>
|
||||
<div id='barcode'>
|
||||
<?php echo "<img src='index.php?c=barcode&barcode=$receiving_id&text=$receiving_id&width=250&height=50' />"; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->load->view("partial/footer"); ?>
|
||||
|
||||
<?php if ($this->Appconfig->get('print_after_sale'))
|
||||
{
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(window).load(function()
|
||||
{
|
||||
window.print();
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
@@ -39,6 +39,36 @@ if(isset($error))
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if($mode == 'sale')
|
||||
{
|
||||
?>
|
||||
<?php echo form_label($this->lang->line('reports_sale_type'), 'reports_sale_type_label', array('class'=>'required')); ?>
|
||||
<div id='report_sale_type'>
|
||||
<?php echo form_dropdown('sale_type',array('all' => $this->lang->line('reports_all'),
|
||||
'sales_retail' => $this->lang->line('reports_sales_retail'),
|
||||
'sales_wholesale' => $this->lang->line('reports_sales_wholesale'),
|
||||
'returns' => $this->lang->line('reports_returns')), 'all', 'id="input_type"'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif($mode == 'receiving')
|
||||
{
|
||||
?>
|
||||
<?php echo form_label($this->lang->line('reports_receiving_type'), 'reports_receiving_type_label', array('class'=>'required')); ?>
|
||||
<div id='report_receiving_type'>
|
||||
<?php echo form_dropdown('receiving_type',array('all' => $this->lang->line('reports_all'),
|
||||
'receiving' => $this->lang->line('reports_receivings'),
|
||||
'returns' => $this->lang->line('reports_returns')), 'all', 'id="input_type"'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif($mode == 'requisition')
|
||||
{
|
||||
//Do nothing
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
echo form_button(array(
|
||||
'name'=>'generate_report',
|
||||
@@ -55,18 +85,24 @@ $(document).ready(function()
|
||||
{
|
||||
$("#generate_report").click(function()
|
||||
{
|
||||
var sale_type = $("#sale_type").val();
|
||||
var input_type = $("#input_type").val();
|
||||
|
||||
if ($("#simple_radio").attr('checked'))
|
||||
{
|
||||
window.location = window.location+'/'+$("#report_date_range_simple option:selected").val() + '/' + sale_type;
|
||||
window.location = window.location+'/'+$("#report_date_range_simple option:selected").val() + '/' + input_type;
|
||||
}
|
||||
else
|
||||
{
|
||||
var start_date = $("#start_year").val()+'-'+$("#start_month").val()+'-'+$('#start_day').val();
|
||||
var end_date = $("#end_year").val()+'-'+$("#end_month").val()+'-'+$('#end_day').val();
|
||||
|
||||
window.location = window.location+'/'+start_date + '/'+ end_date+ '/' + sale_type;
|
||||
if(input_type == null)
|
||||
{
|
||||
window.location = window.location+'/'+start_date + '/'+ end_date;
|
||||
}
|
||||
else
|
||||
{
|
||||
window.location = window.location+'/'+start_date + '/'+ end_date+ '/' + input_type;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -25,7 +25,10 @@ if(isset($error))
|
||||
|
||||
<?php echo form_label($this->lang->line('reports_sale_type'), 'reports_sale_type_label', array('class'=>'required')); ?>
|
||||
<div id='report_sale_type'>
|
||||
<?php echo form_dropdown('sale_type',array('all' => $this->lang->line('reports_all'), 'sales' => $this->lang->line('reports_sales'), 'returns' => $this->lang->line('reports_returns')), 'all', 'id="sale_type"'); ?>
|
||||
<?php echo form_dropdown('sale_type',array('all' => $this->lang->line('reports_all'),
|
||||
'sales_retail' => $this->lang->line('reports_sales_retail'),
|
||||
'sales_wholesale' => $this->lang->line('reports_sales_wholesale'),
|
||||
'returns' => $this->lang->line('reports_returns')), 'all', 'id="sale_type"'); ?>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
<ul>
|
||||
<li><a href="<?php echo site_url('reports/detailed_sales');?>"><?php echo $this->lang->line('reports_sales'); ?></a></li>
|
||||
<li><a href="<?php echo site_url('reports/detailed_receivings');?>"><?php echo $this->lang->line('reports_receivings'); ?></a></li>
|
||||
<li><a href="<?php echo site_url('reports/detailed_requisition');?>"><?php echo $this->lang->line('reports_requisition'); ?></a></li>
|
||||
<li><a href="<?php echo site_url('reports/specific_customer');?>"><?php echo $this->lang->line('reports_customer'); ?></a></li>
|
||||
<li><a href="<?php echo site_url('reports/specific_discount');?>"><?php echo $this->lang->line('reports_discount'); ?></a></li>
|
||||
<li><a href="<?php echo site_url('reports/specific_employee');?>"><?php echo $this->lang->line('reports_employee'); ?></a></li>
|
||||
@@ -57,3 +58,8 @@ if(isset($error))
|
||||
?>
|
||||
<?php $this->load->view("partial/footer"); ?>
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -31,7 +31,10 @@ if(isset($error))
|
||||
|
||||
<?php echo form_label($this->lang->line('reports_sale_type'), 'reports_sale_type_label', array('class'=>'required')); ?>
|
||||
<div id='report_sale_type'>
|
||||
<?php echo form_dropdown('sale_type',array('all' => $this->lang->line('reports_all'), 'sales' => $this->lang->line('reports_sales'), 'returns' => $this->lang->line('reports_returns')), 'all', 'id="sale_type"'); ?>
|
||||
<?php echo form_dropdown('sale_type',array('all' => $this->lang->line('reports_all'),
|
||||
'sales_retail' => $this->lang->line('reports_sales_retail'),
|
||||
'sales_wholesale' => $this->lang->line('reports_sales_wholesale'),
|
||||
'returns' => $this->lang->line('reports_returns')) , 'all', 'id="sale_type"'); ?>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -31,7 +31,7 @@ if (isset($success))
|
||||
<label id="item_label" for="item">
|
||||
|
||||
<?php
|
||||
if($mode=='sale')
|
||||
if($mode=='sale_retail' or $mode=='sale_wholesale')
|
||||
{
|
||||
echo $this->lang->line('sales_find_or_scan_item');
|
||||
}
|
||||
@@ -41,13 +41,16 @@ else
|
||||
}
|
||||
?>
|
||||
</label>
|
||||
|
||||
<?php echo form_input(array('name'=>'item','id'=>'item','size'=>'40'));?>
|
||||
<!-- no need the new item button in sale page
|
||||
<div id="new_item_button_register" >
|
||||
<?php echo anchor("items/view/-1/width:360",
|
||||
"<div class='small_button'><span>".$this->lang->line('sales_new_item')."</span></div>",
|
||||
array('class'=>'thickbox none','title'=>$this->lang->line('sales_new_item')));
|
||||
?>
|
||||
</div>
|
||||
-->
|
||||
|
||||
</form>
|
||||
<table id="register">
|
||||
|
||||
@@ -145,6 +145,7 @@ CREATE TABLE `ospos_items` (
|
||||
`allow_alt_description` tinyint(1) NOT NULL,
|
||||
`is_serialized` tinyint(1) NOT NULL,
|
||||
`deleted` int(1) NOT NULL DEFAULT '0',
|
||||
`stock_type` enum('sale_stock','warehouse') NOT NULL DEFAULT 'warehouse',
|
||||
`custom1` VARCHAR(25) NOT NULL,
|
||||
`custom2` VARCHAR(25) NOT NULL,
|
||||
`custom3` VARCHAR(25) NOT NULL,
|
||||
@@ -220,6 +221,64 @@ CREATE TABLE `ospos_item_kit_items` (
|
||||
--
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `ospos_item_unit`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ospos_item_unit` (
|
||||
`item_id` int(11) NOT NULL,
|
||||
`unit_quantity` int(11) NOT NULL,
|
||||
`related_number` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
|
||||
PRIMARY KEY (`item_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ospos_item_unit`
|
||||
--
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `ospos_requisitions`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ospos_requisitions` (
|
||||
`requisition_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`employee_id` int(11) NOT NULL DEFAULT '0',
|
||||
`comment` text NOT NULL,
|
||||
`requisition_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`requisition_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=111 ;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ospos_requisitions`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `ospos_requisitions_items`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ospos_requisitions_items` (
|
||||
`requisition_id` int(10) NOT NULL DEFAULT '0',
|
||||
`item_id` int(11) NOT NULL DEFAULT '0',
|
||||
`line` int(3) NOT NULL,
|
||||
`requisition_quantity` int(10) NOT NULL DEFAULT '0',
|
||||
`related_item_id` int(10) NOT NULL DEFAULT '0',
|
||||
`related_item_quantity` int(11) NOT NULL,
|
||||
`related_item_total_quantity` int(10) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`requisition_id`,`item_id`,`line`),
|
||||
KEY `item_id` (`item_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `ospos_requisitions_items`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
@@ -647,20 +706,20 @@ ALTER TABLE `ospos_sales`
|
||||
--
|
||||
ALTER TABLE `ospos_sales_items`
|
||||
ADD CONSTRAINT `ospos_sales_items_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `ospos_items` (`item_id`),
|
||||
ADD CONSTRAINT `ospos_sales_items_ibfk_2` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales` (`sale_id`);
|
||||
ADD CONSTRAINT `ospos_sales_items_ibfk_2` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales` (`sale_id`) ON DELETE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `ospos_sales_items_taxes`
|
||||
--
|
||||
ALTER TABLE `ospos_sales_items_taxes`
|
||||
ADD CONSTRAINT `ospos_sales_items_taxes_ibfk_1` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales_items` (`sale_id`),
|
||||
ADD CONSTRAINT `ospos_sales_items_taxes_ibfk_1` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales_items` (`sale_id`) ON DELETE CASCADE,
|
||||
ADD CONSTRAINT `ospos_sales_items_taxes_ibfk_2` FOREIGN KEY (`item_id`) REFERENCES `ospos_items` (`item_id`);
|
||||
|
||||
--
|
||||
-- Constraints for table `ospos_sales_payments`
|
||||
--
|
||||
ALTER TABLE `ospos_sales_payments`
|
||||
ADD CONSTRAINT `ospos_sales_payments_ibfk_1` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales` (`sale_id`);
|
||||
ADD CONSTRAINT `ospos_sales_payments_ibfk_1` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales` (`sale_id`) ON DELETE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `ospos_sales_suspended`
|
||||
@@ -674,20 +733,32 @@ ALTER TABLE `ospos_sales_suspended`
|
||||
--
|
||||
ALTER TABLE `ospos_sales_suspended_items`
|
||||
ADD CONSTRAINT `ospos_sales_suspended_items_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `ospos_items` (`item_id`),
|
||||
ADD CONSTRAINT `ospos_sales_suspended_items_ibfk_2` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales_suspended` (`sale_id`);
|
||||
ADD CONSTRAINT `ospos_sales_suspended_items_ibfk_2` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales_suspended` (`sale_id`) ON DELETE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `ospos_sales_suspended_items_taxes`
|
||||
--
|
||||
ALTER TABLE `ospos_sales_suspended_items_taxes`
|
||||
ADD CONSTRAINT `ospos_sales_suspended_items_taxes_ibfk_1` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales_suspended_items` (`sale_id`),
|
||||
ADD CONSTRAINT `ospos_sales_suspended_items_taxes_ibfk_1` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales_suspended_items` (`sale_id`) ON DELETE CASCADE,
|
||||
ADD CONSTRAINT `ospos_sales_suspended_items_taxes_ibfk_2` FOREIGN KEY (`item_id`) REFERENCES `ospos_items` (`item_id`);
|
||||
|
||||
--
|
||||
-- Constraints for table `ospos_sales_suspended_payments`
|
||||
--
|
||||
ALTER TABLE `ospos_sales_suspended_payments`
|
||||
ADD CONSTRAINT `ospos_sales_suspended_payments_ibfk_1` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales_suspended` (`sale_id`);
|
||||
ADD CONSTRAINT `ospos_sales_suspended_payments_ibfk_1` FOREIGN KEY (`sale_id`) REFERENCES `ospos_sales_suspended` (`sale_id`) ON DELETE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `ospos_requisitions_items
|
||||
ALTER TABLE `ospos_requisitions_items`
|
||||
ADD CONSTRAINT `ospos_requisitions_items_ibfk_1` FOREIGN KEY (`requisition_id`) REFERENCES `ospos_requisitions` (`requisition_id`) ON DELETE CASCADE,
|
||||
ADD CONSTRAINT `ospos_requisitions_items_ibfk_2` FOREIGN KEY (`item_id`) REFERENCES `ospos_items` (`item_id`);
|
||||
|
||||
--
|
||||
-- Constraints for table `ospos_item_unit`
|
||||
--
|
||||
ALTER TABLE `ospos_item_unit`
|
||||
ADD CONSTRAINT `ospos_item_unit_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `ospos_items` (`item_id`) ON DELETE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `ospos_suppliers`
|
||||
|
||||
Reference in New Issue
Block a user