1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* This file is part of the Spryker Commerce OS. |
5
|
|
|
* For full license information, please view the LICENSE file that was distributed with this source code. |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
declare(strict_types = 1); |
9
|
|
|
|
10
|
|
|
namespace Pyz\Zed\Quote; |
11
|
|
|
|
12
|
|
|
use Generated\Shared\Transfer\QuoteTransfer; |
13
|
|
|
use Spryker\Zed\Quote\QuoteConfig as SprykerQuoteConfig; |
14
|
|
|
|
15
|
|
|
class QuoteConfig extends SprykerQuoteConfig |
16
|
|
|
{ |
17
|
|
|
/** |
18
|
|
|
* @return array<string> |
19
|
|
|
*/ |
20
|
|
|
public function getQuoteFieldsAllowedForSaving(): array |
21
|
|
|
{ |
22
|
|
|
return array_merge(parent::getQuoteFieldsAllowedForSaving(), [ |
23
|
|
|
QuoteTransfer::BUNDLE_ITEMS, |
24
|
|
|
QuoteTransfer::CART_NOTE, #CartNoteFeature, |
25
|
|
|
QuoteTransfer::EXPENSES, #QuoteApprovalFeature |
26
|
|
|
QuoteTransfer::VOUCHER_DISCOUNTS, #QuoteApprovalFeature #PromotionsDiscountsFeature |
27
|
|
|
QuoteTransfer::CART_RULE_DISCOUNTS, #QuoteApprovalFeature #PromotionsDiscountsFeature |
28
|
|
|
QuoteTransfer::PROMOTION_ITEMS, #QuoteApprovalFeature #PromotionsDiscountsFeature |
29
|
|
|
QuoteTransfer::IS_LOCKED, #QuoteApprovalFeature |
30
|
|
|
QuoteTransfer::QUOTE_REQUEST_VERSION_REFERENCE, |
31
|
|
|
QuoteTransfer::QUOTE_REQUEST_REFERENCE, |
32
|
|
|
QuoteTransfer::IS_ORDER_PLACED_SUCCESSFULLY, |
33
|
|
|
QuoteTransfer::AMENDMENT_ORDER_REFERENCE, |
34
|
|
|
QuoteTransfer::QUOTE_PROCESS_FLOW, |
35
|
|
|
QuoteTransfer::ORIGINAL_SALES_ORDER_ITEM_UNIT_PRICES, |
36
|
|
|
QuoteTransfer::ORIGINAL_SALES_ORDER_ITEMS, |
37
|
|
|
]); |
38
|
|
|
} |
39
|
|
|
} |
40
|
|
|
|