yibo 8 years ago
parent
commit
d9356df7ca
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      B3SubstituteKill/BL/Bills/StatPay/StatPayBL.cs

+ 6
- 3
B3SubstituteKill/BL/Bills/StatPay/StatPayBL.cs View File

@ -19,9 +19,12 @@ namespace BWP.B3SubstituteKill.BL
{
protected override void beforeSave(StatPay dmo)
{
dmo.PriceBill_ID = null;
if (dmo.Date.HasValue && dmo.Supplier_ID.HasValue)
dmo.PriceBill_ID = SupplierRpc.GetPriceBillID(dmo.Supplier_ID.Value, dmo.Date.Value);
if (dmo.SourceBillID == null || dmo.PriceBill_ID == null)
{
dmo.PriceBill_ID = null;
if (dmo.Date.HasValue && dmo.Supplier_ID.HasValue)
dmo.PriceBill_ID = SupplierRpc.GetPriceBillID(dmo.Supplier_ID.Value, dmo.Date.Value);
}
foreach (var d in dmo.CostDetails)
d.Money = d.Price * d.Number;
foreach (var d in dmo.CallbackPayDetails)


Loading…
Cancel
Save