ListAndDetailsSalesPane

fun ListAndDetailsSalesPane(onAddSale: () -> Unit = {}, onEditSale: (Long) -> Unit = {}, onDuplicateSale: (Long) -> Unit = {})

A Composable that provides an adaptive list-detail layout for sales.

It uses NavigableSupportingPaneScaffold to display the sales list in the main pane and sale details in a supporting pane when a sale is selected.

Parameters

onAddSale

Callback invoked when the user chooses to add a new sale.

onEditSale

Callback invoked when the user chooses to edit an existing sale.

onDuplicateSale

Callback invoked when the user chooses to duplicate a sale.