New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#VP-2481 add shipment item select #157
Conversation
toolbarCommands: [ | ||
{ | ||
name: "orders.commands.add-selected", icon: 'fa fa-plus', | ||
executeMethod: function (blade) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blade.toolbarCommands = [ | ||
{ | ||
name: "orders.commands.add-item", icon: 'fa fa-plus', | ||
executeMethod: function (blade) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add more than 1 line item to the shipment through the interface?
If so, could more than 1 line item be saved in one shipment item?
As I understand, one shipmentItem has only one LineItemId
yes, we could add more then 1 item to shipment items. |
src/VirtoCommerce.OrdersModule.Web/Scripts/blades/customerOrder-items-select.js
Show resolved
Hide resolved
{ | ||
ModelLineItem = shipmentItem.LineItem; | ||
} | ||
ModelLineItem = shipmentItem.LineItem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you test these scenarios to be confident that you don't introduce regress bugs?
- save new order with the new shipment with items
- update exists order shipment with new shipment items
- update exists order with the new shipment with items
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, there is no scenario - save new order with the new shipment with items.
How to do it? Without exists LineItemId?
there are no links with Order.LineItemId.
Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'LineItemId', table 'VirtoCommerce3.dbo.OrderShipmentItem'; column does not allow nulls. INSERT fails.
@akak1977 saving new shipment - fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…VP-2481-add-shipment-item-select
SonarQube analysis reported 4 issues Watch the comments in this conversation to review them. 2 extra issuesNote: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:
|
No description provided.