Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王宇航
supplier
Commits
f17ebe78
Commit
f17ebe78
authored
Jun 18, 2021
by
张建升
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
庫存盤點 出庫流水bug
parent
01716094
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/WarehousingInventoryPresenter.java
+6
-5
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/warehouse/SnCodeListFragment.java
+2
-2
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/warehouse/WarehousingInventoryFragment.java
+2
-2
No files found.
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/presenter/WarehousingInventoryPresenter.java
View file @
f17ebe78
...
...
@@ -74,20 +74,21 @@ public class WarehousingInventoryPresenter extends BasePresenter<WarehousingInve
}
public
void
consumeWareHousing
(
String
foodNo
,
int
consumeQuantity
)
{
consumeWareHousing
(
getPurchaseConsumeSnBean
(
foodNo
,
consumeQuantity
,
null
));
public
void
consumeWareHousing
(
String
foodNo
,
int
purchaseFoodId
,
int
consumeQuantity
)
{
consumeWareHousing
(
getPurchaseConsumeSnBean
(
foodNo
,
consumeQuantity
,
purchaseFoodId
,
null
));
}
public
void
consumeWareHousing
(
String
foodNo
,
int
consumeQuantity
,
List
<
PurchaseFoodEncodeSn
>
snCodes
)
{
consumeWareHousing
(
getPurchaseConsumeSnBean
(
foodNo
,
consumeQuantity
,
snCodes
));
public
void
consumeWareHousing
(
String
foodNo
,
int
consumeQuantity
,
int
purchaseFoodId
,
List
<
PurchaseFoodEncodeSn
>
snCodes
)
{
consumeWareHousing
(
getPurchaseConsumeSnBean
(
foodNo
,
consumeQuantity
,
purchaseFoodId
,
snCodes
));
}
public
PurchaseConsumeSnBean
getPurchaseConsumeSnBean
(
String
foodNo
,
int
consumeQuantity
,
List
<
PurchaseFoodEncodeSn
>
snCodes
)
{
public
PurchaseConsumeSnBean
getPurchaseConsumeSnBean
(
String
foodNo
,
int
consumeQuantity
,
int
purchaseFoodId
,
List
<
PurchaseFoodEncodeSn
>
snCodes
)
{
PurchaseConsumeSnBean
purchaseConsumeSnBean
=
new
PurchaseConsumeSnBean
();
purchaseConsumeSnBean
.
brandId
=
AppConstant
.
getBrandId
();
purchaseConsumeSnBean
.
restaurantId
=
AppConstant
.
getRestaurantId
();
purchaseConsumeSnBean
.
foodNo
=
foodNo
;
purchaseConsumeSnBean
.
consumeQuantity
=
consumeQuantity
;
purchaseConsumeSnBean
.
purchaseFoodId
=
String
.
valueOf
(
purchaseFoodId
);
purchaseConsumeSnBean
.
purchaseConsumeReasonId
=
PurchaseConstant
.
INVENTORY_CONSUME_ID
;
if
(
CollectionUtils
.
isNotNullOrEmpty
(
snCodes
))
{
purchaseConsumeSnBean
.
encodeFoodNos
=
new
ArrayList
<>();
...
...
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/warehouse/SnCodeListFragment.java
View file @
f17ebe78
...
...
@@ -90,9 +90,9 @@ public class SnCodeListFragment extends BaseSupplyChainFragment<SnCodeListPresen
//查出庫
mPresenter
.
querySnCodeList
(
infoType
,
warehouseDetailsBean
.
getPurchaseConsumeNoId
());
if
(
warehouseDetailsBean
.
getFoodQuantity
()
<
0
)
{
tvHousingNum
.
setText
(
String
.
format
(
getString
(
R
.
string
.
str_format_positive
),
Math
.
abs
(
warehouseDetailsBean
.
get
Food
Quantity
())
+
""
));
tvHousingNum
.
setText
(
String
.
format
(
getString
(
R
.
string
.
str_format_positive
),
Math
.
abs
(
warehouseDetailsBean
.
get
Consume
Quantity
())
+
""
));
}
else
{
tvHousingNum
.
setText
(
String
.
format
(
getString
(
R
.
string
.
str_format_less
),
warehouseDetailsBean
.
get
Food
Quantity
()
+
""
));
tvHousingNum
.
setText
(
String
.
format
(
getString
(
R
.
string
.
str_format_less
),
warehouseDetailsBean
.
get
Consume
Quantity
()
+
""
));
}
}
else
{
//查剩餘
...
...
component-supply-chain/src/main/java/com/gingersoft/supply_chain/mvp/ui/fragment/warehouse/WarehousingInventoryFragment.java
View file @
f17ebe78
...
...
@@ -263,7 +263,7 @@ public class WarehousingInventoryFragment extends BaseSupplyChainFragment<Wareho
edWarehouseLoss
.
requestFocus
();
}
else
{
int
remainingAmount
=
purchaseWarehousingOrderDetailsVo
.
getFoodNum
()
-
inventoryNum
;
mPresenter
.
consumeWareHousing
(
purchaseWarehousingOrderDetailsVo
.
getFoodNo
(),
remainingAmount
);
mPresenter
.
consumeWareHousing
(
purchaseWarehousingOrderDetailsVo
.
getFoodNo
(),
purchaseWarehousingOrderDetailsVo
.
getId
(),
remainingAmount
);
}
}
}
else
if
(
v
.
getId
()
==
R
.
id
.
id_inventory
)
{
...
...
@@ -277,7 +277,7 @@ public class WarehousingInventoryFragment extends BaseSupplyChainFragment<Wareho
showMessage
(
"請掃碼盤點Sn碼"
);
return
;
}
mPresenter
.
consumeWareHousing
(
purchaseWarehousingOrderDetailsVo
.
getFoodNo
(),
purchaseWarehousingOrderDetailsVo
.
getFoodNum
()
-
scanResult
.
size
(),
scanResult
);
mPresenter
.
consumeWareHousing
(
purchaseWarehousingOrderDetailsVo
.
getFoodNo
(),
purchaseWarehousingOrderDetailsVo
.
getId
(),
purchaseWarehousingOrderDetailsVo
.
getFoodNum
()
-
scanResult
.
size
(),
scanResult
);
}).
setOnSingerResultListener
((
isAdd
,
snCode
,
currentSnCodeNumber
)
->
{
//單個掃碼回調
edWarehouseLoss
.
setText
(
String
.
valueOf
(
currentSnCodeNumber
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment