Skip to content

Commit

Permalink
fix: invoice due date (#56)
Browse files Browse the repository at this point in the history
Co-authored-by: Zeeshan Abid <[email protected]>
  • Loading branch information
zeeshan595 and Zeeshan Abid authored Sep 18, 2024
1 parent f156f20 commit fc6af56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes/host/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ fn get_hosted_happ_invoice_details(
hha_id,
invoice_period_start,
invoice_period_end,
invoice_due_date,
invoiced_items,
} = invoice_note;

Expand Down Expand Up @@ -176,6 +177,7 @@ fn get_hosted_happ_invoice_details(
invoice_details: InvoiceDetails {
start: invoice_period_start,
end: invoice_period_end,
due: invoice_due_date,
bandwidth: QuantityAndPrice {
quantity: invoice_usage.bandwidth,
price: invoice_prices.bandwidth,
Expand Down Expand Up @@ -312,6 +314,7 @@ pub struct HappNameAndId {
pub struct InvoiceDetails {
start: Timestamp,
end: Timestamp,
due: Timestamp,
bandwidth: QuantityAndPrice,
compute: QuantityAndPrice,
storage: QuantityAndPrice,
Expand Down Expand Up @@ -379,6 +382,7 @@ struct InvoiceNote {
hha_id: String, // Would prefer to rename this but the invoice note strings already have this as hha_id
invoice_period_start: Timestamp,
invoice_period_end: Timestamp,
invoice_due_date: Timestamp,
#[serde(flatten)]
invoiced_items: InvoicedItems,
}
Expand Down

0 comments on commit fc6af56

Please sign in to comment.