This commit is contained in:
louiscklaw
2025-02-01 02:04:23 +08:00
parent 3de8aea20a
commit ec32653f3a
108 changed files with 12611 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,19 @@
Attribute VB_Name = "Module1"
Sub Macro6()
Attribute Macro6.VB_ProcData.VB_Invoke_Func = " \n14"
'
' Macro6 Macro
'
'
Sheets("Sheet1").Select
Columns("B:P").Select
Range("P1").Activate
Selection.Copy
Sheets("Adjustment").Select
Columns("B:P").Select
Range("P1").Activate
Sheets("Adjustment").Paste
End Sub

View File

@@ -0,0 +1,69 @@
其實我做緊嘅係adjustment
係每個ISIN要有3樣野要做
### Situation 1:
如果 Grand total > 0 (row 8 ?)
- PCEC(Column I): 302210, PCCO: A1311000, Account column: 1020, debit column: Grand Total
- 加多行row:
- PCEC: 921810,
- PCCO: 92100100
- account:8600,
- debit: grand total
- 再加多行row:
- PCEC: 922910,
- PCCO: 98900100
- account:8601,
- Credit: grand total
### Situation 2:
如果Grand total < 0 (row 8 ?)
- PCEC(Column I): 302210, PCCO: A1311000, Account column: 1020, credit column: Grand Total
- 加多行row: PCEC: 922810, PCCO: 92200100, account:8700, credit: grand total
- 再加多行row: PCEC: 921910, PCCO: 98900200, account:8701, debit: grand total
### Situation 3:
如果Grand total = 0
- 咩都唔洗做
### Special case (如果PCCO Code係P1375000):
### Situation 1:
如果Grand total > 0 (missing example)
- PCEC(Column I): 302410, PCCO: P1375000, Account column: 2020, debit column: Grand Total
- 加多行row: PCEC: 921810, PCCO: 92100100, account:8600, debit: grand total
- 再加多行row: PCEC: 922910, PCCO: 98900100, account:8601, credit: grand total
### Situation 2:
如果Grand total < 0 (row 21)
- PCEC(Column I): 302410, PCCO: P1375000, Account column: 2020, credit column: Grand Total
- 加多行row: PCEC: 922810, PCCO: 92200100, account:8700, credit: grand total
- 再加多行row: PCEC: 921910, PCCO: 98900200, account:8701, debit: grand total
### Situation 3:
如果Grand total = 0
- 咩都唔洗做

File diff suppressed because it is too large Load Diff

1
task1/_03_submit/dev.bat Normal file
View File

@@ -0,0 +1 @@
xlwings vba edit

View File

@@ -0,0 +1,13 @@
{
"name": "adjustment",
"version": "1.0.0",
"description": "adjustment",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"gitUpdate":"git add . && git commit -m \"update, \""
},
"keywords": [],
"author": "",
"license": "ISC"
}