family 1 år sedan
förälder
incheckning
a91e239834
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      app/common/repositories/store/product/ProductRepository.php

+ 2 - 2
app/common/repositories/store/product/ProductRepository.php

@@ -428,8 +428,8 @@ class ProductRepository extends BaseRepository
428 428
                         "share_num"     => 0,
429 429
                         "stock_num"     => 0,
430 430
                         "shares_num"    => 0,
431
+                        'gong_mer_profit' => $value['gong_mer_profit'] ?? 0.00,
431 432
                         'gong_market_price' => $value['gong_market_price'] ?? 0.00,
432
-                        'gong_mer_price' => $value['gong_mer_price'] ?? 0.00,
433 433
                         'plate_mer_profit' => $value['plate_mer_profit'] ?? 0.00,
434 434
                     ];
435 435
                 } else {
@@ -455,8 +455,8 @@ class ProductRepository extends BaseRepository
455 455
                         "share_num"     => (isset($value['share_num']) && $value['share_num'] !== '') ? $value['share_num'] : 0,
456 456
                         "stock_num"     => (isset($value['stock_num']) && $value['stock_num'] !== '') ? $value['stock_num'] : 0,
457 457
                         "shares_num"    => (isset($value['shares_num']) && $value['shares_num'] !== '') ? $value['shares_num'] : 0,
458
+                        'gong_mer_profit' => $value['gong_mer_profit'] ?? 0.00,
458 459
                         'gong_market_price' => $value['gong_market_price'] ?? 0.00,
459
-                        'gong_mer_price' => $value['gong_mer_price'] ?? 0.00,
460 460
                         'plate_mer_profit' => $value['plate_mer_profit'] ?? 0.00,
461 461
                     ];
462 462
                 }