|
|
@@ -229,7 +229,7 @@ public class tinvoiceapply extends PaoCust {
|
|
|
sainvoicedetailSet.setOrderBy("sainvoicedetailid");
|
|
|
int n = 0;
|
|
|
while (sainvoicedetailSet.getPao(n) != null) {
|
|
|
- if (sainvoicedetailSet.getPao(n).getPaoSet("SAINVOICE").getPao(0).getString("").equals("关闭")) {
|
|
|
+ if (sainvoicedetailSet.getPao(n).getPaoSet("SAINVOICE").getPao(0).getString("fstatus").equals("关闭")) {
|
|
|
double famount_sainvoice = sainvoicedetailSet.getPao(n).getDouble("famount");//发货金额
|
|
|
double finvoiceamount_sainvoice = sainvoicedetailSet.getPao(n).getDouble("famount");//发货单已开票金额
|
|
|
if (famount_sainvoice > finvoiceamount_sainvoice) {
|
|
|
@@ -268,7 +268,7 @@ public class tinvoiceapply extends PaoCust {
|
|
|
sainvoicedetailSet.setOrderBy("sainvoicedetailid");
|
|
|
int n = 0;
|
|
|
while (sainvoicedetailSet.getPao(n) != null) {
|
|
|
- if (sainvoicedetailSet.getPao(n).getPaoSet("SAINVOICE").getPao(0).getString("").equals("关闭")) {
|
|
|
+ if (sainvoicedetailSet.getPao(n).getPaoSet("SAINVOICE").getPao(0).getString("fstatus").equals("关闭")) {
|
|
|
double finvoiceamount_sainvoice = sainvoicedetailSet.getPao(n).getDouble("famount");//发货单已开票金额
|
|
|
if (finvoiceamount_sainvoice > 0) {//表示已开票
|
|
|
double fneedinvoiceamount_sainvoice = finvoiceamount_sainvoice;//发货单应减开票金额
|