예제 #1
0
 function init()
 {
     parent::init();
     $this->addCondition('website_display', true);
     $this->addCondition($this->dsql()->orExpr()->where('to_customer_id', null)->where('to_customer_id', 0));
     $this->addCondition('is_template', false);
 }
예제 #2
0
 function init()
 {
     parent::init();
     $customer = $this->add('xepan\\commerce\\Model_Customer');
     $customer->loadLoggedIn();
     $template_cat_model = $this->add('xepan\\commerce\\Model_Category')->addCondition('name', 'Templates');
     $cat_assoc_j = $this->join('category_item_association.item_id');
     $cat_assoc_j->addField('category_id');
     $order_items_j = $this->join('qsp_detail.item_id');
     $order_j = $order_items_j->join('qsp_master.document_id', 'qsp_master_id');
     $order_j->addField('contact_id');
     $invoice_j = $order_j->join('qsp_master.related_qsp_master_id', 'document_id');
     $invoice_doc_j = $invoice_j->join('document', 'document_id');
     $invoice_doc_j->addField('invoice_status', 'status');
     $this->addCondition('invoice_status', 'Paid');
     $this->addCondition('contact_id', $customer->id);
     $this->addCondition('category_id', $template_cat_model->fieldQuery('id'));
 }
예제 #3
0
 function init()
 {
     parent::init();
     $this->addCondition('is_allowuploadable', true);
 }
예제 #4
0
파일: Template.php 프로젝트: xepan/commerce
 function init()
 {
     parent::init();
     $this->addCondition('is_template', true);
     // $this->addCondition('is_designable',true);
 }
예제 #5
0
파일: Saleable.php 프로젝트: xepan/commerce
 function init()
 {
     parent::init();
     $this->addCondition('is_saleable', true);
 }
예제 #6
0
 function init()
 {
     parent::init();
     $this->addCondition('is_productionable', true);
 }
예제 #7
0
 function init()
 {
     parent::init();
     $this->addCondition('is_purchasable', true);
 }