Documentation
¶
Index ¶
- func Migrate(db *gorm.DB) error
- type LogisticService
- func (s *LogisticService) AddItemShipment(shipmentID string, item *models.ShipmentItem) error
- func (s *LogisticService) AddTrackingEvent(shipmentLegID string, data *models.TrackingEventModel) error
- func (s *LogisticService) ArrivedShipmentLegDelivery(shipmentLegID string, date time.Time, notes string) error
- func (s *LogisticService) CreateDistributionEvent(data *models.DistributionEventModel) error
- func (s *LogisticService) CreateShipment(data *models.ShipmentModel) error
- func (s *LogisticService) CreateShipmentFeedback(data *models.ShipmentFeedback) error
- func (s *LogisticService) CreateShipmentLeg(data *models.ShipmentLegModel) error
- func (s *LogisticService) DeleteDistributionEvent(eventID string) error
- func (s *LogisticService) DeleteItemShipment(shipmentID string, itemID string) error
- func (s *LogisticService) DeleteShipment(shipmentID string) error
- func (s *LogisticService) GenerateDistributionEventReport(distributionEventID string) (*models.DistributionEventReport, error)
- func (s *LogisticService) GenerateShipmentReport(shipmentID string) (*models.ShipmentModel, error)
- func (s *LogisticService) GetAllShipments(request http.Request, search string) (paginate.Page, error)
- func (s *LogisticService) GetDistributionEvent(eventID string) (*models.DistributionEventModel, error)
- func (s *LogisticService) GetDistributionEventReport(distributionEventID string) (*models.DistributionEventReport, error)
- func (s *LogisticService) GetShipment(shipmentID string) (*models.ShipmentModel, error)
- func (s *LogisticService) ListDistributionEvents(request http.Request, search string) (paginate.Page, error)
- func (s *LogisticService) ListShipments(request http.Request, search string) (paginate.Page, error)
- func (s *LogisticService) ProcessShipment(shipmentID string, date time.Time, notes string) error
- func (s *LogisticService) ReadyToShip(shipmentID string, date time.Time, notes *string) error
- func (s *LogisticService) ReportLostOrDamage(shipmentID string, shipmentLegID string, date time.Time, ...) error
- func (s *LogisticService) StartShipmentLegDelivery(shipmentLegID string, date time.Time, notes string) error
- func (s *LogisticService) UpdateIsDelayedForShipment(shipmentID string) error
- func (s *LogisticService) UpdateStatusShipment(shipmentID string, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogisticService ¶
type LogisticService struct {
// contains filtered or unexported fields
}
func NewLogisticService ¶
func NewLogisticService(db *gorm.DB, ctx *context.ERPContext, inventoryService *inventory.InventoryService) *LogisticService
func (*LogisticService) AddItemShipment ¶
func (s *LogisticService) AddItemShipment(shipmentID string, item *models.ShipmentItem) error
func (*LogisticService) AddTrackingEvent ¶
func (s *LogisticService) AddTrackingEvent(shipmentLegID string, data *models.TrackingEventModel) error
func (*LogisticService) ArrivedShipmentLegDelivery ¶
func (*LogisticService) CreateDistributionEvent ¶
func (s *LogisticService) CreateDistributionEvent(data *models.DistributionEventModel) error
func (*LogisticService) CreateShipment ¶
func (s *LogisticService) CreateShipment(data *models.ShipmentModel) error
func (*LogisticService) CreateShipmentFeedback ¶
func (s *LogisticService) CreateShipmentFeedback(data *models.ShipmentFeedback) error
func (*LogisticService) CreateShipmentLeg ¶
func (s *LogisticService) CreateShipmentLeg(data *models.ShipmentLegModel) error
func (*LogisticService) DeleteDistributionEvent ¶
func (s *LogisticService) DeleteDistributionEvent(eventID string) error
func (*LogisticService) DeleteItemShipment ¶
func (s *LogisticService) DeleteItemShipment(shipmentID string, itemID string) error
func (*LogisticService) DeleteShipment ¶
func (s *LogisticService) DeleteShipment(shipmentID string) error
func (*LogisticService) GenerateDistributionEventReport ¶
func (s *LogisticService) GenerateDistributionEventReport(distributionEventID string) (*models.DistributionEventReport, error)
func (*LogisticService) GenerateShipmentReport ¶
func (s *LogisticService) GenerateShipmentReport(shipmentID string) (*models.ShipmentModel, error)
func (*LogisticService) GetAllShipments ¶
func (*LogisticService) GetDistributionEvent ¶
func (s *LogisticService) GetDistributionEvent(eventID string) (*models.DistributionEventModel, error)
func (*LogisticService) GetDistributionEventReport ¶
func (s *LogisticService) GetDistributionEventReport(distributionEventID string) (*models.DistributionEventReport, error)
func (*LogisticService) GetShipment ¶
func (s *LogisticService) GetShipment(shipmentID string) (*models.ShipmentModel, error)
func (*LogisticService) ListDistributionEvents ¶
func (*LogisticService) ListShipments ¶
func (*LogisticService) ProcessShipment ¶
func (*LogisticService) ReadyToShip ¶
func (*LogisticService) ReportLostOrDamage ¶
func (s *LogisticService) ReportLostOrDamage(shipmentID string, shipmentLegID string, date time.Time, data *models.IncidentEventModel, movementType models.MovementType, wasteWarehouseID *string, ) error
func (*LogisticService) StartShipmentLegDelivery ¶
func (*LogisticService) UpdateIsDelayedForShipment ¶
func (s *LogisticService) UpdateIsDelayedForShipment(shipmentID string) error
func (*LogisticService) UpdateStatusShipment ¶
func (s *LogisticService) UpdateStatusShipment(shipmentID string, status string) error
Click to show internal directories.
Click to hide internal directories.