|
@@ -87,10 +87,13 @@ func ConsumablesGoodDelivery(orgID int64, patient_id int64, record_time int64, g
|
87
|
87
|
IsCheck: 1,
|
88
|
88
|
OverCount: sum_count,
|
89
|
89
|
RegisterNumber: warehouse.RegisterNumber,
|
|
90
|
+ BuyPrice: warehouse.PackingPrice,
|
90
|
91
|
}
|
91
|
92
|
warehouseOutInfo.Count = count
|
92
|
93
|
if orgID == 9671 || orgID == 10265 {
|
93
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
94
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
|
95
|
+
|
|
96
|
+ fmt.Println("加个我我我哦我我我", goodsInfo.PackingPrice)
|
94
|
97
|
warehouseOutInfo.Price = goodsInfo.PackingPrice
|
95
|
98
|
}
|
96
|
99
|
_, errcodes := GetWarehouseOutInfoIsExistOne(goods.GoodId, patient_id, record_time, goods.ProjectId)
|
|
@@ -156,7 +159,7 @@ func ConsumablesGoodDelivery(orgID int64, patient_id int64, record_time int64, g
|
156
|
159
|
RegisterNumber: warehouse.RegisterNumber,
|
157
|
160
|
}
|
158
|
161
|
if orgID == 9671 || orgID == 10265 {
|
159
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
162
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
160
|
163
|
flow.Price = goodsInfo.PackingPrice
|
161
|
164
|
flow.BuyPrice = goodsInfo.BuyPrice
|
162
|
165
|
}
|
|
@@ -227,7 +230,7 @@ func ConsumablesGoodDelivery(orgID int64, patient_id int64, record_time int64, g
|
227
|
230
|
IsCheck: 1,
|
228
|
231
|
}
|
229
|
232
|
if orgID == 9671 || orgID == 10265 {
|
230
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
233
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
231
|
234
|
cancelStockInfo.Price = goodsInfo.PackingPrice
|
232
|
235
|
}
|
233
|
236
|
CreateCancelStockInfoOne(&cancelStockInfo)
|
|
@@ -271,7 +274,7 @@ func ConsumablesGoodDelivery(orgID int64, patient_id int64, record_time int64, g
|
271
|
274
|
RegisterNumber: warehouse.RegisterNumber,
|
272
|
275
|
}
|
273
|
276
|
if orgID == 9671 || orgID == 10265 {
|
274
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
277
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
275
|
278
|
flow.Price = goodsInfo.PackingPrice
|
276
|
279
|
flow.BuyPrice = goodsInfo.BuyPrice
|
277
|
280
|
}
|
|
@@ -351,7 +354,7 @@ func ConsumablesGoodDelivery(orgID int64, patient_id int64, record_time int64, g
|
351
|
354
|
}
|
352
|
355
|
warehouseOutInfo.Count = stock_number
|
353
|
356
|
if orgID == 9671 || orgID == 10265 {
|
354
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
357
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
355
|
358
|
warehouseOutInfo.Price = goodsInfo.PackingPrice
|
356
|
359
|
}
|
357
|
360
|
_, errcodes := GetWarehouseOutInfoIsExistOne(goods.GoodId, patient_id, record_time, goods.ProjectId)
|
|
@@ -416,7 +419,7 @@ func ConsumablesGoodDelivery(orgID int64, patient_id int64, record_time int64, g
|
416
|
419
|
RegisterNumber: warehouse.RegisterNumber,
|
417
|
420
|
}
|
418
|
421
|
if orgID == 9671 || orgID == 10265 {
|
419
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
422
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
420
|
423
|
flow.Price = goodsInfo.PackingPrice
|
421
|
424
|
flow.BuyPrice = goodsInfo.BuyPrice
|
422
|
425
|
}
|
|
@@ -483,7 +486,7 @@ func ConsumablesGoodDelivery(orgID int64, patient_id int64, record_time int64, g
|
483
|
486
|
IsCheck: 1,
|
484
|
487
|
}
|
485
|
488
|
if orgID == 9671 || orgID == 10265 {
|
486
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
489
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
487
|
490
|
cancelStockInfo.Price = goodsInfo.PackingPrice
|
488
|
491
|
}
|
489
|
492
|
CreateCancelStockInfoOne(&cancelStockInfo)
|
|
@@ -527,7 +530,7 @@ func ConsumablesGoodDelivery(orgID int64, patient_id int64, record_time int64, g
|
527
|
530
|
RegisterNumber: warehouse.RegisterNumber,
|
528
|
531
|
}
|
529
|
532
|
if orgID == 9671 || orgID == 10265 {
|
530
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
533
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
531
|
534
|
flow.Price = goodsInfo.PackingPrice
|
532
|
535
|
flow.BuyPrice = goodsInfo.BuyPrice
|
533
|
536
|
}
|
|
@@ -3420,7 +3423,7 @@ func ConsumablesGoodDeliveryFivety(orgID int64, patient_id int64, record_time in
|
3420
|
3423
|
}
|
3421
|
3424
|
warehouseOutInfo.Count = count
|
3422
|
3425
|
if orgID == 9671 || orgID == 10265 {
|
3423
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
3426
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
3424
|
3427
|
warehouseOutInfo.Price = goodsInfo.PackingPrice
|
3425
|
3428
|
}
|
3426
|
3429
|
_, errcodes := GetWarehouseOutInfoIsExistOne(goods.GoodId, patient_id, record_time, goods.ProjectId)
|
|
@@ -3490,7 +3493,7 @@ func ConsumablesGoodDeliveryFivety(orgID int64, patient_id int64, record_time in
|
3490
|
3493
|
RegisterNumber: warehouse.RegisterNumber,
|
3491
|
3494
|
}
|
3492
|
3495
|
if orgID == 9671 || orgID == 10265 {
|
3493
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
3496
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
3494
|
3497
|
flow.Price = goodsInfo.PackingPrice
|
3495
|
3498
|
flow.BuyPrice = goodsInfo.BuyPrice
|
3496
|
3499
|
}
|
|
@@ -3565,7 +3568,7 @@ func ConsumablesGoodDeliveryFivety(orgID int64, patient_id int64, record_time in
|
3565
|
3568
|
IsCheck: 1,
|
3566
|
3569
|
}
|
3567
|
3570
|
if orgID == 9671 || orgID == 10265 {
|
3568
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
3571
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
3569
|
3572
|
cancelStockInfo.Price = goodsInfo.PackingPrice
|
3570
|
3573
|
}
|
3571
|
3574
|
|
|
@@ -3613,7 +3616,7 @@ func ConsumablesGoodDeliveryFivety(orgID int64, patient_id int64, record_time in
|
3613
|
3616
|
RegisterNumber: warehouse.RegisterNumber,
|
3614
|
3617
|
}
|
3615
|
3618
|
if orgID == 9671 || orgID == 10265 {
|
3616
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
3619
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
3617
|
3620
|
flow.Price = goodsInfo.PackingPrice
|
3618
|
3621
|
flow.BuyPrice = goodsInfo.BuyPrice
|
3619
|
3622
|
}
|
|
@@ -3709,7 +3712,7 @@ func ConsumablesGoodDeliveryFivety(orgID int64, patient_id int64, record_time in
|
3709
|
3712
|
}
|
3710
|
3713
|
warehouseOutInfo.Count = stock_number
|
3711
|
3714
|
if orgID == 9671 || orgID == 10265 {
|
3712
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
3715
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
3713
|
3716
|
warehouseOutInfo.Price = goodsInfo.PackingPrice
|
3714
|
3717
|
}
|
3715
|
3718
|
_, errcodes := GetWarehouseOutInfoIsExistOne(goods.GoodId, patient_id, record_time, goods.ProjectId)
|
|
@@ -3781,7 +3784,7 @@ func ConsumablesGoodDeliveryFivety(orgID int64, patient_id int64, record_time in
|
3781
|
3784
|
RegisterNumber: warehouse.RegisterNumber,
|
3782
|
3785
|
}
|
3783
|
3786
|
if orgID == 9671 || orgID == 10265 {
|
3784
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
3787
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
3785
|
3788
|
flow.Price = goodsInfo.PackingPrice
|
3786
|
3789
|
flow.BuyPrice = goodsInfo.BuyPrice
|
3787
|
3790
|
}
|
|
@@ -3851,7 +3854,7 @@ func ConsumablesGoodDeliveryFivety(orgID int64, patient_id int64, record_time in
|
3851
|
3854
|
IsCheck: 1,
|
3852
|
3855
|
}
|
3853
|
3856
|
if orgID == 9671 || orgID == 10265 {
|
3854
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
3857
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
3855
|
3858
|
cancelStockInfo.Price = goodsInfo.PackingPrice
|
3856
|
3859
|
}
|
3857
|
3860
|
err := tx.Create(&cancelStockInfo).Error
|
|
@@ -3898,7 +3901,7 @@ func ConsumablesGoodDeliveryFivety(orgID int64, patient_id int64, record_time in
|
3898
|
3901
|
RegisterNumber: warehouse.RegisterNumber,
|
3899
|
3902
|
}
|
3900
|
3903
|
if orgID == 9671 || orgID == 10265 {
|
3901
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
3904
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
3902
|
3905
|
flow.Price = goodsInfo.PackingPrice
|
3903
|
3906
|
flow.BuyPrice = goodsInfo.BuyPrice
|
3904
|
3907
|
}
|
|
@@ -4003,7 +4006,7 @@ func ConsumablesGoodDeliveryNew(orgID int64, patient_id int64, record_time int64
|
4003
|
4006
|
}
|
4004
|
4007
|
warehouseOutInfo.Count = count
|
4005
|
4008
|
if orgID == 9671 || orgID == 10265 {
|
4006
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
4009
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
4007
|
4010
|
warehouseOutInfo.Price = goodsInfo.PackingPrice
|
4008
|
4011
|
}
|
4009
|
4012
|
_, errcodes := GetWarehouseOutInfoIsExistOne(goods.GoodId, patient_id, record_time, goods.ProjectId)
|
|
@@ -4074,7 +4077,7 @@ func ConsumablesGoodDeliveryNew(orgID int64, patient_id int64, record_time int64
|
4074
|
4077
|
RegisterNumber: warehouse.RegisterNumber,
|
4075
|
4078
|
}
|
4076
|
4079
|
if orgID == 9671 || orgID == 10265 {
|
4077
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
4080
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
4078
|
4081
|
flow.Price = goodsInfo.PackingPrice
|
4079
|
4082
|
flow.BuyPrice = goodsInfo.BuyPrice
|
4080
|
4083
|
}
|
|
@@ -4150,7 +4153,7 @@ func ConsumablesGoodDeliveryNew(orgID int64, patient_id int64, record_time int64
|
4150
|
4153
|
IsCheck: 1,
|
4151
|
4154
|
}
|
4152
|
4155
|
if orgID == 9671 || orgID == 10265 {
|
4153
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
4156
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
4154
|
4157
|
cancelStockInfo.Price = goodsInfo.PackingPrice
|
4155
|
4158
|
}
|
4156
|
4159
|
|
|
@@ -4198,7 +4201,7 @@ func ConsumablesGoodDeliveryNew(orgID int64, patient_id int64, record_time int64
|
4198
|
4201
|
RegisterNumber: warehouse.RegisterNumber,
|
4199
|
4202
|
}
|
4200
|
4203
|
if orgID == 9671 || orgID == 10265 {
|
4201
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
4204
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
4202
|
4205
|
flow.Price = goodsInfo.PackingPrice
|
4203
|
4206
|
flow.BuyPrice = goodsInfo.BuyPrice
|
4204
|
4207
|
}
|
|
@@ -4294,7 +4297,7 @@ func ConsumablesGoodDeliveryNew(orgID int64, patient_id int64, record_time int64
|
4294
|
4297
|
}
|
4295
|
4298
|
warehouseOutInfo.Count = stock_number
|
4296
|
4299
|
if orgID == 9671 || orgID == 10265 {
|
4297
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
4300
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
4298
|
4301
|
warehouseOutInfo.Price = goodsInfo.PackingPrice
|
4299
|
4302
|
}
|
4300
|
4303
|
_, errcodes := GetWarehouseOutInfoIsExistOne(goods.GoodId, patient_id, record_time, goods.ProjectId)
|
|
@@ -4365,7 +4368,7 @@ func ConsumablesGoodDeliveryNew(orgID int64, patient_id int64, record_time int64
|
4365
|
4368
|
RegisterNumber: warehouse.RegisterNumber,
|
4366
|
4369
|
}
|
4367
|
4370
|
if orgID == 9671 || orgID == 10265 {
|
4368
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
4371
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
4369
|
4372
|
flow.Price = goodsInfo.PackingPrice
|
4370
|
4373
|
flow.BuyPrice = goodsInfo.BuyPrice
|
4371
|
4374
|
}
|
|
@@ -4437,7 +4440,7 @@ func ConsumablesGoodDeliveryNew(orgID int64, patient_id int64, record_time int64
|
4437
|
4440
|
IsCheck: 1,
|
4438
|
4441
|
}
|
4439
|
4442
|
if orgID == 9671 || orgID == 10265 {
|
4440
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
4443
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
4441
|
4444
|
cancelStockInfo.Price = goodsInfo.PackingPrice
|
4442
|
4445
|
}
|
4443
|
4446
|
|
|
@@ -4485,7 +4488,7 @@ func ConsumablesGoodDeliveryNew(orgID int64, patient_id int64, record_time int64
|
4485
|
4488
|
RegisterNumber: warehouse.RegisterNumber,
|
4486
|
4489
|
}
|
4487
|
4490
|
if orgID == 9671 || orgID == 10265 {
|
4488
|
|
- goodsInfo, _ := FindeGoodInfo(orgID, goods.ProjectId)
|
|
4491
|
+ goodsInfo, _ := FindeGoodInfo(orgID, goods.GoodId)
|
4489
|
4492
|
flow.Price = goodsInfo.PackingPrice
|
4490
|
4493
|
flow.BuyPrice = goodsInfo.BuyPrice
|
4491
|
4494
|
}
|