Based on the requirement described in the commit log it sounds like using another RateType for that would be the way to go.

Could you describe why this is needed instead of using another RateType (along with PartyRate)?

-David


On Jan 7, 2008, at 10:47 PM, [EMAIL PROTECTED] wrote:

Author: hansbak
Date: Mon Jan  7 21:47:02 2008
New Revision: 609878

URL: http://svn.apache.org/viewvc?rev=609878&view=rev
Log:
add a indicator field to the partyRate table to indicate what is the default rate of a party, this is required for employees who are in training and for which a reduced rate is invoiced to the customer

Modified:
   ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml
   ofbiz/trunk/applications/workeffort/entitydef/entitymodel.xml

Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/ PartyForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml?rev=609878&r1=609877&r2=609878&view=diff
= = = = = = = = ====================================================================== --- ofbiz/trunk/applications/party/webapp/partymgr/party/ PartyForms.xml (original) +++ ofbiz/trunk/applications/party/webapp/partymgr/party/ PartyForms.xml Mon Jan 7 21:47:02 2008
@@ -264,6 +264,12 @@
                </entity-options>
            </drop-down>
        </field>
+        <field name="defaultRate">
+            <drop-down no-current-selected-key="N">
+                <option key="N"/>
+                <option key="Y"/>
+            </drop-down>
+        </field>
<field name="submitButton" title="$ {uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
    </form>


Modified: ofbiz/trunk/applications/workeffort/entitydef/ entitymodel.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/entitydef/entitymodel.xml?rev=609878&r1=609877&r2=609878&view=diff
= = = = = = = = ====================================================================== --- ofbiz/trunk/applications/workeffort/entitydef/entitymodel.xml (original) +++ ofbiz/trunk/applications/workeffort/entitydef/entitymodel.xml Mon Jan 7 21:47:02 2008
@@ -46,6 +46,7 @@
            title="Party Rate Entity">
      <field name="partyId" type="id-ne"></field>
      <field name="rateTypeId" type="id-ne"></field>
+      <field name="defaultRate" type="indicator"></field>
      <field name="fromDate" type="date-time"></field>
      <field name="thruDate" type="date-time"></field>
      <field name="rate" type="currency-amount"></field>



Reply via email to