Module Client, écran SaleScreen : correction d'un bug empêchant la mise à jour de la valeur "ordered by"

This commit is contained in:
Notmoo-PC\Notmoo 2017-11-05 21:26:22 +01:00
parent fc1f32799d
commit a2cf073de8
3 changed files with 2 additions and 6 deletions

View File

@ -42,8 +42,7 @@ class SaleScreenController {
@Override
public void onAccountConnectedStateUpdatedEvent() {
updateActionLock();
view.setCurrentAccount(model.getCurrentAccount());
updateSale();
}
@Override

View File

@ -103,6 +103,7 @@ class SaleScreenModel {
accountService.addListener(new IAccountListener() {
@Override
public void onAccountStatusChangedEvent(boolean status) {
currentSaleBuilder.orderedBy(accountService.getCurrentAccount());
fireAccountConnectedStatusUpdateEvent();
}

View File

@ -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)));
}
}