Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0051195
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Contribution Requests] Core ContributionsminorN/A2022-12-19 12:362022-12-19 12:42
Reportergonzalo_fernandezView Statuspublic 
Assigned Togonzalo_fernandez 
PrioritynormalResolutionopen 
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnone 
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Review Assigned To
Summary

0051195: Send email on e-commerce order

DescriptionThis project has the goal to automate the email sending of a Click&Collect sales order. That consists of sending the corresponding order and the sales invoice automatically to the customer without human interaction, in order to avoid mistakes.
Steps To ReproduceThe newly added properties are the following:
  - email: true / false (whether we should send an email or not)
  - emailDocument: "Order" / "Invoice" / "Both" (documents to send in the email)
  - emailAddress: "targetemail@sample.foo" (the target email address)

When processing an order with the External Order Loader, if the request has the previously mentioned properties, an email with the selected reports will be sent to the desired email address. An example of an order to process with The White Valley as organization is the following:

{
    "messageId": "test1",
    "posTerminal": "VBS-1",
    "channel": "External",
    "data": [{
        "currency": "EUR",
        "step": "all",
        "grossAmount": 24.9,
        "netAmount": 20.58,
        "businessPartner": "VBS/C0001",
        "lines": [{
            "product": "WVG/S0011",
            "qty": 1,
            "grossAmount": 24.9,
            "netAmount": 20.58,
            "taxAmount": 4.32,
            "taxLines": {
                "Entregas IVA 21%": {
                    "rate": 21,
                    "netAmount": 20.58,
                    "taxAmount": 4.32
                }
            }
        }],
        "payments": [{
            "paidAmount": 24.9,
            "date": "2015-11-16T08:48:51.524Z",
            "kind": "OBPOS_payment.cash",
            "rate": "1",
            "isocode": "EUR"
        }],
        "taxes": {
            "Entregas IVA 21%": {
                "rate": 21,
                "netAmount": 20.58,
                "taxAmount": 4.32
            }
        },
        "email": true,
        "emailDocument": "Both",
        "emailAddress": "targetemail@sample.foo"
    }]
}

You should know that, before testing this, you should have properly configured your email client and set The White Valley Group Admin as your default role.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0144815)
hgbot (developer)
2022-12-19 12:40

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/794 [^]
(0144816)
hgbot (developer)
2022-12-19 12:42

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.orderloader.email/-/merge_requests/1 [^]

- Issue History
Date Modified Username Field Change
2022-12-19 12:36 gonzalo_fernandez New Issue
2022-12-19 12:36 gonzalo_fernandez Assigned To => gonzalo_fernandez
2022-12-19 12:40 hgbot Note Added: 0144815
2022-12-19 12:42 hgbot Note Added: 0144816


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker