From 10aed3cea7935f2f22ef713cff9839dd16afce48 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 5 Apr 2024 11:36:43 +0530 Subject: moved some validator logic and common structs to util package --- invoice/invoice.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'invoice/invoice.go') diff --git a/invoice/invoice.go b/invoice/invoice.go index 55552ec..6fcd3c5 100644 --- a/invoice/invoice.go +++ b/invoice/invoice.go @@ -1,5 +1,5 @@ /* openbills - Server for web based Libre Billing Software - * Copyright (C) 2023 Vidhu Kant Sharma + * Copyright (C) 2023-2024 Vidhu Kant Sharma * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,7 +21,7 @@ import ( "gorm.io/gorm" d "vidhukant.com/openbills/db" "vidhukant.com/openbills/user" - c "vidhukant.com/openbills/customer" + u "vidhukant.com/openbills/util" i "vidhukant.com/openbills/item" "time" ) @@ -35,13 +35,13 @@ func init() { type InvoiceBillingAddress struct { gorm.Model - c.Address + u.Address InvoiceID uint } type InvoiceShippingAddress struct { gorm.Model - c.Address + u.Address InvoiceID uint } -- cgit v1.2.3