func (VS *Server) showItemsDeliveryFromService(c *gin.Context) {
	serviceEmitterHTML, _ := VS.getOurService(c, "h_deliveries", "showItemsDeliveryFromService", "serviceEmitterHTML, _ := VS.getOurService")

	idServiceReceiver, b := VS.getIDParamFromURL(c, "idservice")
	if !b {
		return
	}
	serviceReceiver := VS.getServiceByID(c, idServiceReceiver, "h_deliveries", "showItemsDeliveryFromService", "serviceReceiver := VS.getServiceByID", true)
	serviceReceiverHTML := VS.serviceToHTML(c, serviceReceiver)

	idDelivery, b := VS.getIDParamFromURL(c, "iddelivery")
	if !b {
		return
	}
	itemsToChoose := VS.getAllStockForServicePicker(c, serviceEmitterHTML.ID, "h_deliveries", "showItemsDeliveryFromService", "itemsToChoose := VS.getAllStockForServicePicker")

	del, _ := VS.getDeliveryByID(c, idDelivery, "h_deliveries", "showItemsDeliveryFromService", "del, _ := VS.getDeliveryByID", true)
	sent := del.IsSent
	itemsChosen := VS.getAllStockByDelivery(c, idDelivery, "h_deliveries", "showItemsDeliveryFromService", "itemsChosen := VS.getAllStockByDelivery")
	itemsChosenHTML := VS.stocksToHTML(c, itemsChosen)

	render(c, gin.H{
		"serviceType":     serviceEmitterHTML.TypeID,
		"serviceReceiver": serviceReceiverHTML,
		"serviceEmitter":  serviceEmitterHTML,
		"sent":            sent,
		"itemstochoose":   itemsToChoose,
		"itemsChosen":     itemsChosenHTML,
		"isFromService":   true,
	}, "delivery-form-to-send.html")
}
// This handler shows the form to include more stocks in the delivery, and shows the items that are already in the delivery from a Service
This handler shows the form to include more stocks in the delivery, and shows the items that are already in the delivery from a Service
// This handler shows the form to include more stocks in the delivery and shows the items that are already in the delivery from a Service
func (VS *Server) showItemsDeliveryFromService(c *gin.Context) {
	serviceEmitterHTML, _ := VS.getOurService(c, "h_deliveries", "showItemsDeliveryFromService", "serviceEmitterHTML, _ := VS.getOurService")
	idServiceReceiver, b := VS.getIDParamFromURL(c, "idservice")
	if !b {
		return
	}
	serviceReceiver := VS.getServiceByID(c, idServiceReceiver, "h_deliveries", "showItemsDeliveryFromService", "serviceReceiver := VS.getServiceByID", true)
	serviceReceiverHTML := VS.serviceToHTML(c, serviceReceiver)
	idDelivery, b := VS.getIDParamFromURL(c, "iddelivery")
	if !b {
		return
	}
	itemsToChoose := VS.getAllStockForServicePicker(c, serviceEmitterHTML.ID, "h_deliveries", "showItemsDeliveryFromService", "itemsToChoose := VS.getAllStockForServicePicker")
	del, _ := VS.getDeliveryByID(c, idDelivery, "h_deliveries", "showItemsDeliveryFromService", "del, _ := VS.getDeliveryByID", true)
	sent := del.IsSent
	itemsChosen := VS.getAllStockByDelivery(c, idDelivery, "h_deliveries", "showItemsDeliveryFromService", "itemsChosen := VS.getAllStockByDelivery")
	itemsChosenHTML := VS.stocksToHTML(c, itemsChosen)
	render(c, gin.H{
		"serviceType":     serviceEmitterHTML.TypeID,
		"serviceReceiver": serviceReceiverHTML,
		"serviceEmitter":  serviceEmitterHTML,
		"sent":            sent,
		"itemstochoose":   itemsToChoose,
		"itemsChosen":     itemsChosenHTML,
		"isFromService":   true,
	}, "delivery-form-to-send.html")
}
func ( VS * Server ) showItemsDeliveryFromService ( c * gin . Context ) { serviceEmitterHTML , _ := VS . getOurService ( c , " " , " " , " " ) idServiceReceiver , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } serviceReceiver := VS . getServiceByID ( c , idServiceReceiver , " " , " " , " " , true ) serviceReceiverHTML := VS . serviceToHTML ( c , serviceReceiver ) idDelivery , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } itemsToChoose := VS . getAllStockForServicePicker ( c , serviceEmitterHTML . ID , " " , " " , " " ) del , _ := VS . getDeliveryByID ( c , idDelivery , " " , " " , " " , true ) sent := del . IsSent itemsChosen := VS . getAllStockByDelivery ( c , idDelivery , " " , " " , " " ) itemsChosenHTML := VS . stocksToHTML ( c , itemsChosen ) render ( c , gin . H { " " : serviceEmitterHTML . TypeID , " " : serviceReceiverHTML , " " : serviceEmitterHTML , " " : sent , " " : itemsToChoose , " " : itemsChosenHTML , " " : true , } , " " ) }
This handler shows the form to include more stocks in the delivery, and shows the items that are already in the delivery from a Service
This handler shows the form to include more stocks in the delivery and shows the items that are already in the delivery from a Service