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