Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [*] POS: icon button with confirmation step used for clearing the cart [https://github.com/woocommerce/woocommerce-ios/pull/15829]
- [*] Shipping Labels: Fixed a portion of layout issues caused by bigger accessibility content size categories. [https://github.com/woocommerce/woocommerce-ios/pull/15844]
- [*] Shipping Labels: Enable the confirm button on the payment method sheet even when there are no changes. [https://github.com/woocommerce/woocommerce-ios/pull/15856]
- [*] POS: start a new cart by scanning a barcode on the payment success screen [https://github.com/woocommerce/woocommerce-ios/pull/15870]
- [*] Watch app: Fixed connection issue upon fresh install [https://github.com/woocommerce/woocommerce-ios/pull/15867]

22.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwiftUI
struct PointOfSalePaymentSuccessView: View {
let viewModel: PointOfSalePaymentSuccessViewModel
@Environment(\.dynamicTypeSize) var dynamicTypeSize
@Environment(PointOfSaleAggregateModel.self) private var posModel

@State private var isShowingSendReceiptView: Bool = false
@State private var isShowingReceiptNotEligibleBanner: Bool = false
Expand All @@ -24,6 +25,10 @@ struct PointOfSalePaymentSuccessView: View {
}
.padding([.leading, .trailing], dynamicTypeSize.isAccessibilitySize ? nil : POSPadding.small)
.background(Color.posSurfaceBright)
.barcodeScanning { barcode in
posModel.startNewCart()
posModel.barcodeScanned(barcode)
}
}
}
.onAppear {
Expand Down