Record Class ExportService.WriteoffRow
java.lang.Object
java.lang.Record
org.bgerp.plugin.inventoru.sync1c.service.ExportService.WriteoffRow
- Record Components:
productId- code of the item in 1C, empty when the item has no ext id — such a line cannot be exported, and saying so on the screen beats a silently shorter CSV.
- Enclosing class:
ExportService
public static record ExportService.WriteoffRow(int itemId, String itemTitle, String productId, BigDecimal quantity)
extends Record
One line of what a queue entry covers, as a person needs to see it: the nomenclature by its
title, the code 1C knows it by, and how much of it.
-
Constructor Summary
ConstructorsConstructorDescriptionWriteoffRow(int itemId, String itemTitle, String productId, BigDecimal quantity) Creates an instance of aWriteoffRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.booleanintitemId()Returns the value of theitemIdrecord component.Returns the value of theitemTitlerecord component.Returns the value of theproductIdrecord component.quantity()Returns the value of thequantityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WriteoffRow
Creates an instance of aWriteoffRowrecord class.- Parameters:
itemId- the value for theitemIdrecord componentitemTitle- the value for theitemTitlerecord componentproductId- the value for theproductIdrecord componentquantity- the value for thequantityrecord component
-
-
Method Details
-
isExportable
public boolean isExportable() -
getItemId
public int getItemId() -
getItemTitle
-
getProductId
-
getQuantity
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
itemId
public int itemId()Returns the value of theitemIdrecord component.- Returns:
- the value of the
itemIdrecord component
-
itemTitle
Returns the value of theitemTitlerecord component.- Returns:
- the value of the
itemTitlerecord component
-
productId
-
quantity
Returns the value of thequantityrecord component.- Returns:
- the value of the
quantityrecord component
-