|
@@ -105,6 +105,10 @@ public class InvoiceApiController {
|
|
|
Integer boxLength, Integer boxWidth, Integer boxHight, BigDecimal netWeight, BigDecimal grossWeight){
|
|
|
MessageResult msgResult = new MessageResult<>();
|
|
|
|
|
|
+ if(grossWeight == null) {
|
|
|
+ grossWeight = netWeight.add(new BigDecimal(4));
|
|
|
+ }
|
|
|
+
|
|
|
User user = userService.findByUserName(keyId);
|
|
|
if(user.getPassword().equals(keySecret)) {
|
|
|
Invoice invoice = invoiceService.get(invoiceId);
|