Added commentUP field to fiscalAPI
This commit is contained in:
@@ -39,13 +39,14 @@ func CalculateReceiptSum(rows []ReceiptRow) float64 {
|
||||
return sum
|
||||
}
|
||||
|
||||
func NewReceipt(rows []ReceiptRow, pays []ReceiptPay) Receipt {
|
||||
func NewReceipt(rows []ReceiptRow, pays []ReceiptPay, commentUp string) Receipt {
|
||||
return Receipt{
|
||||
Sum: CalculateReceiptSum(rows),
|
||||
Round: 0.00,
|
||||
Disc: 0,
|
||||
DiscType: 0,
|
||||
Rows: rows,
|
||||
Pays: pays,
|
||||
Sum: CalculateReceiptSum(rows),
|
||||
Round: 0.00,
|
||||
CommentUp: commentUp,
|
||||
Disc: 0,
|
||||
DiscType: 0,
|
||||
Rows: rows,
|
||||
Pays: pays,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user