Don't run price procedure in transaction
This commit is contained in:
parent
6eedcc687f
commit
7c683cf13e
@ -7,6 +7,7 @@ Imports MultiTool.Common.Constants
|
|||||||
Imports MultiTool.Common.Templates
|
Imports MultiTool.Common.Templates
|
||||||
Imports MultiTool.Common.Exceptions
|
Imports MultiTool.Common.Exceptions
|
||||||
Imports MultiTool.Common.Documents
|
Imports MultiTool.Common.Documents
|
||||||
|
Imports System.Data.SqlClient
|
||||||
|
|
||||||
Namespace Winline
|
Namespace Winline
|
||||||
Public Class WinlineData
|
Public Class WinlineData
|
||||||
@ -436,7 +437,11 @@ Namespace Winline
|
|||||||
@pResultType = 'CalcPricing';
|
@pResultType = 'CalcPricing';
|
||||||
SET NOCOUNT OFF;
|
SET NOCOUNT OFF;
|
||||||
"
|
"
|
||||||
Dim oTable As DataTable = Await Database.GetDatatableAsync(oSQL)
|
|
||||||
|
Dim oTable As DataTable
|
||||||
|
Using oConnection As SqlConnection = Database.GetConnection()
|
||||||
|
oTable = Await Database.GetDatatableWithConnectionObjectAsync(oSQL, oConnection, MSSQLServer.TransactionMode.NoTransaction)
|
||||||
|
End Using
|
||||||
|
|
||||||
If oTable.Rows.Count = 0 Then
|
If oTable.Rows.Count = 0 Then
|
||||||
Logger.Debug("Price for article [{0}] and Account [{1}] was not found in Mandator: [{2}]", pArticle, pAccountNumber, pMandator.Id)
|
Logger.Debug("Price for article [{0}] and Account [{1}] was not found in Mandator: [{2}]", pArticle, pAccountNumber, pMandator.Id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user