mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
Module Client, clss SaleScreenModel : correction d'un bug empêchant la mise à jour du stock lorsqu'une commande est validée
This commit is contained in:
parent
5ba82437bf
commit
27ddeaee0d
@ -31,7 +31,6 @@ class SaleScreenModel {
|
||||
|
||||
private SaleBuilder currentSaleBuilder;
|
||||
private long tempSaleId;
|
||||
private Object currentAccount;
|
||||
|
||||
SaleScreenModel(AccountService accountService, StockService stockService, SaleService saleService) {
|
||||
if(accountService==null || stockService==null || saleService==null)
|
||||
@ -48,6 +47,7 @@ class SaleScreenModel {
|
||||
if(saleId == SaleScreenModel.this.tempSaleId){
|
||||
SaleScreenModel.this.fireSaleValidatedEvent();
|
||||
}
|
||||
stockService.refreshProductList();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user