fix(webshipper): only add invoices if invoice generator produces a file (#1749)
This commit is contained in:
@@ -287,6 +287,7 @@ class WebshipperFulfillmentService extends FulfillmentService {
|
|||||||
fulfillmentItems
|
fulfillmentItems
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (base64Invoice) {
|
||||||
invoice = await this.client_.documents
|
invoice = await this.client_.documents
|
||||||
.create({
|
.create({
|
||||||
type: "documents",
|
type: "documents",
|
||||||
@@ -300,6 +301,7 @@ class WebshipperFulfillmentService extends FulfillmentService {
|
|||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
throw err
|
throw err
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const cooCountries = this.options_.coo_countries
|
const cooCountries = this.options_.coo_countries
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user