-
Type: Dev Task
-
Status: Done (View Workflow)
-
Resolution: Done
-
Fix Version/s: None
-
Labels:None
-
Sprint:2021.R5 CloudLink Sprint 5
Radiant POS code:
else if (transactionDetail.item_canceled != 0) { recordType = EnumUtils<SalesRecordType>.GetClassName(SalesRecordType.Financial); switch (transactionDetail.cancel_status) { case (int)CancelStatus.CanceledBeforeTotal: recordSubType = EnumUtils<FinancialRecordSubType>.GetClassName(FinancialRecordSubType.DeletionBefore); subTypeDescription = EnumUtils<CancelStatus>.GetClassName(CancelStatus.CanceledBeforeTotal); break; case (int)CancelStatus.CancelledAfterTender: recordSubType = EnumUtils<FinancialRecordSubType>.GetClassName(FinancialRecordSubType.DeletionAfterTender); subTypeDescription = EnumUtils<CancelStatus>.GetClassName(CancelStatus.CancelledAfterTender); break; case (int)CancelStatus.CancelledAfterTotal: recordSubType = EnumUtils<FinancialRecordSubType>.GetClassName(FinancialRecordSubType.DeletionAfter); subTypeDescription = EnumUtils<CancelStatus>.GetClassName(CancelStatus.CancelledAfterTotal); break; case (int)CancelStatus.NotCancelled: recordSubType = "Not Canceled"; subTypeDescription = EnumUtils<CancelStatus>.GetClassName(CancelStatus.NotCancelled); break; default: recordSubType = "Undefined"; subTypeDescription = "Undefined"; break; } }