Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Say, I have a basic invoice, with the name iv_i where i is the number of the invoice. Each invoice can have n items that should be added via a Visualforce page.

The items later can come from a related list, but for this example free text should be enough.

Here is a quick wireframe:

enter image description here

What would be the basic setup (Custom Object + Visualforce + Apex) for such an invoice solution?

share|improve this question
    
Very open-ended question? –  Martin Peters Jan 29 '13 at 15:25
    
@MartinPeters: No, I don't think so. I could not find any tutorials for such basic task on Force.com and it is a clear question that can have several answers with varying approaches. –  Martin Betz Jan 29 '13 at 15:37
add comment

1 Answer 1

A typical invoice solution would have the Invoice object, possibly in a master-detail relationship to a Customer or Account record.

You'd then have an Invoice_Line object as a master-detail to Invoice. Each Invoice_Line will have a quantity, per-unit price, formula to total the line, and a lookup to an Item object. The Invoice can total the amount of each Invoice_Line and include fields for tax, shipping, etc.

Here's a Developerforce tutorial you should take a look at, it includes an example of building an Invoice solution. I also think that this Visualforce workbook uses an invoice app as an example.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.