Differences between revisions 4 and 12 (spanning 8 versions)
Revision 4 as of 2006-06-22 06:31:59
Size: 2395
Editor: FayezMoussa
Comment:
Revision 12 as of 2013-09-18 06:09:34
Size: 2380
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
==== Notes on how the Purchase Order Required options on the supplier and salesperson work ==== == Notes on how the Purchase Order Required options on the supplier and salesperson work ==
 
A purchase order is required if the following conditions are met:

 Supplier Option::
 :: ''PO required to receive stock on the supplier record''
 Salesperson Option::
 :: ''PO required when receiving stock on the salesperson record''

 ||Supplier Option ||Salesperson Option ||Po Required ||
 ||Y ||Y ||Y ||
 ||Y ||N ||N ||
 ||Y ||"" ||Y ||
 ||N ||Y ||N ||
 ||N ||N ||N ||
 ||N ||"" ||N ||
 ||"" ||Y ||Y ||
 ||"" ||N ||N ||
 ||"" ||"" ||N ||
Line 4: Line 22:
 * Currently, the option on the supplier record ''"Po Required to receive stock"'' take precedence if it is set.
 * If the above option is not set (i.e is blank), the options on the sales person come into effect
   . ''"Po required to receive external stock"'' for supplier purchase orders
   . ''"Po required to receive internal stock"'' for branch transfers
 * If the final result is that a purchase order number is required, a number of additional should take place. This is true except in the case where the option in regards to internal stock is set (this is a known bug). The checks that do take place are:
   1. Not being allowed to increase the quantity (based on the previous quantity). If blind receipting is being used, the first entry for quantity is allowed regardless.
   1. A check against the stock item being entered is made. If the stock item is not found anywhere on the purchase order, a warning is given to the user, but they are still allowed to continue.
 The logic in code format:
  . {{{
   po_required = (supp_option == 'n' || sperson_option == 'n') ? NO :
                ((supp_option == 'y' || sperson_option == 'y') ? YES : NO);
  }}}
 The logic in English:
  . ''A Purchase Order is not required if either option is set to '''NO''' or neither option is set to anything.''
Line 12: Line 30:
 * If a purchase order number is required, a number of additional checks take place. The checks that do take place are:
  1. Not being allowed to increase the quantity (based on the previous quantity). If blind receipting is being used, the first entry for quantity is allowed regardless.
  1. A check against the stock item being entered is made. If the stock item is not found anywhere on the purchase order, a warning is given to the user, but they are still allowed to continue. '''Note''' that this check happens as long as a purchase order has been entered, regardless if it was required or not.
Line 13: Line 34:

=== Change Log ===
#9762 - 27/06/06
Line 18: Line 42:
 * Change the precedence of the options in regards to the salesperson and supplier. The logic will be as follows:

 ||Supplier Option||Salesperson Option||Po Required||
 ||Y||Y||Y||
 ||Y||N||N||
 ||Y||""||Y||
 ||N||Y||N||
 ||N||N||N||
 ||N||""||N||
 ||""||Y||Y||
 ||""||N||N||
 ||""||""||N||

 The logic in code format:
  {{{
   po_required = (supp_option == 'n' || sperson_option == 'n') ? NO :
                ((supp_option == 'y' || sperson_option == 'y') ? YES : NO);
  }}}

 The logic in English:
         ''The supplier option, if non blank, takes precedence unless the salesperson option is explicitly set to '''NO'''. If both supplier and salesperson are blank, a purchase order will not be required.''

 * We will split the option ''"Generate stock receipt lines from purchase order"'' into two options regarding both internal and external stock
 * The above mentioned checks will work as they currently do now, by disallowing an increase in the quantity, and giving a warning if attempting to receipt an item not on the purchase order
 * Change the precedence of the options in regards to the salesperson and supplier, so that '''NO''' takes precedence (see above for more detail).
 * The above mentioned checks will work as they currently do now, by disallowing an increase in the quantity, and giving a warning if attempting to receipt an item not on the purchase order.
 * We will provide a new option as follows "Generate stock receipt lines from expected transfers" and the current option ''"Generate stock receipt lines from purchase order"'' will only apply to purchase orders from external suppliers.
 
----
CategoryAllphones

Notes on how the Purchase Order Required options on the supplier and salesperson work

A purchase order is required if the following conditions are met:

Supplier Option

PO required to receive stock on the supplier record

Salesperson Option

PO required when receiving stock on the salesperson record

  • Supplier Option

    Salesperson Option

    Po Required

    Y

    Y

    Y

    Y

    N

    N

    Y

    ""

    Y

    N

    Y

    N

    N

    N

    N

    N

    ""

    N

    ""

    Y

    Y

    ""

    N

    N

    ""

    ""

    N

    The logic in code format:
    •    po_required = (supp_option == 'n' || sperson_option == 'n') ? NO :
                      ((supp_option == 'y' || sperson_option == 'y') ? YES : NO);
    The logic in English:
    • A Purchase Order is not required if either option is set to NO or neither option is set to anything.

  • If a purchase order number is required, a number of additional checks take place. The checks that do take place are:
    1. Not being allowed to increase the quantity (based on the previous quantity). If blind receipting is being used, the first entry for quantity is allowed regardless.
    2. A check against the stock item being entered is made. If the stock item is not found anywhere on the purchase order, a warning is given to the user, but they are still allowed to continue. Note that this check happens as long as a purchase order has been entered, regardless if it was required or not.


  • Change Log

    #9762 - 27/06/06

    We propose the following:

    • Remove the option "Po required to receive internal stock" from the salesperson record

    • Rename the option "Po required to receive external stock" by leaving out the term "external"

    • Change the precedence of the options in regards to the salesperson and supplier, so that NO takes precedence (see above for more detail).

    • The above mentioned checks will work as they currently do now, by disallowing an increase in the quantity, and giving a warning if attempting to receipt an item not on the purchase order.
    • We will provide a new option as follows "Generate stock receipt lines from expected transfers" and the current option "Generate stock receipt lines from purchase order" will only apply to purchase orders from external suppliers.


    CategoryAllphones

    PoRequiredOption (last edited 2013-09-18 06:09:34 by localhost)