service

package
v0.0.0-...-7f639c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindInvoice

func FindInvoice(db *sql.DB, invoiceNumber int64) *models.Invoice

Fetch Invoice from database based on invoice number.

func SaveInvoice

func SaveInvoice(db *sql.DB, invoice *models.Invoice) (*models.Invoice, error)

Save the invoice data to the database if new invoice. Else, invoice exits update its values. TODO: rollback changes incase of error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL