Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» improvement: Add Memo field to invoice line
Browse files Browse the repository at this point in the history
  • Loading branch information
kiloreven committed Feb 16, 2024
1 parent 3822b10 commit a6c5063
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion oda_wd_client/service/resource_management/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ class SupplierInvoiceLine(BaseModel):

order: int | None = None
quantity: WorkdayCurrency = Decimal(0)
description: str = "-No description-"
description: str = ""
memo: str | None = None
tax_rate_options_data: TaxRateOptionsData | None = None
tax_applicability: TaxApplicability | None = None
tax_code: TaxCode | None = None
Expand Down
5 changes: 4 additions & 1 deletion oda_wd_client/service/resource_management/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ def _get_wd_invoice_lines_from_invoice(
wd_line = client.factory("ns0:Supplier_Invoice_Line_Replacement_DataType")
wd_line.Line_Order = line.order
wd_line.Quantity = line.quantity
wd_line.Item_Description = line.description
if line.description:
wd_line.Item_Description = line.description
if line.memo:
wd_line.Memo = line.memo
# Extended amount is without VAT
wd_line.Extended_Amount = line.net_amount
if line.spend_category:
Expand Down

0 comments on commit a6c5063

Please sign in to comment.