mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
Module Client, écran SaleScreen : correction d'un bug empêchant la mise à jour de la valeur "ordered by"
This commit is contained in:
parent
fc1f32799d
commit
a2cf073de8
@ -42,8 +42,7 @@ class SaleScreenController {
|
||||
|
||||
@Override
|
||||
public void onAccountConnectedStateUpdatedEvent() {
|
||||
updateActionLock();
|
||||
view.setCurrentAccount(model.getCurrentAccount());
|
||||
updateSale();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -103,6 +103,7 @@ class SaleScreenModel {
|
||||
accountService.addListener(new IAccountListener() {
|
||||
@Override
|
||||
public void onAccountStatusChangedEvent(boolean status) {
|
||||
currentSaleBuilder.orderedBy(accountService.getCurrentAccount());
|
||||
fireAccountConnectedStatusUpdateEvent();
|
||||
}
|
||||
|
||||
|
@ -221,8 +221,4 @@ class SaleScreenView implements IFXComponent {
|
||||
void setValidationButtonEnabled(boolean validationButtonEnabled) {
|
||||
validator.setValidationButtonEnable(validationButtonEnabled);
|
||||
}
|
||||
|
||||
public void setCurrentAccount(Account currentAccount) {
|
||||
Platform.runLater(()->saleMakerAccountDisplayer.setText(GUIStringTool.getAccountStringConverter().toString(currentAccount)));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user