Skip to main content
Solved

Setting Account Name in Project Drop-ship purchase order to default to branch name

  • November 19, 2024
  • 3 replies
  • 33 views

Forum|alt.badge.img

On a project drop-ship PO, the Account Name on the shipping tab is showing as the Vendor's name. 

Is one able to change this to default to the Branch name?

I see there is a customization for the setting of the shipping address on a purchase order. Would such a customization be possible for the Account Name on the PO?

Best answer by saifalisabri

Added by moderator: This reply has been created with the help of AI

 

To modify the Account Name field on the Shipping tab of a project drop-ship purchase order to default to the branch name instead of the vendor's name, a customization is indeed possible in Acumatica ERP. However, such a change involves altering the behavior of the form through the use of Acumatica's customization tools.

  1. Open the Customization Projects (SM204505) Form:

    • Navigate to the Customization Projects form and create a new customization project or open an existing one.
  2. Modify the Purchase Order Form (PO301000):

    • Use the Customization Project Editor to access the Purchase Order form.
    • Locate the Shipping Tab and find the Account Name field.
  3. Change Default Behavior:

    • Add a custom business logic that sets the default value of the Account Name field to the branch name.
    • This could involve writing a customization using C# or applying a field-level default value rule based on the Branch.
  4. Publish the Customization:

    • Once the changes are applied, save and publish the customization project.
  5. Test the Changes:

    • Open the Purchase Order form and verify that the Account Name field now defaults to the branch name on new entries.

Technical Considerations:

  • Ensure that this change does not conflict with any existing business logic, as the Account Name field might have dependencies in workflows or reports.
  • Validate the customization in a test environment before deploying to production.

Alternative (Non-Customization Approach):

If the customization approach is not feasible or desirable, you might consider configuring workflows or manually setting default values at the data entry stage, though this may not provide the automation desired.

View original
Did this topic help you find an answer to your question?

3 replies

saifalisabri
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • 47 replies
  • Answer
  • November 19, 2024

Added by moderator: This reply has been created with the help of AI

 

To modify the Account Name field on the Shipping tab of a project drop-ship purchase order to default to the branch name instead of the vendor's name, a customization is indeed possible in Acumatica ERP. However, such a change involves altering the behavior of the form through the use of Acumatica's customization tools.

  1. Open the Customization Projects (SM204505) Form:

    • Navigate to the Customization Projects form and create a new customization project or open an existing one.
  2. Modify the Purchase Order Form (PO301000):

    • Use the Customization Project Editor to access the Purchase Order form.
    • Locate the Shipping Tab and find the Account Name field.
  3. Change Default Behavior:

    • Add a custom business logic that sets the default value of the Account Name field to the branch name.
    • This could involve writing a customization using C# or applying a field-level default value rule based on the Branch.
  4. Publish the Customization:

    • Once the changes are applied, save and publish the customization project.
  5. Test the Changes:

    • Open the Purchase Order form and verify that the Account Name field now defaults to the branch name on new entries.

Technical Considerations:

  • Ensure that this change does not conflict with any existing business logic, as the Account Name field might have dependencies in workflows or reports.
  • Validate the customization in a test environment before deploying to production.

Alternative (Non-Customization Approach):

If the customization approach is not feasible or desirable, you might consider configuring workflows or manually setting default values at the data entry stage, though this may not provide the automation desired.


darylbowman
Captain II
Forum|alt.badge.img+13
suemackeown13 wrote:

I see there is a customization for the setting of the shipping address on a purchase order. Would such a customization be possible for the Account Name on the PO?

I'm not sure what customization you're referencing, but yes, this is not difficult for a developer. Ask your VAR or find a freelancer.


saifalisabri
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • 47 replies
  • November 27, 2024

AI was used to create this answer

darylbowman !

Yes, customizing the Account Name on a Purchase Order (PO) in Acumatica ERP is absolutely possible. Similar to how a shipping address might be customized, modifying or adding a field like Account Name requires working within the customization framework Acumatica provides. Here's a high-level overview of how this could be achieved:

1. Customization Project

  • Start a Customization Project:
    • Navigate to System Management > Customization > Customization Projects.
    • Create a new project or edit an existing one.

2. Modify the Purchase Order Screen

  • Access the Purchase Order Screen:
    • Identify the screen you want to modify, e.g., PO.30.10.00.
  • Add/Modify the Account Name Field:
    • If Account Name is not already a field, you can add it by extending the DAC (Data Access Class) for the Purchase Order (e.g., POOrder).
    • Use the Customization Editor to add a new unbound field or bind it to an existing data source in the database.

3. Customize the DAC

  • Extend the POOrder DAC to include the new field for Account Name:
    csharp Copy code

    [PXDBString(100)] [PXUIField(DisplayName = "Account Name")] public virtual string AccountName { get; set; } public abstract class accountName : PX.Data.BQL.BqlString.Field<accountName> { }

4. Update Business Logic (if required)

  • If the Account Name should pull data dynamically (e.g., from a related table like Customer or Vendor), customize the graph to populate it during the PO creation or editing process.

5. Update the UI

  • Add the Field to the Screen:
    • Use the screen editor in the customization project to add the AccountName field to the desired location on the Purchase Order form.
    • Map the field to the AccountName property added in the DAC.

6. Publish and Test

  • Save the customization and publish it to your Acumatica instance.
  • Test the changes to ensure that the field behaves as expected, populates data correctly, and integrates with the system.

Notes:

  • If the Account Name already exists as part of the vendor or customer data, consider linking the field directly rather than duplicating the data.
  • Ensure any customizations meet your organization's specific requirements for workflows and reporting.
  • In case of future upgrades, always test your customizations in a staging environment to ensure compatibility.

This process is straightforward for a developer familiar with Acumatica's framework.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings