入库金额数量处理
This commit is contained in:
parent
40767e80dc
commit
7206ba5cea
|
|
@ -108,8 +108,8 @@ public class OtherInApplyPushOtherInConvertPlugin extends AbstractConvertPlugIn
|
|||
DynamicObject tqq9_proxyandfactory = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", new QFilter[]{new QFilter("number", QCP.equals, producer)});
|
||||
|
||||
BigDecimal qty = entry.getBigDecimal("qty");//原数量
|
||||
BigDecimal price = entry.getBigDecimal("price");//不含税单价
|
||||
BigDecimal amount = price.multiply(quantity).divide(qty);//金额
|
||||
BigDecimal amount = entry.getBigDecimal("amount");//金额
|
||||
amount = amount.multiply(quantity).divide(qty);//金额
|
||||
// 处理第一次逻辑
|
||||
if (i == 0) {
|
||||
|
||||
|
|
|
|||
|
|
@ -108,8 +108,8 @@ public class OtherOutApplyPushOtherOutConvertPlugin extends AbstractConvertPlugI
|
|||
DynamicObject tqq9_proxyandfactory = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", new QFilter[]{new QFilter("number", QCP.equals, producer)});
|
||||
|
||||
BigDecimal qty = entry.getBigDecimal("qty");//原数量
|
||||
BigDecimal price = entry.getBigDecimal("price");//单价
|
||||
BigDecimal amount = price.multiply(quantity).divide(qty);//金额
|
||||
BigDecimal amount = entry.getBigDecimal("amount");//金额
|
||||
amount = amount.multiply(quantity).divide(qty);//金额
|
||||
|
||||
// 处理第一次逻辑
|
||||
if (i == 0) {
|
||||
|
|
|
|||
|
|
@ -113,10 +113,10 @@ public class PurInConvertPlugin extends AbstractConvertPlugIn implements Plugin
|
|||
DynamicObject tqq9_proxyandfactory = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", new QFilter[]{new QFilter("number", QCP.equals, producer)});
|
||||
|
||||
BigDecimal qty = entry.getBigDecimal("qty");//原数量
|
||||
BigDecimal priceandtax = entry.getBigDecimal("priceandtax");//含税单价
|
||||
BigDecimal price = entry.getBigDecimal("price");//不含税单价
|
||||
BigDecimal amountandtax = priceandtax.multiply(quantity).divide(qty);//折扣后价税合计
|
||||
BigDecimal amount = price.multiply(quantity).divide(qty);//金额
|
||||
BigDecimal amountandtax = entry.getBigDecimal("amountandtax");//折扣后价税合计
|
||||
BigDecimal amount = entry.getBigDecimal("amount");//金额
|
||||
amountandtax = amountandtax.multiply(quantity).divide(qty);//折扣后价税合计
|
||||
amount = amount.multiply(quantity).divide(qty);//金额
|
||||
BigDecimal taxamount = amountandtax.subtract(amount);//税额
|
||||
|
||||
// 处理第一次逻辑
|
||||
|
|
|
|||
|
|
@ -124,14 +124,13 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu
|
|||
DynamicObject tqq9_proxyandfactory = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", new QFilter[]{new QFilter("number", QCP.equals, producer)});
|
||||
|
||||
BigDecimal qty = entry.getBigDecimal("qty");//原数量
|
||||
BigDecimal priceandtax = entry.getBigDecimal("priceandtax");//含税单价
|
||||
BigDecimal price = entry.getBigDecimal("price");//不含税单价
|
||||
BigDecimal amountandtax = priceandtax.multiply(quantity).divide(qty);//折扣后价税合计
|
||||
BigDecimal amount = price.multiply(quantity).divide(qty);//金额
|
||||
BigDecimal amountandtax = entry.getBigDecimal("amountandtax");//折扣后价税合计
|
||||
BigDecimal amount = entry.getBigDecimal("amount");//金额
|
||||
amountandtax = amountandtax.multiply(quantity).divide(qty);//折扣后价税合计
|
||||
amount = amount.multiply(quantity).divide(qty);//金额
|
||||
BigDecimal taxamount = amountandtax.subtract(amount);//税额
|
||||
|
||||
|
||||
|
||||
// 处理第一次逻辑
|
||||
if (i == 0) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue