func (VS *Server) showConfirmDelivery(c *gin.Context) {
	idDelivery, b := VS.getIDParamFromURL(c, "iddelivery")
	if !b {
		return
	}
	delivery, _ := VS.getDeliveryByID(c, idDelivery, "h_deliveries", "showConfirmDelivery", "delivery, _ := VS.getDeliveryByID", true)
	idService := delivery.IDServiceReceiver

	serviceReceiver := VS.getServiceByID(c, idService, "h_deliveries", "showConfirmDelivery", "serviceReceiver := VS.getServiceByID", true)
	serviceReceiverHTML := VS.serviceToHTML(c, serviceReceiver)

	itemsChecked := VS.getAllStockCheckedByDelivery(c, idDelivery, "h_deliveries", "showConfirmDelivery", "itemsChecked := VS.getAllStockCheckedByDelivery")
	itemsCheckedHTML := VS.stocksToHTML(c, itemsChecked)
	itemsNOTChecked := VS.getAllStockNOTCheckedByDelivery(c, idDelivery, "h_deliveries", "showConfirmDelivery", "itemsNOTChecked := VS.getAllStockNOTCheckedByDelivery")
	itemsNOTCheckedHTML := VS.stocksToHTML(c, itemsNOTChecked)

	render(c, gin.H{
		"service":         serviceReceiverHTML,
		"close":           delivery.IsComplete,
		"role":            getRole(c),
		"itemsChecked":    itemsCheckedHTML,
		"itemsNOTChecked": itemsNOTCheckedHTML,
	}, "delivery-form-receive.html")
}
// This handler shows the receive form for the delivery for the Manager in the service, to take photos or scan QR of the items when the delivery is received
This handler shows the receive form for the delivery for the Manager in the service, to take photos or scan QR of the items when the delivery is received
// This handler shows the receive form for the delivery for the Manager in the service to take photos or scan QR of the items when the delivery is received
func (VS *Server) showConfirmDelivery(c *gin.Context) {
	idDelivery, b := VS.getIDParamFromURL(c, "iddelivery")
	if !b {
		return
	}
	delivery, _ := VS.getDeliveryByID(c, idDelivery, "h_deliveries", "showConfirmDelivery", "delivery, _ := VS.getDeliveryByID", true)
	idService := delivery.IDServiceReceiver
	serviceReceiver := VS.getServiceByID(c, idService, "h_deliveries", "showConfirmDelivery", "serviceReceiver := VS.getServiceByID", true)
	serviceReceiverHTML := VS.serviceToHTML(c, serviceReceiver)
	itemsChecked := VS.getAllStockCheckedByDelivery(c, idDelivery, "h_deliveries", "showConfirmDelivery", "itemsChecked := VS.getAllStockCheckedByDelivery")
	itemsCheckedHTML := VS.stocksToHTML(c, itemsChecked)
	itemsNOTChecked := VS.getAllStockNOTCheckedByDelivery(c, idDelivery, "h_deliveries", "showConfirmDelivery", "itemsNOTChecked := VS.getAllStockNOTCheckedByDelivery")
	itemsNOTCheckedHTML := VS.stocksToHTML(c, itemsNOTChecked)
	render(c, gin.H{
		"service":         serviceReceiverHTML,
		"close":           delivery.IsComplete,
		"role":            getRole(c),
		"itemsChecked":    itemsCheckedHTML,
		"itemsNOTChecked": itemsNOTCheckedHTML,
	}, "delivery-form-receive.html")
}
func ( VS * Server ) showConfirmDelivery ( c * gin . Context ) { idDelivery , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } delivery , _ := VS . getDeliveryByID ( c , idDelivery , " " , " " , " " , true ) idService := delivery . IDServiceReceiver serviceReceiver := VS . getServiceByID ( c , idService , " " , " " , " " , true ) serviceReceiverHTML := VS . serviceToHTML ( c , serviceReceiver ) itemsChecked := VS . getAllStockCheckedByDelivery ( c , idDelivery , " " , " " , " " ) itemsCheckedHTML := VS . stocksToHTML ( c , itemsChecked ) itemsNOTChecked := VS . getAllStockNOTCheckedByDelivery ( c , idDelivery , " " , " " , " " ) itemsNOTCheckedHTML := VS . stocksToHTML ( c , itemsNOTChecked ) render ( c , gin . H { " " : serviceReceiverHTML , " " : delivery . IsComplete , " " : getRole ( c ) , " " : itemsCheckedHTML , " " : itemsNOTCheckedHTML , } , " " ) }
This handler shows the receive form for the delivery for the Manager in the service, to take photos or scan QR of the items when the delivery is received
This handler shows the receive form for the delivery for the Manager in the service to take photos or scan QR of the items when the delivery is received