variants units

This commit is contained in:
2026-09-02 16:01:24 +05:30
parent 09efc5403f
commit e45da9f7df
8 changed files with 374 additions and 61 deletions

View File

@@ -224,8 +224,8 @@ func (r *deliveriesRepository) UpdateDelivery(data models.UpdateDeliveryStatus)
case "picked":
if data.Pickuplocationid != 0 && data.Deliverytype != "B" {
cloc.Latitude = data.Riderslat
cloc.Longitude = data.Riderslon
cloc.Latitude = models.FlexibleString(data.Riderslat)
cloc.Longitude = models.FlexibleString(data.Riderslon)
cloc.Address = data.Address
cloc.Suburb = data.Suburb
cloc.City = data.City
@@ -247,8 +247,8 @@ func (r *deliveriesRepository) UpdateDelivery(data models.UpdateDeliveryStatus)
}
if data.Deliverylocationid != 0 && data.Deliverytype != "B" {
cloc.Latitude = data.Deliverylat
cloc.Longitude = data.Deliverylong
cloc.Latitude = models.FlexibleString(data.Deliverylat)
cloc.Longitude = models.FlexibleString(data.Deliverylong)
cloc.Address = data.Address
cloc.Suburb = data.Suburb
cloc.City = data.City