Skip to content

Commit

Permalink
BB-10457: Front Store Admin can't convert Quote to order if quote was…
Browse files Browse the repository at this point in the history
… assigned to Customer (#16968)

BB-10457: Front Store Admin can't convert Quote to order if quote was assigned to Customer
  • Loading branch information
Mykhailo Sulyma authored and d-beekeeper committed Mar 2, 2018
1 parent 69a73cc commit bf1336c
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
@@ -0,0 +1,56 @@
Oro\Bundle\LocaleBundle\Entity\LocalizedFallbackValue:
productName1:
string: 'Product1'

Oro\Bundle\ProductBundle\Entity\ProductUnitPrecision:
precision1:
unit: '@item'
precision: '1'
sell: true

Oro\Bundle\ProductBundle\Entity\Product:
product1:
sku: 'psku1'
type: 'simple'
organization: '@organization'
owner: '@business_unit'
primaryUnitPrecision: '@precision1'
attributeFamily: '@defaultProductFamily'
addName: ['@productName1']
inventoryStatus: '@enumInventoryStatuses'
status: 'enabled'

Oro\Bundle\SaleBundle\Entity\Quote:
quote1:
currency: 'USD'
customer: '@customer1'
owner: '@admin'
organization: '@organization'
poNumber: 'Q123'
qid: '1'
website: '@website1'

Oro\Bundle\SaleBundle\Entity\QuoteProduct:
quoteProduct1:
product: '@product1'
quote: '@quote1'

Oro\Bundle\CurrencyBundle\Entity\Price (local):
quoteProductPrice1:
value: 5
currency: USD

Oro\Bundle\SaleBundle\Entity\QuoteProductOffer:
quoteProductOffer1:
quote_product: '@quoteProduct1'
product_unit: '@item'
price: '@quoteProductPrice1'
quantity: 5
allow_increments: true

Oro\Bundle\SaleBundle\Entity\QuoteProductRequest:
quoteProductRequest1:
quote_product: '@quoteProduct1'
product_unit: '@item'
price: '@quoteProductPrice1'
quantity: 5
@@ -0,0 +1,27 @@
@ticket-BB-10457
@fixture-OroCustomerBundle:BuyerCustomerFixture.yml
@fixture-OroSaleBundle:QuoteToOrderFixture.yml

Feature: Convert Quote without customer user assignment to order
In order to process quotes on front store
As a Frontend admin
I need to be able to convert quote to order when quote was assigned only to Customer

Scenario: Feature Background
Given I login as administrator
And I go to Sales / Quotes
When I click "Send to Customer" on row "Q123" in grid
And I fill form with:
| To | NancyJSallee@example.org |
And I click "Send"
Then I should see "Quote #1 successfully sent to customer" flash message

Scenario: Create order from quote
Given I signed in as NancyJSallee@example.org on the store frontend
And I click "Account"
And I click "Quotes"
And I click view Q123 in grid
When I click "Accept and Submit to Order"
And I click "Submit"
Then Checkout "Order Summary Products Grid" should contain products:
| Product1 | 5 | items |

0 comments on commit bf1336c

Please sign in to comment.