|
|
@@ -9,7 +9,7 @@
|
|
|
*/
|
|
|
|
|
|
const costFields = {
|
|
|
- textFields: ['code', 'name', 'party_b', 'postil', 'memo'],
|
|
|
+ textFields: ['code', 'name', 'party_b', 'pay_date', 'postil', 'memo'],
|
|
|
curFields: ['pay_tp', 'cut_tp', 'yf_tp', 'sf_tp', 'yf_excl_tax_tp', 'sf_excl_tax_tp'],
|
|
|
readFields: ['read_pay_tp', 'read_cut_tp', 'read_yf_tp', 'read_sf_tp', 'read_yf_excl_tax_tp', 'read_sf_excl_tax_tp'],
|
|
|
taxFields: ['tax'],
|
|
|
@@ -291,7 +291,7 @@ module.exports = app => {
|
|
|
stage_order: this.ctx.costStage.stage_order, is_deal: 1,
|
|
|
ledger_id: ledgerId, cost_id: costId, d_order: insertDetails.length + 1, source_cid: pay.cid,
|
|
|
add_user_id: user_id, update_user_id: user_id,
|
|
|
- code: pay.c_code, name: pay.name, party_b: pay.party_b,
|
|
|
+ code: pay.c_code, name: pay.name, party_b: pay.party_b, pay_date: months || '',
|
|
|
};
|
|
|
insertDetails.push(idetail);
|
|
|
}
|
|
|
@@ -328,8 +328,8 @@ module.exports = app => {
|
|
|
return await this._importContractByIds(ledgerId, costId, contracts.map(x => { return x.id; }), months);
|
|
|
}
|
|
|
async importContract(data) {
|
|
|
- if (data.types) return this._importContractByTypes(data.ledger_id, data.cost_id, data.types, data.months || [this.ctx.costStage.stage_date]);
|
|
|
- if (data.ids) return this._importContractByIds(data.ledger_id, data.cost_id, data.ids, data.months || [this.ctx.costStage.stage_date]);
|
|
|
+ if (data.types) return this._importContractByTypes(data.ledger_id, data.cost_id, data.types, data.months || this.ctx.costStage.stage_date);
|
|
|
+ if (data.ids) return this._importContractByIds(data.ledger_id, data.cost_id, data.ids, data.months || this.ctx.costStage.stage_date);
|
|
|
}
|
|
|
|
|
|
async deletePartData(transaction, tender_id, ledger_id) {
|