Main Page | Report this Page
Computers Forum Index  »  Computer - Databases - Filemaker  »  Purchase orders...
Page 1 of 1    

Purchase orders...

Author Message
Smurf...
Posted: Mon Oct 12, 2009 10:20 pm
Guest
FM8.5
Could someone advise me on how to set up a Purchase Order. Should I
use a line portal showing Produc description records or some other
approach.

Thanks
 
Grip...
Posted: Tue Oct 13, 2009 1:40 am
Guest
On Oct 12, 4:20 pm, Smurf <wearesmu... at (no spam) yahoo.ca> wrote:
Quote:
FM8.5
Could someone advise me on how to set up a Purchase Order. Should I
use a line portal showing Produc description records or some other
approach.

Thanks

You should use a portal showing records from a PO-Product Join table.

G
 
Bill...
Posted: Tue Oct 13, 2009 5:15 am
Guest
In article
<68d2e98d-ce6a-4034-b7da-f3d460e8c398 at (no spam) i4g2000prm.googlegroups.com>,
Smurf <wearesmurfs at (no spam) yahoo.ca> wrote:

Quote:
FM8.5
Could someone advise me on how to set up a Purchase Order. Should I
use a line portal showing Produc description records or some other
approach.

Thanks

Seems to me FileMaker has some examples of this.

The general idea is a table for the products, a table for the Purchase
Orders, and a join table called LineItem

Each table has a primary key, customarily filled by unique serial number:
Product::__kpProductID
Order::__kpOrderID
LineItem::__kpLineItemID

LineItem also has 2 foreign key fields:
LineItem::_kfProductID
LineItem::_kfOrderID

Relationships:

PurchaseOrder::__kpOrderID = LineItem::_kfOrderID

Product::__kpProductID = LineItem::_kfProductID

Records in the LineItem table are created when you fill out an order.
You can do this by way of the relationship, or by scripting, and use of
drop-down menus.

Product should have fields for Price and QuantityOnHand.

LineItem should have fields for Quantity and ExtendedPrice, where
ExtendedPrice is calculated as the product of
Product::Price * LineItem::Quantity

Order would need a field for PriceSubtotal, calculated as:
Order::PriceSubtotal = Sum(LineItem::ExtendedPrice)
Order would also need fields for TaxRate, Tax, Shipping and PriceTotal.,
with PriceTotal being calculated as
PriceSubtotal + Tax + Shipping.

Inventory should have calculations for total of each item ordered, and
suitable calculations for quantity on hand.

You may want other tables and relationships for Customers, Suppliers,
Tax rates, shipping rates, etc, and use these in the calculations.
 
cortical...
Posted: Wed Oct 14, 2009 2:24 am
Guest
Bill wrote:
Quote:
In article
68d2e98d-ce6a-4034-b7da-f3d460e8c398 at (no spam) i4g2000prm.googlegroups.com>,
Smurf <wearesmurfs at (no spam) yahoo.ca> wrote:

FM8.5
Could someone advise me on how to set up a Purchase Order. Should I
use a line portal showing Produc description records or some other
approach.

Thanks

Seems to me FileMaker has some examples of this.

The general idea is a table for the products, a table for the Purchase
Orders, and a join table called LineItem

Each table has a primary key, customarily filled by unique serial number:
Product::__kpProductID
Order::__kpOrderID
LineItem::__kpLineItemID

LineItem also has 2 foreign key fields:
LineItem::_kfProductID
LineItem::_kfOrderID

Relationships:

PurchaseOrder::__kpOrderID = LineItem::_kfOrderID

Product::__kpProductID = LineItem::_kfProductID

Records in the LineItem table are created when you fill out an order.
You can do this by way of the relationship, or by scripting, and use of
drop-down menus.

Product should have fields for Price and QuantityOnHand.

LineItem should have fields for Quantity and ExtendedPrice, where
ExtendedPrice is calculated as the product of
Product::Price * LineItem::Quantity

lineItems should also have a field price. If the Product::Price is used,
then historical integrity is lost (assuming using calculations)
Q: What happens when the ProductPrice changes?
A: the calculated line item extended price changes, and the OrderTotal
based on the lineItem::extendedCost also changes


SO perhaps the real question is, does this provide historical integrity,
if the calcs are auto-enter calcs, and if so is triggering an issue (as
it can be with related data), and not replace existing value is checked
(in order to maintain historical integrity) would be mandatory, what
happens when the user enters the wrong 1quantity, and then corrects the
quantity: the extended cost does not re-calculate.

I have always hard coded the lineitem cost, as a habit. What am I
missing using the related cost?


Quote:

Order would need a field for PriceSubtotal, calculated as:
Order::PriceSubtotal = Sum(LineItem::ExtendedPrice)
 
Bill...
Posted: Wed Oct 14, 2009 5:01 am
Guest
In article <hb2u0a$d8f$1 at (no spam) aioe.org>, cortical <cb at (no spam) corticaldat.com.au>
wrote:

Quote:
Bill wrote:
In article
68d2e98d-ce6a-4034-b7da-f3d460e8c398 at (no spam) i4g2000prm.googlegroups.com>,
Smurf <wearesmurfs at (no spam) yahoo.ca> wrote:

FM8.5
Could someone advise me on how to set up a Purchase Order. Should I
use a line portal showing Produc description records or some other
approach.

Thanks

Seems to me FileMaker has some examples of this.

The general idea is a table for the products, a table for the Purchase
Orders, and a join table called LineItem

Each table has a primary key, customarily filled by unique serial number:
Product::__kpProductID
Order::__kpOrderID
LineItem::__kpLineItemID

LineItem also has 2 foreign key fields:
LineItem::_kfProductID
LineItem::_kfOrderID

Relationships:

PurchaseOrder::__kpOrderID = LineItem::_kfOrderID

Product::__kpProductID = LineItem::_kfProductID

Records in the LineItem table are created when you fill out an order.
You can do this by way of the relationship, or by scripting, and use of
drop-down menus.

Product should have fields for Price and QuantityOnHand.

LineItem should have fields for Quantity and ExtendedPrice, where
ExtendedPrice is calculated as the product of
Product::Price * LineItem::Quantity

lineItems should also have a field price. If the Product::Price is used,
then historical integrity is lost (assuming using calculations)
Q: What happens when the ProductPrice changes?
A: the calculated line item extended price changes, and the OrderTotal
based on the lineItem::extendedCost also changes


SO perhaps the real question is, does this provide historical integrity,
if the calcs are auto-enter calcs, and if so is triggering an issue (as
it can be with related data), and not replace existing value is checked
(in order to maintain historical integrity) would be mandatory, what
happens when the user enters the wrong 1quantity, and then corrects the
quantity: the extended cost does not re-calculate.

I have always hard coded the lineitem cost, as a habit. What am I
missing using the related cost?



Order would need a field for PriceSubtotal, calculated as:
Order::PriceSubtotal = Sum(LineItem::ExtendedPrice)

I agree that you should have a field for line item price, filled by
lookup or calculation from Product price. That keeps historical
integrity. Sorry to have overlooked that in my earlier response.
 
 
Page 1 of 1    
All times are GMT
The time now is Thu Nov 26, 2009 5:44 am