no message
parent
d0e3a3fcde
commit
fcde54f59a
|
|
@ -244,6 +244,13 @@ public interface ApplyBillManager extends BaseManager{
|
||||||
//累计开票金额
|
//累计开票金额
|
||||||
@Transactional
|
@Transactional
|
||||||
double gettotalFeeMap(Map map);
|
double gettotalFeeMap(Map map);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param applyBillId 支付申请ID
|
||||||
|
* @param invoiceNo 发票号
|
||||||
|
*/
|
||||||
|
void adjustInvoiceNo(long applyBillId,String invoiceNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1776,4 +1776,23 @@ public Double initTaxMoney(Map map){
|
||||||
}
|
}
|
||||||
return DoubleUtils.format3Fraction(quantity);
|
return DoubleUtils.format3Fraction(quantity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void adjustInvoiceNo(long applyBillId,String invoiceNo) {
|
||||||
|
ApplyBill applyBill=this.load(ApplyBill.class, applyBillId);
|
||||||
|
String old=applyBill.getInvoiceNo();
|
||||||
|
applyBill.setInvoiceNo(invoiceNo);
|
||||||
|
commonDao.store(applyBill);
|
||||||
|
|
||||||
|
String hql="from Invoice inv where inv.invoiceNo='"+old+"' and inv.payOrReceive='PAY' and inv.platForm.id="+PlatFormHolder.getPlatForm().getId()+" ";
|
||||||
|
List<Invoice> Invoices=this.commonDao.findByQuery(hql);
|
||||||
|
for(Invoice inv:Invoices){
|
||||||
|
inv.setInvoiceNo(invoiceNo);
|
||||||
|
commonDao.store(inv);
|
||||||
|
}
|
||||||
|
String des=old+"发票号调整为:"+invoiceNo;
|
||||||
|
operationHisManager.storeOperationHis(applyBill.getId(), applyBill.getApplyCode(),null, null,
|
||||||
|
"承运商结算管理-支付申请管理", "调整发票号", null,null,
|
||||||
|
0, 0, 0, 0, des,"TMS");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<pages>
|
||||||
|
<editPage id="editInvoiceNoPage" title="调整发票号" entityClass="com.dev.stms.server.model.fee.ApplyBill" width='450' height='230'>
|
||||||
|
<inputUIs>
|
||||||
|
|
||||||
|
<hidden id="applyBill.id" reserve="false"/>
|
||||||
|
<text id="applyBill.invoiceNo" title="invoice.invoiceNo" width="300" row="0" col="1" span="1" readOnly="false" required="true" reserve="false" forceOverride="true" inVisible="false" />
|
||||||
|
</inputUIs>
|
||||||
|
<buttons>
|
||||||
|
<commit id="saveInvoiceButton" title="editOrderDetailPage.saveOrderDetailButton" enableType="none" invisible="false">
|
||||||
|
<mappings>
|
||||||
|
<mapping id="applyBill.id" className="long"/>
|
||||||
|
<mapping id="applyBill.invoiceNo" className="string"/>
|
||||||
|
</mappings>
|
||||||
|
<actions>
|
||||||
|
<action managerName="applyBillManager" methodName="adjustInvoiceNo" parameter="applyBill.id,applyBill.invoiceNo"/>
|
||||||
|
</actions>
|
||||||
|
<forwards>
|
||||||
|
<forward name="refreshParent" newEnabled="true" editEnabled="true"/>
|
||||||
|
<forward name="resetWindow" newEnabled="true" editEnabled="true"/>
|
||||||
|
<forward name="closeWindow" newEnabled="true" editEnabled="true"/>
|
||||||
|
</forwards>
|
||||||
|
</commit>
|
||||||
|
</buttons>
|
||||||
|
</editPage>
|
||||||
|
</pages>
|
||||||
|
|
@ -175,6 +175,10 @@
|
||||||
<!-- </popup> -->
|
<!-- </popup> -->
|
||||||
<!-- <popup id="printWWZFCB" title="printWWZFCB" enableType="none" invisible="false" containId="true" pageId="printWWZFCBPage"> -->
|
<!-- <popup id="printWWZFCB" title="printWWZFCB" enableType="none" invisible="false" containId="true" pageId="printWWZFCBPage"> -->
|
||||||
<!-- </popup> -->
|
<!-- </popup> -->
|
||||||
|
<popup id="adjustInvoiceNo" title="调整发票号" enableType="single" invisible="false" containId="true" pageId="editInvoiceNoPage">
|
||||||
|
<enableExpression><![CDATA[${applyBill.status} == 'CHECK' ]]></enableExpression>
|
||||||
|
</popup>
|
||||||
|
|
||||||
</buttons>
|
</buttons>
|
||||||
</maintainPage>
|
</maintainPage>
|
||||||
</pages>
|
</pages>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue