Ejemplo n.º 1
0
 public async Task <VoidResult> AdvanceReceivedDataSplitAsync(string SessionKey, int CompanyId, int LoginUserId, int CurrencyId, long OriginalReceiptId, AdvanceReceivedSplit[] AdvanceReceivedSplitList)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         await advanceReceivedSplitProcessor.SplitAsync(new AdvanceReceivedSplitSource {
             CompanyId = CompanyId,
             CurrencyId = CurrencyId,
             LoginUserId = LoginUserId,
             OriginalReceiptId = OriginalReceiptId,
             Items = AdvanceReceivedSplitList,
         }, token);
         return new VoidResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
         };
     }, logger));
 }
Ejemplo n.º 2
0
 public async Task <int> AdvanceReceivedDataSplit(AdvanceReceivedSplitSource source, CancellationToken token)
 => await advanceReceivedSplitProcessor.SplitAsync(source, token);