|
@@ -267,14 +267,18 @@ public class StoreApplyHelper
|
|
|
foreach(string SnIdString in SnIdList)
|
|
|
{
|
|
|
int SnId = int.Parse(SnIdString);
|
|
|
- PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == SnId) ?? new PosMachinesTwo();
|
|
|
- if(pos.BrandId == 1 || pos.BrandId == 2 || pos.BrandId == 4 || pos.BrandId == 6 || pos.BrandId == 7 || pos.BrandId == 8)
|
|
|
+ PreSendStockDetail prepos = db.PreSendStockDetail.FirstOrDefault(m => m.SnId == SnId) ?? new PreSendStockDetail();
|
|
|
+ if(prepos.AuthFlag == 0)
|
|
|
{
|
|
|
- Amount += 200;
|
|
|
- }
|
|
|
- else if(pos.BrandId == 3 || pos.BrandId == 5 || pos.BrandId == 9)
|
|
|
- {
|
|
|
- Amount += 300;
|
|
|
+ PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == SnId) ?? new PosMachinesTwo();
|
|
|
+ if(pos.BrandId == 1 || pos.BrandId == 2 || pos.BrandId == 4 || pos.BrandId == 6 || pos.BrandId == 7 || pos.BrandId == 8)
|
|
|
+ {
|
|
|
+ Amount += 200;
|
|
|
+ }
|
|
|
+ else if(pos.BrandId == 3 || pos.BrandId == 5 || pos.BrandId == 9)
|
|
|
+ {
|
|
|
+ Amount += 300;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if(Amount > 0)
|