Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributionService ¶
type DistributionService struct {
DistributorService *distributor.DistributorService
OfferingService *offering.OfferingService
OrderRequestService *order_request.OrderRequestService
ShippingService *shipping.ShippingService
CartService *cart.CartService
LogisticService *logistic.LogisticService
StorageService *storage.StorageService
// contains filtered or unexported fields
}
func NewDistributionService ¶
func NewDistributionService(ctx *context.ERPContext, auditTrailService *audit_trail.AuditTrailService, inventoryService *inventory.InventoryService, orderService *order.OrderService) *DistributionService
NewDistributionService creates a new instance of DistributionService with the given ERP context, audit trail service, inventory service, and order service.
It also migrates the database according to the latest schema, and creates all the necessary subservices.
func (*DistributionService) DB ¶
func (s *DistributionService) DB() *gorm.DB
func (*DistributionService) Migrate ¶
func (s *DistributionService) Migrate() error
Click to show internal directories.
Click to hide internal directories.