InvoiceTicket.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace app\cxinv\model;
  3. class InvoiceTicket extends Base
  4. {
  5. //设置字段信息
  6. protected $schema = [
  7. 'id' =>'bigint',//
  8. 'invNo' =>'varchar',//发票编号
  9. 'type' =>'tinyint',//发票种类 红蓝票 0 蓝票1红票
  10. 'inv_type' =>'varchar',//发票类型
  11. 'inv_code' =>'varchar',//发票编码
  12. 'inv_number' =>'varchar',//发票号码
  13. 'inv_total' =>'decimal',//发票额度
  14. 'inv_subtotal' =>'decimal',//税前额度
  15. 'open_date' =>'datetime',//发票开票时间
  16. 'seller_id' =>'varchar',//销售方纳税识别号
  17. 'seller_title' =>'varchar',//销售方title
  18. 'seller_addr' =>'varchar',//销售方地址及电话
  19. 'seller_mobile' =>'varchar',//销售方电话
  20. 'seller_bank' =>'varchar',//销售方开户行及帐户
  21. 'seller_bankNo' =>'varchar',//销售方账户
  22. 'buyer_id' =>'varchar',//消费方纳税识别号
  23. 'buyer_title' =>'varchar',//消费方抬头
  24. 'buyer_addr' =>'varchar',//消费方地址及联系电话
  25. 'buyer_mobile' =>'varchar',//消费方联系电话
  26. 'buyer_bank' =>'varchar',//消费方开户行及账户
  27. 'buyer_bankNo' =>'varchar',//消费开户行账户
  28. 'tax_fee' =>'varchar',//税额
  29. 'remark' =>'varchar',//备注
  30. 'issuer' =>'varchar',//开票人
  31. 'reciver' =>'varchar',//收款人
  32. 'reviewer' =>'varchar',//复核人
  33. 'check_code' =>'varchar',//校验码
  34. 'item' =>'text',//商品清单
  35. 'status' =>'int',//0 待验证 1正常 2已作废 3已红冲
  36. 'pdfstream' =>'text',//电子票文件流
  37. 'is_del' =>'tinyint',//
  38. 'addtime' =>'datetime',//
  39. 'updatetime' =>'datetime',//
  40. ];
  41. }