config.php 1.9 KB

12345678910111213141516171819
  1. <?php
  2. $config->workflowrelation = new stdclass();
  3. $config->workflowrelation->one2one = 'create';
  4. $config->workflowrelation->many2one = 'create';
  5. $config->workflowrelation->one2many = 'batchcreate';
  6. $config->workflowrelation->many2many = 'batchcreate';
  7. $config->workflowrelation->buildin = new stdclass();
  8. $config->workflowrelation->buildin->relations = array();
  9. $config->workflowrelation->buildin->relations['crm']['order']['sign'] = array('next' => 'contract', 'actionCodes' => array('one2one' => 'create'));
  10. $config->workflowrelation->buildin->relations['crm']['contract']['invoice'] = array('next' => 'invoice', 'actionCodes' => array('one2one' => 'createsale'));
  11. $config->workflowrelation->buildin->relations['crm']['purchasecontract']['invoice'] = array('next' => 'invoice', 'actionCodes' => array('one2one' => 'createpurchase'));
  12. $config->workflowrelation->buildin->relations['crm']['customer']['invoice'] = array('next' => 'invoice', 'actionCodes' => array('one2one' => 'createsale'));
  13. $config->workflowrelation->buildin->actions = array();
  14. $config->workflowrelation->buildin->actions['crm']['order']['sign'] = array('type' => 'single', 'batchMode' => 'same', 'open' => 'normal', 'position' => 'browseandview', 'show' => 'direct');
  15. $config->workflowrelation->buildin->actions['crm']['contract']['invoice'] = array('type' => 'single', 'batchMode' => 'same', 'open' => 'normal', 'position' => 'browseandview', 'show' => 'dropdownlist');
  16. $config->workflowrelation->buildin->actions['crm']['purchasecontract']['invoice'] = array('type' => 'single', 'batchMode' => 'same', 'open' => 'normal', 'position' => 'browseandview', 'show' => 'dropdownlist');
  17. $config->workflowrelation->buildin->actions['crm']['customer']['invoice'] = array('type' => 'single', 'batchMode' => 'same', 'open' => 'normal', 'position' => 'browseandview', 'show' => 'dropdownlist');