3 Replies Latest reply on Nov 28, 2014 5:45 AM by ravi

    Receipt

    ravi Expert

      Hi Team,

       

      Could anyone let me know how to configure auto-receipt.Generally one way of auto-receipt is done by ReceiptByCommodity.csv file.

      I just want to know can we configure receipt by amount,quantity,price?

       

      Thanks,

      Ravi.

        • Re: Receipt
          Debbie Curtis-Magley Master

          Hi Ravi:

           

          Have you checked the documents for solutions at Ariba Connect? Access is available to licensed users at https://connect.ariba.com/.

           

          Debbie Curtis-Magley

          Ariba Exchange Community Manager

          • Re: Receipt
            Scott Corbett Master

            Ravi - yes, you can leverage the OOTB CSV files ReceiptByPartNumber.csv and ReceiptByCommodityCode.csv, but you cannot control by amount,quantity,price. If you have a generic requirement by amount, set the parameter Application.Procure.AutoReceiveLineItemAmount or Application.Procure.AutoReceiveOrderAmount. But if you need to go by Quantity, Price or commodity specific Amount, then you'll need to extend the ReceivingTypeMethod. Overwrite the parameter ReceivingTypeMethod with your extension class to implement whatever logic is necessary.

             

            Here's an example of where I overwrote the PCardReceivingTypeMethod

             

            public class ReceivingTypeExtRule extends PCardReceivingTypeRule {

             

                public int findReceivingType(ReceivableLineItem lineItem) {

                    // Default is receive by count

             

                    if (lineItem instanceof POLineItem) {

                        POLineItem poli = (POLineItem) lineItem;           

                        if (RequisitionUtil.isExternalPurchase((Requisition) poli

                                .getRequisition())) {

                            return systemReceived;

                        }

                   

                        else if (ITSCRequisitionUtil.isITSCRequisition((Requisition) poli

                                .getRequisition())) {               

                            return noReceipt;

                        }

             

                       

             

                        else if (CRRequisitionUtil.isCRRequisition((Requisition) poli

                                .getRequisition())) {               

                            return noReceipt;

                        }

                       

                    }   

                    return super.findReceivingType(lineItem);

             

                }

             

            }

            1 of 1 people found this helpful