Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

60 řádky
1.8 KiB

  1. <?php
  2. namespace backend\modules\hotel\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "order_finance_status".
  6. *
  7. * @property integer $order_id
  8. * @property integer $main_corp_id
  9. * @property integer $gathering_status
  10. * @property integer $payment_status
  11. * @property string $gathering_batch_id
  12. * @property string $update_time
  13. * @property string $payment_batch_id
  14. * @property integer $type
  15. */
  16. class OrderFinanceStatus extends \yii\db\ActiveRecord
  17. {
  18. /**
  19. * @inheritdoc
  20. */
  21. public static function tableName()
  22. {
  23. return 'order_finance_status';
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['order_id', 'type'], 'required'],
  32. [['order_id', 'main_corp_id', 'gathering_status', 'payment_status', 'type'], 'integer'],
  33. [['update_time'], 'safe'],
  34. [['gathering_batch_id', 'payment_batch_id'], 'string', 'max' => 20],
  35. [['order_id', 'type'], 'unique', 'targetAttribute' => ['order_id', 'type'], 'message' => 'The combination of 订单ID and 1订单 2线路班次(空车) has already been taken.'],
  36. ];
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'order_id' => '订单ID',
  45. 'main_corp_id' => '运营主题ID',
  46. 'gathering_status' => '财务管理,收账状态 1待结算,2已关账,3对账中,4已结算',
  47. 'payment_status' => '财务管理,应付状态 1待结算,2已关账,3对账中,4已结算',
  48. 'gathering_batch_id' => '应收对账批次ID',
  49. 'update_time' => '最后更新时间',
  50. 'payment_batch_id' => '应付 对账 批次ID',
  51. 'type' => '1订单 2线路班次(空车)',
  52. ];
  53. }
  54. }