Invoice.php 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\cxinv\model;
  3. use think\Model;use think\model\concern\SoftDelete;
  4. class Invoice extends Base{
  5. use SoftDelete;
  6. protected $createTime="createTime";
  7. protected $updateTime="updateTime";
  8. protected $deleteTime="delete_time";
  9. public static $invoiceType=[
  10. "special"=>"增值税专用发票",
  11. "normal"=>"增值税普通发票",
  12. "roll"=>"增值税普通发票(卷式)",
  13. "special_electronic"=>"增值税电子专用发票",
  14. "electronic"=>"增值税电子普通发票",
  15. "blockchain_electronic"=>"区块链电子发票",
  16. "toll"=>"增值税电子普通发票(通行费)",
  17. "fully_digitalized_special_electronic"=>"电子发票(增值税专用发票)",
  18. "fully_digitalized_normal_electronic"=>"电子发票(增值税普通发票)",
  19. ];
  20. public static $invStatus=[0=>'待验证','1'=>'正常','2'=>'已作废','3'=>'已红冲'];
  21. //0待验证 1待关联订单 2订单部分关联 3订单完全关联
  22. public function Items(){
  23. return $this->hasMany(InvoiceItem::class,'invoiceCode','InvCode');
  24. }
  25. }