Fix missing document numbers
This commit is contained in:
parent
14ac6875c5
commit
edcdf770b7
@ -928,19 +928,19 @@ Namespace Winline
|
|||||||
FirstOrDefault()
|
FirstOrDefault()
|
||||||
|
|
||||||
Select Case oDocumentType
|
Select Case oDocumentType
|
||||||
Case 1
|
Case 1, -1
|
||||||
oDocumentNumber = pDataRow.Item("OFFER_NUMBER")
|
oDocumentNumber = pDataRow.Item("OFFER_NUMBER")
|
||||||
oDocumentDate = pDataRow.Item("OFFER_DATE")
|
oDocumentDate = pDataRow.Item("OFFER_DATE")
|
||||||
oDocumentDateColumn = "c027"
|
oDocumentDateColumn = "c027"
|
||||||
Case 2
|
Case 2, -2
|
||||||
oDocumentNumber = pDataRow.Item("ORDER_NUMBER")
|
oDocumentNumber = pDataRow.Item("ORDER_NUMBER")
|
||||||
oDocumentDate = pDataRow.Item("ORDER_DATE")
|
oDocumentDate = pDataRow.Item("ORDER_DATE")
|
||||||
oDocumentDateColumn = "c028"
|
oDocumentDateColumn = "c028"
|
||||||
Case 3
|
Case 3, -3
|
||||||
oDocumentNumber = pDataRow.Item("DELIVERY_NUMBER")
|
oDocumentNumber = pDataRow.Item("DELIVERY_NUMBER")
|
||||||
oDocumentDate = pDataRow.Item("DELIVERY_DATE")
|
oDocumentDate = pDataRow.Item("DELIVERY_DATE")
|
||||||
oDocumentDateColumn = "c029"
|
oDocumentDateColumn = "c029"
|
||||||
Case 4
|
Case 4, -4
|
||||||
oDocumentNumber = pDataRow.Item("INVOICE_NUMBER")
|
oDocumentNumber = pDataRow.Item("INVOICE_NUMBER")
|
||||||
oDocumentDate = pDataRow.Item("INVOICE_DATE")
|
oDocumentDate = pDataRow.Item("INVOICE_DATE")
|
||||||
oDocumentDateColumn = "c032"
|
oDocumentDateColumn = "c032"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user