SWAPI – Ready To Post

SWAPI Changes for SuccessWare®21 Version 189. 1

JobPunch. 1

ARInvoiceUpdate. 2

ICRequisitionUpdate. 4

ICRequisitionWhseUpdate. 5

ICTransferUpdate. 6

ICReturnUpdate. 7

ICCountUpdate. 8

General Changes. 8

 

JobPunch

Adding 2 parameters:

·         ReadyToPostRequisitions

o    If ReadyToPostRequisitions is FALSE or not submitted and a requisition is already marked as Ready to Post then do not unmark it (this does not result in a Job Punch failure)

·         ReadyToPostInvoices

o    If ReadyToPostInvoices is FALSE or not submitted and an invoice is already marked as Ready to Post then do not unmark it (this does not result in a Job Punch failure)

 

<SessionRequest Version="string" SessionID="{7CBA9FA6-023A-4D21-B167-25D2468F063E}" RequestID="string">

  <JobPunch Version="string" ResultOption="string">

    <AssignmentID>int</AssignmentID>

    <PunchDT>2013-07-12T10:41</PunchDT>

    <TCStatus>Lunch</TCStatus>

    <CallStatus>string</CallStatus>

    <EstimatedDuration>time</EstimatedDuration>

    <CloseJob>boolean</CloseJob>

    <ContinueDT>dateTime</ContinueDT>

    <CheckForSplit>boolean</CheckForSplit>

    <SendClosed>boolean</SendClosed>

    <ReadyToPostRequisitions>boolean</ReadyToPostRequisitions>

    <ReadyToPostInvoices>boolean</ReadyToPostInvoices>

  </JobPunch>

</SessionRequest>

 

 

 

NOTE: If the agent is SWMAGENT (SW Remote) and CloseJob is TRUE then ReadyToPostRequisitions and ReadyToPostInvoices are both TRUE if they were not submitted.

ARInvoiceUpdate

Adding 1 parameter

·         ReadyToPost:

o    If an invoice is already marked as Ready to Post then AR Invoice Update will return a failure as SWAPI cannot modify the invoice

 

<SessionRequest Version="string" SessionID="{A206BA51-02F1-4116-8CC7-BCF66B0D2686}" RequestID="string">

  <ARInvoiceUpdate>

    <ARInvoiceUpdateData>

      <ARInvoiceUpdateRecord>

        <ExcessPayment>decimal</ExcessPayment>

        <TotalPaymentDue>decimal</TotalPaymentDue>

        <AssignmentID>integer</AssignmentID>

        <InvoiceID>integer</InvoiceID>

        <InvoiceNo>string(10)</InvoiceNo>

        <DiscountType>string(6)</DiscountType>

        <DiscountPct>short</DiscountPct>

        <DiscountAmount>float</DiscountAmount>

        <TotalAmount>float</TotalAmount>

        <TaxableAmount>float</TaxableAmount>

        <TaxCode>string(6)</TaxCode>

        <TaxPercent>float</TaxPercent>

        <TaxIncludedAmount>float</TaxIncludedAmount>

        <TaxIncluded>float</TaxIncluded>

        <TaxAmountDue>float</TaxAmountDue>

        <TaxAmount>float</TaxAmount>

        <SubTotalWarranty>float</SubTotalWarranty>

        <SubTotalAgreement>float</SubTotalAgreement>

        <SubTotal>float</SubTotal>

        <SubAfterDiscount>float</SubAfterDiscount>

        <NetBalance>float</NetBalance>

        <ManualTax>boolean</ManualTax>

        <LessAmount>float</LessAmount>

        <DepositAmount>float</DepositAmount>

        <PaymentAmount>float</PaymentAmount>

        <ModifiedBy>string(6)</ModifiedBy>

        <SigWorkAuth>bin.base64</SigWorkAuth>

        <SigWorkApp>bin.base64</SigWorkApp>

        <SigPayment>bin.base64</SigPayment>

        <HasInvoiceDiscount>boolean</HasInvoiceDiscount>

        <AutoDetail>integer</AutoDetail>

        <ReadyToPost>boolean</ReadyToPost>

        <dsItemList>

          <dsItem>

            <ReportedTime>time</ReportedTime>

            <InvoiceItemID>integer</InvoiceItemID>

            <InvoiceID>integer</InvoiceID>

            <SaleType>string(6)</SaleType>

            <Department>string(2)</Department>

            <ItemNumber>string(15)</ItemNumber>

            <ItemType>string(1)</ItemType>

            <ItemAsTask>boolean</ItemAsTask>

            <Description>string(100)</Description>

            <Quantity>float</Quantity>

            <PriceLevel>string(1)</PriceLevel>

            <UnitPrice>float</UnitPrice>

            <TotalSale>float</TotalSale>

            <IncludesTax>boolean</IncludesTax>

            <IsDiscountable>boolean</IsDiscountable>

            <AddTax>boolean</AddTax>

            <ChargeTo>string(1)</ChargeTo>

            <AgreementID>integer</AgreementID>

            <WarrantyID>integer</WarrantyID>

            <ReportedHours>float</ReportedHours>

            <IsDiagItem>boolean</IsDiagItem>

            <IsExtraItem>boolean</IsExtraItem>

            <PartSale>float</PartSale>

            <LaborSale>float</LaborSale>

            <MiscSale>float</MiscSale>

            <TaxIncludedDiscount>float</TaxIncludedDiscount>

            <TaxableDiscount>float</TaxableDiscount>

            <NonTaxableDiscount>float</NonTaxableDiscount>

            <DiscountAmount>float</DiscountAmount>

            <TotalAfterDiscount>float</TotalAfterDiscount>

            <dsInvoicedVisitList>

              <dsInvoicedVisit>

                <AgreementVisitID>integer</AgreementVisitID>

                <VisitType>string(6)</VisitType>

                <VisitPrice>float</VisitPrice>

                <InvoiceID>integer</InvoiceID>

                <InvoiceItemID>integer</InvoiceItemID>

              </dsInvoicedVisit>

            </dsInvoicedVisitList>

            <dsInvoicedAgreeList>

              <dsInvoicedAgree>

                <AgreementID>integer</AgreementID>

                <AgreementNumber>string(10)</AgreementNumber>

                <RenewedFromID>integer</RenewedFromID>

                <AgreementType>string(10)</AgreementType>

                <Years>short</Years>

                <StartDate>dateTime</StartDate>

                <TotalPrice>float</TotalPrice>

                <Deposit>float</Deposit>

                <InvoiceID>integer</InvoiceID>

                <dsAgreeEquipList>

                  <dsAgreeEquip>

                    <AgreementCoverageUnitID>integer</AgreementCoverageUnitID>

                    <LocationUnitID>integer</LocationUnitID>

                    <AgreementID>integer</AgreementID>

                    <UnitType>string(6)</UnitType>

                    <Location>string(20)</Location>

                  </dsAgreeEquip>

                </dsAgreeEquipList>

              </dsInvoicedAgree>

            </dsInvoicedAgreeList>

            <dsDetailList>

              <dsDetail>

                <InvoiceItemDetailID>integer</InvoiceItemDetailID>

                <InvoiceItemID>integer</InvoiceItemID>

                <ItemNumber>string(15)</ItemNumber>

                <Description>string(100)</Description>

                <ItemType>string(1)</ItemType>

                <Quantity>float</Quantity>

                <SerialNumber>string(20)</SerialNumber>

              </dsDetail>

            </dsDetailList>

            <dsItemEquipList>

              <dsItemEquip>

                <InvoiceItemID>integer</InvoiceItemID>

                <LocationUnitID>integer</LocationUnitID>

                <InvoiceID>integer</InvoiceID>

                <UnitType>string(6)</UnitType>

                <Location>string(20)</Location>

              </dsItemEquip>

            </dsItemEquipList>

          </dsItem>

        </dsItemList>

        <dsInvMemoList>

          <dsInvMemo>

            <InvoiceID>integer</InvoiceID>

            <WorkSuggested>string</WorkSuggested>

          </dsInvMemo>

        </dsInvMemoList>

        <dsInvDepositList>

          <dsInvDeposit>

            <DepositReceivableID>integer</DepositReceivableID>

            <DepositBalAvailable>float</DepositBalAvailable>

            <DepositAmount>float</DepositAmount>

          </dsInvDeposit>

        </dsInvDepositList>

      </ARInvoiceUpdateRecord>

    </ARInvoiceUpdateData>

  </ARInvoiceUpdate>

</SessionRequest>

 

 

ICRequisitionUpdate

Adding 1 parameter:

·         ReadyToPost

o    If a requisition is already marked as Ready to Post then IC Requisition Update will return a failure as SWAPI cannot modify the requisition

 

<SessionRequest Version="string" SessionID="{A206BA51-02F1-4116-8CC7-BCF66B0D2686}" RequestID="string">

  <ICRequisitionUpdate>

    <ICRequisitionUpdateData>

      <ICRequisitionUpdateRecord>

        <IC_TrxControlID>integer</IC_TrxControlID>

        <TrxDate>dateTime</TrxDate>

        <FromWhseID>integer</FromWhseID>

        <FromWhseNo>string(15)</FromWhseNo>

        <VehicleNo>string(10)</VehicleNo>

        <JobID>integer</JobID>

        <JobNo>string(10)</JobNo>

        <Comment>string(50)</Comment>

        <ReadyToPost>boolean</ReadyToPost>

        <dsICReqItemList>

          <dsICReqItem>

            <IC_TrxControlItemID>integer</IC_TrxControlItemID>

            <IC_TrxControlID>integer</IC_TrxControlID>

            <ItemNumber>string(15)</ItemNumber>

            <Description>string(100)</Description>

            <BinNo>string(8)</BinNo>

            <QtyOnhand>float</QtyOnhand>

            <Serialized>boolean</Serialized>

            <RequestQty>float</RequestQty>

            <TrxQty>float</TrxQty>

            <SerialNumber>string(20)</SerialNumber>

          </dsICReqItem>

        </dsICReqItemList>

      </ICRequisitionUpdateRecord>

    </ICRequisitionUpdateData>

  </ICRequisitionUpdate>

</SessionRequest>

ICRequisitionWhseUpdate

Adding 1 parameter

·         ReadyToPost

o    If a requisition is already marked as Ready to Post then IC Requisition Whse Update will return a failure as SWAPI cannot modify the requisition

 

<SessionRequest Version="string" SessionID="{A206BA51-02F1-4116-8CC7-BCF66B0D2686}" RequestID="string">

  <ICRequisitionWhseUpdate LockRelease="string">

    <ICRequisitionWhseUpdateData>

      <ICRequisitionWhseUpdateRecord>

        <IC_TrxControlID>integer</IC_TrxControlID>

        <TrxDate>dateTime</TrxDate>

        <FromWhseNo>string(15)</FromWhseNo>

        <FromWhseID>integer</FromWhseID>

        <ToWhseNo>string(15)</ToWhseNo>

        <JobNo>string(10)</JobNo>

        <AdjustCode>string(6)</AdjustCode>

        <Department>string(2)</Department>

        <Comment>string(50)</Comment>

        <TrxIsPosted>boolean</TrxIsPosted>

        <IsReceived>boolean</IsReceived>

        <ReadyToPost>boolean</ReadyToPost>

        <dsICTrxItemList>

          <dsICTrxItem>

            <IC_TrxControlItemID>integer</IC_TrxControlItemID>

            <IC_TrxControlID>integer</IC_TrxControlID>

            <ItemNumber>string(15)</ItemNumber>

            <Description>string(100)</Description>

            <Serialized>boolean</Serialized>

            <SerialNumber>string(20)</SerialNumber>

            <TagQty>float</TagQty>

            <Department>string(2)</Department>

            <IC_WhseID>integer</IC_WhseID>

            <WarehouseNo>string(15)</WarehouseNo>

            <IC_WhseStockID>integer</IC_WhseStockID>

            <BinNo>string(8)</BinNo>

            <QtyOnhand>float</QtyOnhand>

            <MinQty>float</MinQty>

            <MaxQty>float</MaxQty>

            <PhysicalQty>float</PhysicalQty>

            <RequestQty>float</RequestQty>

            <TrxQty>float</TrxQty>

            <ConflictCount>integer</ConflictCount>

          </dsICTrxItem>

        </dsICTrxItemList>

      </ICRequisitionWhseUpdateRecord>

    </ICRequisitionWhseUpdateData>

  </ICRequisitionWhseUpdate>

</SessionRequest>

 

ICTransferUpdate

Adding 1 parameter

·         ReadyToPost

o    If a transfer is already marked as Ready to Post then IC Transfer Update will return a failure as SWAPI cannot modify the transfer

 

<SessionRequest Version="string" SessionID="{A206BA51-02F1-4116-8CC7-BCF66B0D2686}" RequestID="string">

  <ICTransferUpdate LockRelease="string">

    <ICTransferUpdateData>

      <ICTransferUpdateRecord>

        <IC_TrxControlID>integer</IC_TrxControlID>

        <TrxDate>dateTime</TrxDate>

        <FromWhseNo>string(15)</FromWhseNo>

        <FromWhseID>integer</FromWhseID>

        <ToWhseNo>string(15)</ToWhseNo>

        <JobNo>string(10)</JobNo>

        <AdjustCode>string(6)</AdjustCode>

        <Department>string(2)</Department>

        <Comment>string(50)</Comment>

        <TrxIsPosted>boolean</TrxIsPosted>

        <IsReceived>boolean</IsReceived>

        <ReadyToPost>boolean</ReadyToPost>

        <dsICTrxItemList>

          <dsICTrxItem>

            <IC_TrxControlItemID>integer</IC_TrxControlItemID>

            <IC_TrxControlID>integer</IC_TrxControlID>

            <ItemNumber>string(15)</ItemNumber>

            <Description>string(100)</Description>

            <Serialized>boolean</Serialized>

            <SerialNumber>string(20)</SerialNumber>

            <TagQty>float</TagQty>

            <Department>string(2)</Department>

            <IC_WhseID>integer</IC_WhseID>

            <WarehouseNo>string(15)</WarehouseNo>

            <IC_WhseStockID>integer</IC_WhseStockID>

            <BinNo>string(8)</BinNo>

            <QtyOnhand>float</QtyOnhand>

            <MinQty>float</MinQty>

            <MaxQty>float</MaxQty>

            <PhysicalQty>float</PhysicalQty>

            <RequestQty>float</RequestQty>

            <TrxQty>float</TrxQty>

            <ConflictCount>integer</ConflictCount>

          </dsICTrxItem>

        </dsICTrxItemList>

      </ICTransferUpdateRecord>

    </ICTransferUpdateData>

  </ICTransferUpdate>

</SessionRequest>

 


 

ICReturnUpdate

Adding 1 parameter

·         ReadyToPost

o    If a return is already marked as Ready to Post then IC Return Update will return a failure as SWAPI cannot modify the return

 

<SessionRequest Version="string" SessionID="{A206BA51-02F1-4116-8CC7-BCF66B0D2686}" RequestID="string">

  <ICReturnUpdate LockRelease="string">

    <ICReturnUpdateData>

      <ICReturnUpdateRecord>

        <IC_TrxControlID>integer</IC_TrxControlID>

        <TrxDate>dateTime</TrxDate>

        <FromWhseNo>string(15)</FromWhseNo>

        <FromWhseID>integer</FromWhseID>

        <ToWhseNo>string(15)</ToWhseNo>

        <JobNo>string(10)</JobNo>

        <AdjustCode>string(6)</AdjustCode>

        <Department>string(2)</Department>

        <Comment>string(50)</Comment>

        <TrxIsPosted>boolean</TrxIsPosted>

        <IsReceived>boolean</IsReceived>

        <ReadyToPost>boolean</ReadyToPost>

        <dsICTrxItemList>

          <dsICTrxItem>

            <IC_TrxControlItemID>integer</IC_TrxControlItemID>

            <IC_TrxControlID>integer</IC_TrxControlID>

            <ItemNumber>string(15)</ItemNumber>

            <Description>string(100)</Description>

            <Serialized>boolean</Serialized>

            <SerialNumber>string(20)</SerialNumber>

            <TagQty>float</TagQty>

            <Department>string(2)</Department>

            <IC_WhseID>integer</IC_WhseID>

            <WarehouseNo>string(15)</WarehouseNo>

            <IC_WhseStockID>integer</IC_WhseStockID>

            <BinNo>string(8)</BinNo>

            <QtyOnhand>float</QtyOnhand>

            <MinQty>float</MinQty>

            <MaxQty>float</MaxQty>

            <PhysicalQty>float</PhysicalQty>

            <RequestQty>float</RequestQty>

            <TrxQty>float</TrxQty>

            <ConflictCount>integer</ConflictCount>

          </dsICTrxItem>

        </dsICTrxItemList>

      </ICReturnUpdateRecord>

    </ICReturnUpdateData>

  </ICReturnUpdate>

</SessionRequest>

 

ICCountUpdate

Adding 1 parameter

·         ReadyToPost

o    If a transaction is already marked as Ready to Post then IC Count Update will return a failure as SWAPI cannot modify the transaction

 

<SessionRequest Version="string" SessionID="{A206BA51-02F1-4116-8CC7-BCF66B0D2686}" RequestID="string">

  <ICCountUpdate LockRelease="string">

    <ICCountUpdateData>

      <ICCountUpdateRecord>

        <IC_TrxControlID>integer</IC_TrxControlID>

        <TrxDate>dateTime</TrxDate>

        <FromWhseNo>string(15)</FromWhseNo>

        <FromWhseID>integer</FromWhseID>

        <ToWhseNo>string(15)</ToWhseNo>

        <JobNo>string(10)</JobNo>

        <AdjustCode>string(6)</AdjustCode>

        <Department>string(2)</Department>

        <Comment>string(50)</Comment>

        <TrxIsPosted>boolean</TrxIsPosted>

        <IsReceived>boolean</IsReceived>

        <ReadyToPost>boolean</ReadyToPost>

        <dsICTrxItemList>

          <dsICTrxItem>

            <IC_TrxControlItemID>integer</IC_TrxControlItemID>

            <IC_TrxControlID>integer</IC_TrxControlID>

            <ItemNumber>string(15)</ItemNumber>

            <Description>string(100)</Description>

            <Serialized>boolean</Serialized>

            <SerialNumber>string(20)</SerialNumber>

            <TagQty>float</TagQty>

            <Department>string(2)</Department>

            <IC_WhseID>integer</IC_WhseID>

            <WarehouseNo>string(15)</WarehouseNo>

            <IC_WhseStockID>integer</IC_WhseStockID>

            <BinNo>string(8)</BinNo>

            <QtyOnhand>float</QtyOnhand>

            <MinQty>float</MinQty>

            <MaxQty>float</MaxQty>

            <PhysicalQty>float</PhysicalQty>

            <RequestQty>float</RequestQty>

            <TrxQty>float</TrxQty>

            <ConflictCount>integer</ConflictCount>

          </dsICTrxItem>

        </dsICTrxItemList>

      </ICCountUpdateRecord>

    </ICCountUpdateData>

  </ICCountUpdate>

</SessionRequest>

 

 

General Changes

Whenever a document that was not marked as Ready to Post is marked as Ready to Post by SWAPI log an event. The reverse will never occur because documents that are marked as Ready to Post cannot be modified by SWAPI