Commit d3acd67b authored by hangjun83's avatar hangjun83

财务开票模块更新]

parent ad9a39a9
......@@ -34,6 +34,10 @@ class RhawnInvoiceRepositoryEloquent extends BaseRepository implements RhawnInvo
public function updateInvoiceById($id,$updateParams)
{
return $this->updateOrCreate(['soi_id' => $id],$updateParams)->toArray();
$invoice = $this->getInvoiceById($id);
if($invoice){
return $this->updateOrCreate(['soi_id' => $id],$updateParams)->toArray();
}
return null;
}
}
......@@ -19,7 +19,7 @@ class CreateFinanceInvoiceRecordTable extends Migration
$table->string('invoice_number')->nullable(false)->comment('发票编号');
$table->string('invoice_real_number')->nullable()->comment('发票真实编号');
$table->integer('invoice_type')->nullable(false)->comment('发票类型 1:蓝字 2:红字');
$table->integer('invoice_status')->nullable(false)->comment('发票状态 0:已申请待确认 1:已确认 2:开票作废 3:红字撤销');
$table->integer('invoice_status')->nullable(false)->comment('发票状态 0:已申请待确认 1:已确认 2: 发票失败 3:开票作废已申请 4:蓝字发票作废');
$table->decimal('invoice_money')->nullable(false)->comment('开票金额');
$table->string('invoice_platform')->nullable(false)->comment('订单所属平台: rhawn ,bhua');
$table->string('platform_invoice_id')->nullable(false)->comment('平台发票id');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment