@riocrypto/common-server 1.0.1047 → 1.0.1049

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,10 +26,10 @@ class InvopopClient {
26
26
  var _a, _b;
27
27
  return __awaiter(this, void 0, void 0, function* () {
28
28
  const uuid = (0, uuid_1.v1)();
29
- const today = new Date();
30
- const year = today.getFullYear();
31
- const month = String(today.getMonth() + 1).padStart(2, "0"); // Month is zero-indexed
32
- const day = String(today.getDate()).padStart(2, "0");
29
+ const date = new Date(order.createdAt);
30
+ const year = date.getFullYear();
31
+ const month = String(date.getMonth() + 1).padStart(2, "0"); // Month is zero-indexed
32
+ const day = String(date.getDate()).padStart(2, "0");
33
33
  const formattedDate = `${year}-${month}-${day}`;
34
34
  const { data } = yield axios_1.default.put(`${this.baseUrl}/transform/v1/jobs/${uuid}`, {
35
35
  workflow_id: "5b123900-1035-4c8c-a97a-36b940d7a21e",
@@ -38,9 +38,6 @@ class InvopopClient {
38
38
  code: "",
39
39
  type: "standard",
40
40
  currency: order.fiat,
41
- tax: {
42
- tags: ["use+general-expenses"],
43
- },
44
41
  issue_date: formattedDate,
45
42
  supplier: {
46
43
  name: "RAMPA BLOCKCHAIN",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1047",
3
+ "version": "1.0.1049",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",