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
|
@Override
|
||||||
public void onAccountConnectedStateUpdatedEvent() {
|
public void onAccountConnectedStateUpdatedEvent() {
|
||||||
updateActionLock();
|
updateSale();
|
||||||
view.setCurrentAccount(model.getCurrentAccount());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user