Uploaded image for project: 'CFA MX '
  1. CFA MX
  2. CFAMX-14694

CloudLink - Sales Transaction - Add Payment Records

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Sprint:
      2021.R5 CloudLink Sprint 2
    • SCRUM Team:
      Globogym Purple Cobras
    • Story Points:
      3
    • Work Type Classification:
      Sustaining

      Description

      Note: A transaction can have multiple payment records i.e. Split payments
      Refer to code: RadiantTransactionRecords.cs -> GetSalesTransactionRecord

      case (int)TransactionDetailType.Tender:
                          recordType = EnumUtils<SalesRecordType>.GetClassName(SalesRecordType.Financial);
                          recordSubType = EnumUtils<FinancialRecordSubType>.GetClassName(FinancialRecordSubType.Payment);
                          subTypeDescription = transactionDetail.description.Trim();
                          pLUCode = GetTenderPLUCode(transactionDetail);
                          pollCount = (pollCount == 0 ? 1 * transaction.OrderSign() : pollCount);
      
                          // check if change info is provided to decide either use unit price or extended price for tender amount.
                          TransactionExportTransactionTranDetail nextTransactionDetail = GetNextTransactionDetail(transaction, transactionDetail);
      
                          if (nextTransactionDetail != null &&
                              nextTransactionDetail.event_id == (int)TransactionDetailType.CashChange)
                          {
                              pollAmount = -transactionDetail.extended_price * transaction.OrderSign();
                          }
                          else
                          {
                              pollAmount = -transactionDetail.unit_price * transaction.OrderSign();
                          }
      

      Equivalent tbSalesMain records:

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Gareth.Leibbrandt Gareth Leibbrandt (Inactive)
                Reporter:
                brent.jacobz Brent Jacobz (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 16.5h
                  16.5h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 12h 5m Time Not Required
                  12h 5m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.