Skip to content

Commit 11baf10

Browse files
committed
update journal entries creation (Accounting): add possibility to create draft entries
1 parent 3c0eccf commit 11baf10

File tree

4 files changed

+33
-2
lines changed

4 files changed

+33
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 0.1.41 - 2024-02-14
4+
* update journal entries creation (Accounting): add possibility to create draft entries
5+
36
## 0.1.40 - 2024-02-06
47
* update orders model (eCommerce): add gift card detail
58

chift/openapi/openapi.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9246,6 +9246,16 @@
92469246
"format": "date"
92479247
}
92489248
},
9249+
{
9250+
"name": "updated_after",
9251+
"in": "query",
9252+
"required": false,
9253+
"schema": {
9254+
"title": "Updated After",
9255+
"type": "string",
9256+
"format": "date"
9257+
}
9258+
},
92499259
{
92509260
"name": "page",
92519261
"in": "query",
@@ -13671,6 +13681,11 @@
1367113681
"title": "Pdf",
1367213682
"type": "string",
1367313683
"description": "Base 64 string representing the PDF attached to the item."
13684+
},
13685+
"posted": {
13686+
"title": "Posted",
13687+
"type": "boolean",
13688+
"default": true
1367413689
}
1367513690
}
1367613691
},
@@ -14324,6 +14339,11 @@
1432414339
}
1432514340
],
1432614341
"description": "Journal"
14342+
},
14343+
"last_updated_on": {
14344+
"title": "Last Updated On",
14345+
"type": "string",
14346+
"format": "date-time"
1432714347
}
1432814348
}
1432914349
},
@@ -14651,6 +14671,11 @@
1465114671
],
1465214672
"description": "Journal"
1465314673
},
14674+
"last_updated_on": {
14675+
"title": "Last Updated On",
14676+
"type": "string",
14677+
"format": "date-time"
14678+
},
1465414679
"pdf": {
1465514680
"title": "Pdf",
1465614681
"type": "string",

chift/openapi/openapi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: openapi.json
3-
# timestamp: 2024-02-06T19:29:41+00:00
3+
# timestamp: 2024-02-14T15:31:50+00:00
44

55
from __future__ import annotations
66

@@ -2069,6 +2069,7 @@ class InvoiceItemOut(BaseModel):
20692069
journal_ref: Optional[FieldRef] = Field(
20702070
None, description="Journal", title="Journal Ref"
20712071
)
2072+
last_updated_on: Optional[datetime] = Field(None, title="Last Updated On")
20722073

20732074

20742075
class InvoiceItemOutMonoAnalyticPlan(BaseModel):
@@ -2149,6 +2150,7 @@ class InvoiceItemOutSingle(BaseModel):
21492150
journal_ref: Optional[FieldRef] = Field(
21502151
None, description="Journal", title="Journal Ref"
21512152
)
2153+
last_updated_on: Optional[datetime] = Field(None, title="Last Updated On")
21522154
pdf: Optional[str] = Field(None, description="PDF document in base64", title="Pdf")
21532155

21542156

@@ -3062,6 +3064,7 @@ class GenericJournalEntry(BaseModel):
30623064
description="Base 64 string representing the PDF attached to the item.",
30633065
title="Pdf",
30643066
)
3067+
posted: Optional[bool] = Field(True, title="Posted")
30653068

30663069

30673070
class InvoiceItemInMultiAnalyticPlans(BaseModel):

chift/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "0.1.40"
1+
VERSION = "0.1.41"

0 commit comments

Comments
 (0)