mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
Merge branch 'fix/purchase' into 'development'
[FIX][BE]: fix value null to string vehicle_number field See merge request mbugroup/lti-api!420
This commit is contained in:
@@ -248,7 +248,7 @@ func (r *PurchaseRepositoryImpl) UpdateReceivingDetails(
|
||||
if upd.VehicleNumber != nil {
|
||||
data["vehicle_number"] = upd.VehicleNumber
|
||||
} else if upd.ClearVehicleNumber {
|
||||
data["vehicle_number"] = gorm.Expr("NULL")
|
||||
data["vehicle_number"] = ""
|
||||
}
|
||||
if upd.WarehouseID != nil && *upd.WarehouseID != 0 {
|
||||
data["warehouse_id"] = upd.WarehouseID
|
||||
|
||||
Reference in New Issue
Block a user