Hi Support,
What is the best way to generate an invoice form a list of line items that are backorders.
Thanks
Alan
Creating invoice from backorder
-
- Posts: 595
- Joined: Sun Apr 24, 2005 2:22 am
- Contact:
I have a Business Object called Invoice and a Business Object called InvoiceLineItems.
InvoiceLineItems contains attributes with details of the item including qty ordered, qty suppleid and qtybackorder.
There is a rule qtybackorder=qty ordered-qty suppleid.
I have a quirie that generates a report listing those lineitems where qtybackorder>0, the list has the original invoice no cleintid etc
I would like to generate a new invoice from the report that was generated by the quiry that finds qtybackorder>0.
Alan
InvoiceLineItems contains attributes with details of the item including qty ordered, qty suppleid and qtybackorder.
There is a rule qtybackorder=qty ordered-qty suppleid.
I have a quirie that generates a report listing those lineitems where qtybackorder>0, the list has the original invoice no cleintid etc
I would like to generate a new invoice from the report that was generated by the quiry that finds qtybackorder>0.
Alan
-
- Posts: 595
- Joined: Sun Apr 24, 2005 2:22 am
- Contact:
> I would like to generate a new invoice from the report that was generated by the quiry that finds qtybackorder>0.
1) By invoice here do you mean a report or an object?
2) If it is an object, for what purposes you intend to use it once it is constructed?
3) What values should the quantity attributes in line items for the new invoice have?
1) By invoice here do you mean a report or an object?
2) If it is an object, for what purposes you intend to use it once it is constructed?
3) What values should the quantity attributes in line items for the new invoice have?
Aware IM Support Team
1) By invoice here do you mean a report or an object?
I mean an onject.
2) If it is an object, for what purposes you intend to use it once it is constructed?
I intend to make a new invoice
3) What values should the quantity attributes in line items for the new invoice have?
The backorder qty and the clientID
Alan
I mean an onject.
2) If it is an object, for what purposes you intend to use it once it is constructed?
I intend to make a new invoice
3) What values should the quantity attributes in line items for the new invoice have?
The backorder qty and the clientID
Alan
-
- Posts: 595
- Joined: Sun Apr 24, 2005 2:22 am
- Contact:
Add a process CreateBackorderInvoice with no input and the following 3 rules in it:
1) FIND InvoiceLineItem WHERE InvoiceLineItem.QtyBackorder > 0
2) CREATE Invoice
3) CreateBackorderInvoiceLineItem
Add process CreateBackorderInvoiceLineItem with objects Invoice and InvoiceLineItem as its input. The object should have the following single rule:
CREATE InvoiceLineItem WITH InvoiceLineItem.Invoice = Invoice, InvoiceLineItem.QtyBackorder = ThisInvoiceLineItem.QtyBackorder, InvoiceLineItem.ClientID = ThisInvoiceLineItem.ClientID
To create a backorder invoice, start process CreateBackorderInvoice. Rule #3 of process CreateBackorderInvoice will be called for each item found in rule #1. Process CreateBackorderInvoiceLineItem will make a copy of the given item and attach the new item to the new invoice.
1) FIND InvoiceLineItem WHERE InvoiceLineItem.QtyBackorder > 0
2) CREATE Invoice
3) CreateBackorderInvoiceLineItem
Add process CreateBackorderInvoiceLineItem with objects Invoice and InvoiceLineItem as its input. The object should have the following single rule:
CREATE InvoiceLineItem WITH InvoiceLineItem.Invoice = Invoice, InvoiceLineItem.QtyBackorder = ThisInvoiceLineItem.QtyBackorder, InvoiceLineItem.ClientID = ThisInvoiceLineItem.ClientID
To create a backorder invoice, start process CreateBackorderInvoice. Rule #3 of process CreateBackorderInvoice will be called for each item found in rule #1. Process CreateBackorderInvoiceLineItem will make a copy of the given item and attach the new item to the new invoice.
Aware IM Support Team