add logic
parent
c76bc5f9d2
commit
8789160234
|
|
@ -46,7 +46,7 @@ ThunkAction<AppState> addSellItem({Good good, String excise}) {
|
|||
for (Map<String, dynamic> map in set) {
|
||||
Transaction _transaction = Transaction.fromMap(map);
|
||||
ProductDao _product = ProductDao.fromMap(jsonDecode(_transaction.data));
|
||||
if(_product.id == good.id) {
|
||||
if (_product.id == good.id && _product.excise == excise) {
|
||||
transaction = _transaction;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue