<?php
//profit
class ProfitRengFactura extends ActiveRecord\Model {
   // static $connection = 'profit';
	static $table_name = 'reng_fac';
	static $primary_key = array('fact_num','reng_num');
	static $campos = array('fact_num','reng_num','dis_cen','tipo_doc','reng_doc','num_doc','co_art','co_alma','total_art','stotal_art','pendiente','uni_venta','prec_vta','porc_desc','tipo_imp','isv','reng_neto','cos_pro_un','ult_cos_un','ult_cos_om','cos_pro_om','total_dev','monto_dev','prec_vta2','anulado','des_art','seleccion','cant_imp','comentario','rowguid','total_uni','mon_ilc','otros','nro_lote','fec_lote','pendiente2','tipo_doc2','reng_doc2','num_doc2','tipo_prec','co_alma2','aux01','aux02','cant_prod','imp_prod');
       static $belongs_to = array(
      array('factura', 'foreign_key' => 'fact_num', 'class_name' => 'ProfitFactura')
	  ,array('art', 'foreign_key' => 'co_art', 'class_name' => 'ProfitArt')
    );
}
