internal

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package internal contains additional functionality required internally.

Index

Constants

View Source
const (
	DefaultClaveUnidad = "ZZ" // Mutuamente definida
)

Default keys

Variables

This section is empty.

Functions

func ClaveProdServ

func ClaveProdServ(line *bill.Line) tax.ExtValue

ClaveProdServ determines the line's Product-Service code

func ClaveUnidad

func ClaveUnidad(line *bill.Line) cbc.Code

ClaveUnidad determines the line item's "ClaveUnidad" value.

func TotalInvoiceDiscount

func TotalInvoiceDiscount(i *bill.Invoice) num.Amount

TotalInvoiceDiscount calculates the total discount for the invoice.

func TotalLineDiscount

func TotalLineDiscount(l *bill.Line) num.Amount

TotalLineDiscount calculates the total discount for the line.

Types

type Nodes

type Nodes struct {
	Nodes []interface{} `xml:",omitempty"`
}

Nodes is an auxiliary struct to marshal a sequence of arbitrary XML nodes, like the ones inside `cfdi:Complemento` or `cfdi:Addenda`.

Directories

Path Synopsis
Package format contains helps to help format output.
Package format contains helps to help format output.

Jump to

Keyboard shortcuts

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