◆ createHandshakeFromProduct()
static HandshakeProduct org.turro.financials.handshake.HandshakeProduct.createHandshakeFromProduct |
( |
Product |
product | ) |
|
|
static |
Definition at line 50 of file HandshakeProduct.java.
51 HandshakeProduct hp =
new HandshakeProduct();
52 hp.code = product.getProductCode();
53 hp.description = product.getDescription();
54 hp.price = product.getPrice();
55 hp.tax = product.getTax();
◆ createJsonFromProduct()
static String org.turro.financials.handshake.HandshakeProduct.createJsonFromProduct |
( |
Product |
product | ) |
|
|
static |
Definition at line 42 of file HandshakeProduct.java.
45 return new Gson().toJson(hp);
static HandshakeProduct createHandshakeFromProduct(Product product)
◆ getProductByContractorFromHandshake()
Definition at line 67 of file HandshakeProduct.java.
68 Dao dao =
new FinancialsPU();
69 return (ProductByContractor) dao.getSingleResultOrNull(
70 "select pbc from ProductByContractor pbc " +
71 "where pbc.contract = ? " +
72 "and pbc.contractorCode = ?",
◆ getProductFromHandshake()
Definition at line 59 of file HandshakeProduct.java.
62 return pbc.getProduct();
static ProductByContractor getProductByContractorFromHandshake(HandshakeProduct hp)
◆ code
String org.turro.financials.handshake.HandshakeProduct.code |
◆ contract
transient Contract org.turro.financials.handshake.HandshakeProduct.contract |
◆ description
String org.turro.financials.handshake.HandshakeProduct.description |
◆ petitioner
transient String org.turro.financials.handshake.HandshakeProduct.petitioner |
◆ price
double org.turro.financials.handshake.HandshakeProduct.price |
◆ tax
double org.turro.financials.handshake.HandshakeProduct.tax |
The documentation for this class was generated from the following file: