logistic

package
v1.0.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB) error

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 (s *LogisticService) ArrivedShipmentLegDelivery(shipmentLegID string, date time.Time, notes string) error

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 (s *LogisticService) GetAllShipments(request http.Request, search string) (paginate.Page, error)

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 (s *LogisticService) ListDistributionEvents(request http.Request, search string) (paginate.Page, error)

func (*LogisticService) ListShipments

func (s *LogisticService) ListShipments(request http.Request, search string) (paginate.Page, error)

func (*LogisticService) ProcessShipment

func (s *LogisticService) ProcessShipment(shipmentID string, date time.Time, notes string) error

func (*LogisticService) ReadyToShip

func (s *LogisticService) ReadyToShip(shipmentID string, date time.Time, notes *string) error

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 (s *LogisticService) StartShipmentLegDelivery(shipmentLegID string, date time.Time, notes string) error

func (*LogisticService) UpdateIsDelayedForShipment

func (s *LogisticService) UpdateIsDelayedForShipment(shipmentID string) error

func (*LogisticService) UpdateStatusShipment

func (s *LogisticService) UpdateStatusShipment(shipmentID string, status string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL