|
|
@ -39,13 +39,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
_detailRepository = detailRepository; |
|
|
|
_notRepository = notRepository; |
|
|
|
_service = service; |
|
|
|
|
|
|
|
} |
|
|
|
public virtual async Task<List<string>> GenerateSettlementOrder(List<BBAC_NOT_SA_DETAIL> p_list) |
|
|
|
{ |
|
|
|
|
|
|
|
var first = p_list.FirstOrDefault(); |
|
|
|
|
|
|
|
List<string> errors = new List<string>(); |
|
|
|
var priceErrors = await _service.CheckPriceList(p_list, first.Site).ConfigureAwait(false); |
|
|
|
if (priceErrors.Count > 0) |
|
|
@ -59,7 +56,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
{ |
|
|
|
return errors; |
|
|
|
} |
|
|
|
|
|
|
|
var billNumber = OrderNumberGenerator.GenerateOrderNumber("N"); |
|
|
|
var _entity = new BBAC_CAN_SA(); |
|
|
|
_entity.SetId(Guid.NewGuid()); |
|
|
|