bill_define.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # -*- coding: utf-8 -*-
  2. # 供应链
  3. sale_order = '1'
  4. sale_out_store = '2'
  5. sale_account = '3'
  6. sale_invoice = '4'
  7. sale_return_store = '5'
  8. sale_receipt = '6'
  9. sale_cost = '7'
  10. sale_class_price = '8'
  11. sale_chargeback = '9'
  12. # 仓储
  13. other_in_store = '20'
  14. other_out_store = '21'
  15. transfer_in_store = '22'
  16. transfer_out_store = '23'
  17. stock_check = '24'
  18. memo_ticket = '25'
  19. # 采购
  20. purchase_in_store = '40'
  21. purchase_out_store = '41'
  22. purchase_apply = '43'
  23. # 设备
  24. spot_check_record = '60'
  25. repair_application = '61'
  26. repair_record = '62'
  27. maintain_record = '63'
  28. operation_record = '64'
  29. fault_record = '65'
  30. fault_handle_record = '66'
  31. maintain_plan = '67'
  32. # 所有单据类型
  33. BILL_TYPE = [
  34. # 销售
  35. (sale_order, u'销售订单'),
  36. (sale_out_store, u'销售出库'),
  37. (sale_invoice, u'销售发票'),
  38. (sale_account, u'销售账单'),
  39. (sale_chargeback, u'销售退单'),
  40. (sale_return_store, u'销售退库'),
  41. (sale_cost, u'销售费用'),
  42. (sale_receipt, u'销售收款'),
  43. # 仓储
  44. (other_in_store, u'其他入库'),
  45. (other_out_store, u'其他出库'),
  46. (transfer_in_store, u'调拨入库'),
  47. (transfer_out_store, u'调拨出库'),
  48. (stock_check, u'库存盘点'),
  49. # 采购
  50. (purchase_in_store, u'采购入库'),
  51. (purchase_out_store, u'采购出库'),
  52. # 设备
  53. (spot_check_record, u'点检单'),
  54. (repair_application, u'报修单'),
  55. (repair_record, u'维修单'),
  56. (maintain_record, u'保养单'),
  57. (operation_record, u'运行记录'),
  58. (fault_record, u'故障记录'),
  59. (fault_handle_record, u'故障处理'),
  60. (maintain_plan, u'保养计划'),
  61. ]
  62. # 所有单据类型对应字典
  63. bill_dict = {
  64. sale_order: 'jc_supply_chain.sale_order',
  65. sale_out_store: 'jc_supply_chain.sale_out_store',
  66. sale_chargeback: 'jc_supply_chain.sale_chargeback',
  67. sale_receipt: 'jc_supply_chain.sale_receipt',
  68. sale_cost: 'jc_supply_chain.sale_cost',
  69. sale_return_store: 'jc_supply_chain.sale_return',
  70. sale_account: 'jc_supply_chain.sale_account',
  71. sale_invoice: 'jc_supply_chain.sale_invoice',
  72. other_in_store: 'jc_supply_chain.other_in_store',
  73. other_out_store: 'jc_supply_chain.other_out_store',
  74. transfer_out_store: 'jc_supply_chain.transfer_out_store',
  75. transfer_in_store: 'jc_supply_chain.transfer_in_store',
  76. stock_check: 'jc_supply_chain.stock_check',
  77. purchase_in_store: 'jc_supply_chain.purchase_in_store',
  78. purchase_out_store: 'jc_supply_chain.purchase_out_store',
  79. spot_check_record: 'jc_device.spot_check_record',
  80. repair_application: 'jc_device.repair_application',
  81. repair_record: 'jc_device.repair_record',
  82. maintain_record: 'jc_device.maintain_record',
  83. operation_record: 'jc_device.operation_record',
  84. fault_record: 'jc_device.fault_record',
  85. fault_handle_record: 'jc_device.fault_handle_record',
  86. maintain_plan: 'jc_device.maintain_plan',
  87. }