merged crm

This commit is contained in:
Yan
2017-06-06 09:41:06 +06:30
22 changed files with 371 additions and 129 deletions

View File

@@ -1,6 +1,6 @@
class Customer < ApplicationRecord
self.primary_key = "customer_id"
before_create :generate_custom_id
has_many :orders
has_many :sales