Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Brayan Sarmiento
API-Gateway-CHEC
Commits
600d1af0
Commit
600d1af0
authored
Aug 14, 2023
by
Jose Hugo Torres
Browse files
Sequence Number-tender
parent
3716ef27
Changes
1
Show whitespace changes
Inline
Side-by-side
gatewayGK/Comandosgk/AddItemRequestCmdGk3.cs
View file @
600d1af0
...
@@ -163,6 +163,7 @@ namespace gatewayGK.ComandosGk
...
@@ -163,6 +163,7 @@ namespace gatewayGK.ComandosGk
// En este punto statusOk == True : el item ingreso a la transacción de venta.
// En este punto statusOk == True : el item ingreso a la transacción de venta.
var
transactionId
=
respTransacAddItem
.
PrimaryEntry
.
Transaction
.
Key
.
TransactionID
;
var
transactionId
=
respTransacAddItem
.
PrimaryEntry
.
Transaction
.
Key
.
TransactionID
;
var
businessUnitGroupID
=
respTransacAddItem
.
PrimaryEntry
.
Transaction
.
Key
.
BusinessUnitGroupID
;
var
businessUnitGroupID
=
respTransacAddItem
.
PrimaryEntry
.
Transaction
.
Key
.
BusinessUnitGroupID
;
var
sequenceNumber
=
respTransacAddItem
.
PrimaryEntry
.
Transaction
.
SequenceNumber
;
var
addedOrModifiedLineItems
=
respTransacAddItem
.
PrimaryEntry
.
AddedOrModifiedLineItems
[
0
].
SaleReturnLineItemList
[
0
];
var
addedOrModifiedLineItems
=
respTransacAddItem
.
PrimaryEntry
.
AddedOrModifiedLineItems
[
0
].
SaleReturnLineItemList
[
0
];
var
itemId
=
addedOrModifiedLineItems
.
ItemID
;
var
itemId
=
addedOrModifiedLineItems
.
ItemID
;
var
regularUnitPrice
=
addedOrModifiedLineItems
.
RegularUnitPrice
;
var
regularUnitPrice
=
addedOrModifiedLineItems
.
RegularUnitPrice
;
...
@@ -200,16 +201,22 @@ namespace gatewayGK.ComandosGk
...
@@ -200,16 +201,22 @@ namespace gatewayGK.ComandosGk
}
}
}
}
Entorno
<
EntornoGK
>.
Instancia
.
get
().
TransactionID
=
transactionId
;
Entorno
<
EntornoGK
>.
Instancia
.
get
().
BusinessUnitGroupID
=
businessUnitGroupID
;
Entorno
<
EntornoGK
>.
Instancia
.
get
().
SequenceNumber
=
sequenceNumber
??
0
;
//Pasarlo a string
//Pasarlo a string
var
regularUnitPriceTrans
=
regularUnitPrice
.
ToString
();
var
regularUnitPriceTrans
=
regularUnitPrice
.
ToString
();
Log
.
Debug
(
"<< GK TransactionRegistrationResult: transactionId {transactionId}, itemId {itemId}, regularUnitPrice {regularUnitPrice}, quantityService {quantityService}, units {units}, textName {textName}"
,
Log
.
Debug
(
"<< GK TransactionRegistrationResult: transactionId {transactionId}, itemId {itemId}, regularUnitPrice {regularUnitPrice}, quantityService {quantityService}, units {units}, textName {textName}
, sequenceNumber {sequenceNumber}, suspendNumber {suspendNumber}
"
,
transactionId
,
transactionId
,
itemId
,
itemId
,
regularUnitPrice
,
regularUnitPrice
,
quantityService
,
quantityService
,
units
,
units
,
receiptText
receiptText
,
sequenceNumber
,
Entorno
<
EntornoGK
>.
Instancia
.
get
().
SuspendNumber
);
);
Log
.
Information
(
String
.
Format
(
"{0,3} | {1,13} | {2,-20} | {3,3}| {4,-5:N2} | {5,12:N2} | {6,12:N2} | {7,12:N2} | {8,12:N2} | {9,3}"
,
Log
.
Information
(
String
.
Format
(
"{0,3} | {1,13} | {2,-20} | {3,3}| {4,-5:N2} | {5,12:N2} | {6,12:N2} | {7,12:N2} | {8,12:N2} | {9,3}"
,
addedOrModifiedLineItems
.
Key
.
RetailTransactionLineItemSequenceNumber
,
addedOrModifiedLineItems
.
Key
.
RetailTransactionLineItemSequenceNumber
,
...
@@ -226,9 +233,6 @@ namespace gatewayGK.ComandosGk
...
@@ -226,9 +233,6 @@ namespace gatewayGK.ComandosGk
Log
.
Information
(
String
.
Format
(
"\t\tSUBTOTAL: {0,12:N2} -- SUBTOTAL_DISCOUNT: {1,12:N2} -- TOTAL: {2,12:N2}"
,
Log
.
Information
(
String
.
Format
(
"\t\tSUBTOTAL: {0,12:N2} -- SUBTOTAL_DISCOUNT: {1,12:N2} -- TOTAL: {2,12:N2}"
,
subtotal
,
subtotalDcto
,
total
));
subtotal
,
subtotalDcto
,
total
));
Entorno
<
EntornoGK
>.
Instancia
.
get
().
TransactionID
=
transactionId
;
Entorno
<
EntornoGK
>.
Instancia
.
get
().
BusinessUnitGroupID
=
businessUnitGroupID
;
string
tomarNombreCorto
=
""
;
string
tomarNombreCorto
=
""
;
//Valores que se mandan en chec
//Valores que se mandan en chec
var
date
=
DateTime
.
Now
.
ToString
(
"dd/MM/yyyy"
);
var
date
=
DateTime
.
Now
.
ToString
(
"dd/MM/yyyy"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment