Allow Create Lines From on Invoice (Customer)

Description

In the Invoice (Customer) window, there is no option to "Create Lines from" available in order to create an invoice from a SO.

Environment

None

Activity

Show:
Deepak Pansheriya
October 16, 2013, 2:15 PM

Nicolas,

you can get isSOTrx from record as below

isSOTrx = (Boolean) gridTab.getField("isSoTrx").getValue()

Nicolas Micoud
October 18, 2013, 12:48 PM

I haven't described well my issue.
I create a new CreateFrom panel which will be used on AR invoice (based on new specific tables) and i placed it in a plugin.
And sometimes, it is the 'core' which is displayed. And sometimes it is the one from the plugin.
That's why i wanted to add a field on AD_Tab to precise which panel has to be displayed, according to the tab.

In your case, i guess you will modify current CreateFromInvoice so that it can handle PO and SO, right ? So that enhancement should be useless.

And just for information (i haven't tested) : is it possible to override WCreateFromInvoiceUI in a plugin ?

Thanks,

Nicolas

Carlos Ruiz
October 18, 2013, 9:31 PM

Nicolas, maybe a button linked to a form can do the trick?

Deepak Pansheriya
October 19, 2013, 8:13 AM

Nicolus,

It is not good idea to use jira for this kind of discussion. Better we discuss this on google group.

As I understand you want to show form from core for certain window while your extension from some new window defined on same table, And you want to make this configurable from tab.

One option is to use toolbar features on window,Tab and Field as suggested by carlos.
If toolbar do not work for you then you can add logic in extension form to either load core form panel or your new one based on condition.

Nicolas Micoud
October 19, 2013, 1:14 PM

You're right, i've created https://groups.google.com/forum/?fromgroups#!topic/idempiere/rIsVya4oGX8 to continue it.

Thanks & Regards,

Nicolas

Assignee

Deepak Pansheriya

Reporter

Deepak Pansheriya

Labels

None

Tested By

None

Components

Fix versions

Priority

Minor
Configure