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 @Override
public void onAccountConnectedStateUpdatedEvent() { public void onAccountConnectedStateUpdatedEvent() {
updateActionLock(); updateSale();
view.setCurrentAccount(model.getCurrentAccount());
} }
@Override @Override

View File

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

View File

@ -221,8 +221,4 @@ class SaleScreenView implements IFXComponent {
void setValidationButtonEnabled(boolean validationButtonEnabled) { void setValidationButtonEnabled(boolean validationButtonEnabled) {
validator.setValidationButtonEnable(validationButtonEnabled); validator.setValidationButtonEnable(validationButtonEnabled);
} }
public void setCurrentAccount(Account currentAccount) {
Platform.runLater(()->saleMakerAccountDisplayer.setText(GUIStringTool.getAccountStringConverter().toString(currentAccount)));
}
} }