Purchase Order

Contrib type: 
Module
Status: 
Initial upload
Moderation: 
Not ready for moderation

Downloads

Compatibility: 
Ubercart 1.x
Compatibility: 
Ubercart 2.x

The purchase order module adds an extra payment method that allows customers on your site to check out using a PO number. You can restrict access to which users are allowed to checkout by purchase order with an access control permission called pay by purchase order. PO numbers are viewable at checkout and on all the order screens, and they are editable by administrators from the order edit screen. You will need to modify your invoice template to have the PO number show up, but you can do this simply by using the [po-number] tag.

The module defines a simple form used to look up orders by purchase order number. This page is located under the Orders menu in the Store administration menu.

This module may be used as an example module of how to implement a simple payment method. The functions have been documented and are fairly basic, so it would be a good starting point for anyone looking to do something similar on their site!

This module and issues are now supported through the project system at drupal.org. Please use the link below to download the module and report bugs.


daniel.s's picture
Offline
Joined: 10/09/2007
Juice: 87
Re: Purchase Order

Awesome. Just what I was looking for.

I've yet to test it out, but it sounds good.

japerry@drupal.org's picture
Offline
Bug FinderGetting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 248
Postgres support

The current version posted here does not have postgres support. I've added it in the install file. Postgres install patch included here.

*edit* this patch includes updates to the .module that had some issues as well.

AttachmentSize
uc_po-install-pgsql.diff 1.07 KB
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15459
Re: Postgres support

Added the Postgres patch and moved the module to http://drupal.org/project/uc_po.

markagray's picture
Offline
Joined: 09/09/2009
Juice: 192
Restricting users who can pay by PO

How can I do this:

" You can restrict access to which users are allowed to checkout by purchase order with an access control permission called pay by purchase order."

Where in Drupal and/or Ubercart would I find thsi?

markagray's picture
Offline
Joined: 09/09/2009
Juice: 192
Re: Restricting users who can pay by PO

I found it. It's a regular permission setting per user role. I was thinking it was something more complex relating to the Content Access module.

It would be nice if one could enable payment by PO to specific users (as oppposed to a broad sweep of all users assigned a certain role).

Also, it would be nice to set a PO dollar budget assigned to a specific PO number assigned to a specific user (or set of users). Each time the user (or a user in the set of users) places an order against the PO number, the dollar amount of that order is subtracted from the budget value. If the result of the subtraction is negative, the user will see an error message indicating insufficient funding remaining on the PO and the order will not process. Does this exist somewhere?

zeezhao's picture
Offline
Joined: 04/23/2008
Juice: 1075
Re: Re: Restricting users who can pay by PO

http://drupal.org/project/uc_conditional_payment allows you to restrict payment type by role. Once installed you will be able to do this via conditional actions at admin/store/ca

markagray's picture
Offline
Joined: 09/09/2009
Juice: 192
Re: Purchase Order

Thanks zeezhao! I'll check that out.