Fix for emailing POs
This commit is contained in:
parent
129828cc5d
commit
e7273ab725
|
|
@ -122,7 +122,7 @@ class CreditRepository {
|
|||
String ccEmail,
|
||||
) async {
|
||||
final data = {
|
||||
'entity': '${credit.entityType}',
|
||||
'entity': '${EntityType.credit.apiValue}',
|
||||
'entity_id': credit.id,
|
||||
'template': 'email_template_$template',
|
||||
'body': body,
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ class InvoiceRepository {
|
|||
String ccEmail,
|
||||
) async {
|
||||
final data = {
|
||||
'entity': '${invoice.entityType}',
|
||||
'entity': '${EntityType.invoice.apiValue}',
|
||||
'entity_id': invoice.id,
|
||||
'template': 'email_template_$template',
|
||||
'body': body,
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ class PurchaseOrderRepository {
|
|||
String ccEmail,
|
||||
) async {
|
||||
final data = {
|
||||
'entity': '${purchaseOrder.entityType}',
|
||||
'entity': '${EntityType.purchaseOrder.apiValue}',
|
||||
'entity_id': purchaseOrder.id,
|
||||
'template': 'email_template_$template',
|
||||
'body': body,
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ class QuoteRepository {
|
|||
String ccEmail,
|
||||
) async {
|
||||
final data = {
|
||||
'entity': '${quote.entityType}',
|
||||
'entity': '${EntityType.quote.apiValue}',
|
||||
'entity_id': quote.id,
|
||||
'template': 'email_template_$template',
|
||||
'body': body,
|
||||
|
|
|
|||
Loading…
Reference in New Issue